MultiResolutionStreamInfo
public
class
MultiResolutionStreamInfo
extends Object
java.lang.Object | |
↳ | android.hardware.camera2.params.MultiResolutionStreamInfo |
A utility class describing the properties of one stream of fixed-size image buffers backing a multi-resolution image stream.
A group of MultiResolutionStreamInfo
are used to describe the properties of a
multi-resolution image stream for a particular format. The
MultiResolutionImageReader
class represents a
multi-resolution output stream, and is constructed using a group of
MultiResolutionStreamInfo
. A group of MultiResolutionStreamInfo
can also be used
to create a multi-resolution reprocessable camera capture session. See
InputConfiguration
for details.
Summary
Public constructors | |
---|---|
MultiResolutionStreamInfo(int streamWidth, int streamHeight, String physicalCameraId)
Create a new |
Public methods | |
---|---|
boolean
|
equals(Object obj)
Check if this |
int
|
getHeight()
The height of this particular image buffer stream in pixels. |
String
|
getPhysicalCameraId()
The physical camera Id of this particular image buffer stream. |
int
|
getWidth()
The width of this particular image buffer stream in pixels. |
int
|
hashCode()
Returns a hash code value for the object. |
Inherited methods | |
---|---|
Public constructors
MultiResolutionStreamInfo
public MultiResolutionStreamInfo (int streamWidth, int streamHeight, String physicalCameraId)
Create a new MultiResolutionStreamInfo
.
This class creates a MultiResolutionStreamInfo
using image width, image height,
and the physical camera Id images originate from.
Normally applications do not need to create these directly. Use MultiResolutionStreamConfigurationMap.getOutputInfo(int)
or MultiResolutionStreamConfigurationMap.getInputInfo(int)
to obtain them for a particular format
instead.
Parameters | |
---|---|
streamWidth |
int : The width in pixels of the camera stream
Value is 1 or greater |
streamHeight |
int : The height in pixels of the camera stream
Value is 1 or greater |
physicalCameraId |
String : The physical camera Id the camera stream is associated with
This value cannot be null . |
Throws | |
---|---|
IllegalArgumentException |
if the streamWidth or streamHeight is invalid (either zero or negative). |
Public methods
equals
public boolean equals (Object obj)
Check if this MultiResolutionStreamInfo
is equal to another
MultiResolutionStreamInfo
.
Parameters | |
---|---|
obj |
Object : the reference object with which to compare. |
Returns | |
---|---|
boolean |
true if the objects were equal, false otherwise |
getHeight
public int getHeight ()
The height of this particular image buffer stream in pixels.
Returns | |
---|---|
int |
Value is 1 or greater |
getPhysicalCameraId
public String getPhysicalCameraId ()
The physical camera Id of this particular image buffer stream.
Returns | |
---|---|
String |
This value cannot be null . |
getWidth
public int getWidth ()
The width of this particular image buffer stream in pixels.
Returns | |
---|---|
int |
Value is 1 or greater |
hashCode
public int hashCode ()
Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
HashMap
.
The general contract of hashCode
is:
- Whenever it is invoked on the same object more than once during
an execution of a Java application, the
hashCode
method must consistently return the same integer, provided no information used inequals
comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. - If two objects are equal according to the
equals
method, then calling thehashCode
method on each of the two objects must produce the same integer result. - It is not required that if two objects are unequal
according to the
equals
method, then calling thehashCode
method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns | |
---|---|
int |
a hash code value for this object. |