# Print output for @column tags ?>
public
static
final
class
MandatoryStreamCombination.MandatoryStreamInformation
extends Object
java.lang.Object | |
↳ | android.hardware.camera2.params.MandatoryStreamCombination.MandatoryStreamInformation |
Immutable class to store available mandatory stream information.
Public methods | |
---|---|
boolean
|
equals(Object obj)
Check if this |
List<Size>
|
getAvailableSizes()
Return the list of available sizes for this mandatory stream. |
int
|
getFormat()
Retrieve the mandatory stream |
int
|
hashCode()
Returns a hash code value for the object. |
boolean
|
isInput()
Confirms whether or not this is an input stream. |
Inherited methods | |
---|---|
public boolean equals (Object obj)
Check if this MandatoryStreamInformation
is equal to another
MandatoryStreamInformation
.
Two vectors are only equal if and only if each of the respective elements is equal.
Parameters | |
---|---|
obj |
Object : the reference object with which to compare. |
Returns | |
---|---|
boolean |
true if the objects were equal, false otherwise |
public List<Size> getAvailableSizes ()
Return the list of available sizes for this mandatory stream.
Per documented CameraDevice#createCaptureSession
the largest
resolution in the result will be tested and guaranteed to work. If clients want to use
smaller sizes, then the resulting
session configuration
can
be tested either by calling CameraDevice#createCaptureSession
or
CameraDevice#isSessionConfigurationSupported
.
Returns | |
---|---|
List<Size> |
non-modifiable ascending list of available sizes.
This value cannot be null . |
public int getFormat ()
Retrieve the mandatory stream format
.
Returns | |
---|---|
int |
integer format.
Value is ImageFormat.UNKNOWN , ImageFormat.RGB_565 , ImageFormat.YV12 , ImageFormat.Y8 , android.graphics.ImageFormat.Y16, ImageFormat.NV16 , ImageFormat.NV21 , ImageFormat.YUY2 , ImageFormat.JPEG , ImageFormat.DEPTH_JPEG , ImageFormat.YUV_420_888 , ImageFormat.YUV_422_888 , ImageFormat.YUV_444_888 , ImageFormat.FLEX_RGB_888 , ImageFormat.FLEX_RGBA_8888 , ImageFormat.RAW_SENSOR , ImageFormat.RAW_PRIVATE , ImageFormat.RAW10 , ImageFormat.RAW12 , ImageFormat.DEPTH16 , ImageFormat.DEPTH_POINT_CLOUD , android.graphics.ImageFormat.RAW_DEPTH, ImageFormat.PRIVATE , or ImageFormat.HEIC |
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. |
public boolean isInput ()
Confirms whether or not this is an input stream.
Returns | |
---|---|
boolean |
true in case the stream is input, false otherwise. |