# 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. |
boolean
|
isMaximumSize()
Confirms whether or not this is a maximum size stream. |
boolean
|
isUltraHighResolution()
Confirms whether or not this is an ultra high resolution 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 guideline 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, android.graphics.ImageFormat.RAW_DEPTH10, 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. |
public boolean isMaximumSize ()
Confirms whether or not this is a maximum size stream.
A stream with maximum size is one with the camera device's maximum resolution
for the stream's format as appears in CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP. This
maximum size has the same meaning as the 'MAXIMUM' target size documented in the camera
capture session guideline.
The application can use a
MultiResolutionImageReader for a maximum size
output stream if the camera device supports multi-resolution outputs for the stream's
format. See CameraCharacteristics.SCALER_MULTI_RESOLUTION_STREAM_CONFIGURATION_MAP
for details.
This is different from the ultra high resolution flag, which applies only to
ultra high resolution sensor camera devices and refers to a stream in
CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION
instead.
| Returns | |
|---|---|
boolean |
true if the stream is a maximum size stream. |
public boolean isUltraHighResolution ()
Confirms whether or not this is an ultra high resolution stream.
An 'ultra high resolution' stream is one which has a configuration which appears in
CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION,
Streams which are ultra high resolution must not be included with streams which are not
ultra high resolution in the same CaptureRequest.
| Returns | |
|---|---|
boolean |
true in case the stream is ultra high resolution, false otherwise. |