# Print output for @column tags ?>
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.
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 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 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 |
public int getHeight ()
The height of this particular image buffer stream in pixels.
Returns | |
---|---|
int |
Value is 1 or greater |
public String getPhysicalCameraId ()
The physical camera Id of this particular image buffer stream.
Returns | |
---|---|
String |
This value cannot be null . |
public int getWidth ()
The width of this particular image buffer stream in pixels.
Returns | |
---|---|
int |
Value is 1 or greater |
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:
hashCode
method
must consistently return the same integer, provided no information
used in equals
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.
equals(Object)
method, then calling the hashCode
method on each of
the two objects must produce the same integer result.
equals(java.lang.Object)
method, then calling the hashCode
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.
As much as is reasonably practical, the hashCode method defined by
class Object
does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
Java™ programming language.)
Returns | |
---|---|
int |
a hash code value for this object. |