# MandatoryStreamCombination.MandatoryStreamInformation

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# MandatoryStreamInformation

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation "View this page in Java")  

```
class MandatoryStreamInformation
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                                                                 ||
| ↳ | [android.hardware.camera2.params.MandatoryStreamCombination.MandatoryStreamInformation](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#) |

Immutable class to store available mandatory stream information.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                         Public methods                                                                                                                                                                                                                                                                                                                                                                                                          ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                         | [equals](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Check if this[MandatoryStreamInformation](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#)is equal to another[MandatoryStreamInformation](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#). |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                 | [get10BitFormat](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#get10BitFormat())`()` Retrieve the mandatory stream 10-bit`format`for 10-bit capable streams.                                                                                                                                                                                                                                                                                                                                                                                 |
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Size](https://developer.android.com/reference/kotlin/android/util/Size.html#)!\> | [getAvailableSizes](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#getAvailableSizes())`()` Return the list of available sizes for this mandatory stream.                                                                                                                                                                                                                                                                                                                                                                                     |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                 | [getFormat](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#getFormat())`()` Retrieve the mandatory stream`format`.                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)                                                                                                               | [getStreamUseCase](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#getStreamUseCase())`()` Retrieve the mandatory stream use case.                                                                                                                                                                                                                                                                                                                                                                                                             |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                 | [hashCode](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#hashCode())`()` Returns a hash code value for the object.                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                         | [is10BitCapable](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#is10BitCapable())`()` Indicates whether this stream is able to support 10-bit output.                                                                                                                                                                                                                                                                                                                                                                                         |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                         | [isInput](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#isInput())`()` Confirms whether or not this is an input stream.                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                         | [isMaximumSize](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#isMaximumSize())`()` Confirms whether or not this is a maximum size stream.                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                         | [isUltraHighResolution](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#isUltraHighResolution())`()` Confirms whether or not this is an ultra high resolution stream.                                                                                                                                                                                                                                                                                                                                                                          |

## Public methods

### equals

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun equals(other: Any?): Boolean
```

Check if this[MandatoryStreamInformation](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#)is equal to another[MandatoryStreamInformation](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#).

Two vectors are only equal if and only if each of the respective elements is equal.

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |

|                                                                Return                                                                ||
|------------------------------------------------------------------------------------|--------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if the objects were equal,`false`otherwise |

### get10BitFormat

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun get10BitFormat(): Int
```

Retrieve the mandatory stream 10-bit`format`for 10-bit capable streams.

In case[is10BitCapable()](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#is10BitCapable())returns`true`, then this method will return the corresponding 10-bit output Surface pixel format. Depending on the stream type it will be either[ImageFormat.PRIVATE](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#PRIVATE:kotlin.Int)or[ImageFormat.YCBCR_P010](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P010:kotlin.Int).

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Return                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | integer format. Value is[android.graphics.ImageFormat#UNKNOWN](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#UNKNOWN:kotlin.Int),[android.graphics.PixelFormat#RGBA_8888](https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGBA_8888:kotlin.Int),[android.graphics.PixelFormat#RGBX_8888](https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGBX_8888:kotlin.Int),[android.graphics.PixelFormat#RGB_888](https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGB_888:kotlin.Int),[android.graphics.ImageFormat#RGB_565](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RGB_565:kotlin.Int),[android.graphics.ImageFormat#YV12](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YV12:kotlin.Int),[android.graphics.ImageFormat#Y8](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#Y8:kotlin.Int), android.graphics.ImageFormat.Y16,[android.graphics.ImageFormat#YCBCR_P010](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P010:kotlin.Int),[android.graphics.ImageFormat#YCBCR_P210](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P210:kotlin.Int),[android.graphics.ImageFormat#NV16](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#NV16:kotlin.Int),[android.graphics.ImageFormat#NV21](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#NV21:kotlin.Int),[android.graphics.ImageFormat#YUY2](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUY2:kotlin.Int),[android.graphics.ImageFormat#JPEG](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#JPEG:kotlin.Int),[android.graphics.ImageFormat#DEPTH_JPEG](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#DEPTH_JPEG:kotlin.Int),[android.graphics.ImageFormat#YUV_420_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_420_888:kotlin.Int),[android.graphics.ImageFormat#YUV_422_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_422_888:kotlin.Int),[android.graphics.ImageFormat#YUV_444_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_444_888:kotlin.Int),[android.graphics.ImageFormat#FLEX_RGB_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#FLEX_RGB_888:kotlin.Int),[android.graphics.ImageFormat#FLEX_RGBA_8888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#FLEX_RGBA_8888:kotlin.Int),[android.graphics.ImageFormat#RAW_SENSOR](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW_SENSOR:kotlin.Int),[android.graphics.ImageFormat#RAW_PRIVATE](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW_PRIVATE:kotlin.Int),[android.graphics.ImageFormat#RAW10](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW10:kotlin.Int),[android.graphics.ImageFormat#RAW12](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW12:kotlin.Int),[android.graphics.ImageFormat#DEPTH16](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#DEPTH16:kotlin.Int),[android.graphics.ImageFormat#DEPTH_POINT_CLOUD](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#DEPTH_POINT_CLOUD:kotlin.Int), android.graphics.ImageFormat.RAW_DEPTH, android.graphics.ImageFormat.RAW_DEPTH10,[android.graphics.ImageFormat#PRIVATE](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#PRIVATE:kotlin.Int),[android.graphics.ImageFormat#HEIC](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#HEIC:kotlin.Int),[android.graphics.ImageFormat#HEIC_ULTRAHDR](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#HEIC_ULTRAHDR:kotlin.Int), or[android.graphics.ImageFormat#JPEG_R](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#JPEG_R:kotlin.Int) |

|                                          Exceptions                                           ||
|-------------------------------------------|----------------------------------------------------|
| `java.lang.UnsupportedOperationException` | in case the stream is not capable of 10-bit output |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#is10BitCapable()>  

### getAvailableSizes

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getAvailableSizes(): MutableList<Size!>
```

Return the list of available sizes for this mandatory stream.

Per documented android.hardware.camera2.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](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/SessionConfiguration)can be tested either by calling android.hardware.camera2.CameraDevice#createCaptureSession or[CameraDevice.CameraDeviceSetup.isSessionConfigurationSupported](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraDevice.CameraDeviceSetup.html#isSessionConfigurationSupported(android.hardware.camera2.params.SessionConfiguration)).

|                                                                                                                                 Return                                                                                                                                  ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Size](https://developer.android.com/reference/kotlin/android/util/Size.html#)!> | non-modifiable ascending list of available sizes. This value cannot be`null`. |

### getFormat

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getFormat(): Int
```

Retrieve the mandatory stream`format`.

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Return                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | integer format. Value is[android.graphics.ImageFormat#UNKNOWN](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#UNKNOWN:kotlin.Int),[android.graphics.PixelFormat#RGBA_8888](https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGBA_8888:kotlin.Int),[android.graphics.PixelFormat#RGBX_8888](https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGBX_8888:kotlin.Int),[android.graphics.PixelFormat#RGB_888](https://developer.android.com/reference/kotlin/android/graphics/PixelFormat.html#RGB_888:kotlin.Int),[android.graphics.ImageFormat#RGB_565](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RGB_565:kotlin.Int),[android.graphics.ImageFormat#YV12](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YV12:kotlin.Int),[android.graphics.ImageFormat#Y8](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#Y8:kotlin.Int), android.graphics.ImageFormat.Y16,[android.graphics.ImageFormat#YCBCR_P010](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P010:kotlin.Int),[android.graphics.ImageFormat#YCBCR_P210](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P210:kotlin.Int),[android.graphics.ImageFormat#NV16](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#NV16:kotlin.Int),[android.graphics.ImageFormat#NV21](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#NV21:kotlin.Int),[android.graphics.ImageFormat#YUY2](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUY2:kotlin.Int),[android.graphics.ImageFormat#JPEG](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#JPEG:kotlin.Int),[android.graphics.ImageFormat#DEPTH_JPEG](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#DEPTH_JPEG:kotlin.Int),[android.graphics.ImageFormat#YUV_420_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_420_888:kotlin.Int),[android.graphics.ImageFormat#YUV_422_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_422_888:kotlin.Int),[android.graphics.ImageFormat#YUV_444_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YUV_444_888:kotlin.Int),[android.graphics.ImageFormat#FLEX_RGB_888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#FLEX_RGB_888:kotlin.Int),[android.graphics.ImageFormat#FLEX_RGBA_8888](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#FLEX_RGBA_8888:kotlin.Int),[android.graphics.ImageFormat#RAW_SENSOR](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW_SENSOR:kotlin.Int),[android.graphics.ImageFormat#RAW_PRIVATE](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW_PRIVATE:kotlin.Int),[android.graphics.ImageFormat#RAW10](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW10:kotlin.Int),[android.graphics.ImageFormat#RAW12](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#RAW12:kotlin.Int),[android.graphics.ImageFormat#DEPTH16](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#DEPTH16:kotlin.Int),[android.graphics.ImageFormat#DEPTH_POINT_CLOUD](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#DEPTH_POINT_CLOUD:kotlin.Int), android.graphics.ImageFormat.RAW_DEPTH, android.graphics.ImageFormat.RAW_DEPTH10,[android.graphics.ImageFormat#PRIVATE](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#PRIVATE:kotlin.Int),[android.graphics.ImageFormat#HEIC](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#HEIC:kotlin.Int),[android.graphics.ImageFormat#HEIC_ULTRAHDR](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#HEIC_ULTRAHDR:kotlin.Int), or[android.graphics.ImageFormat#JPEG_R](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#JPEG_R:kotlin.Int) |

### getStreamUseCase

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getStreamUseCase(): Long
```

Retrieve the mandatory stream use case.

If this[MandatoryStreamInformation](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#)is part of a mandatory stream combination for stream use cases, the return value will be a non-DEFAULT value. For[MandatoryStreamInformation](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#)belonging to other mandatory stream combinations, the return value will be DEFAULT.

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Return                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ||
|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | the long integer stream use case. Value is[android.hardware.camera2.CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT:kotlin.Int),[android.hardware.camera2.CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW:kotlin.Int),[android.hardware.camera2.CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_STILL_CAPTURE](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_STILL_CAPTURE:kotlin.Int),[android.hardware.camera2.CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_RECORD](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_RECORD:kotlin.Int),[android.hardware.camera2.CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW_VIDEO_STILL](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW_VIDEO_STILL:kotlin.Int),[android.hardware.camera2.CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_CALL](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_CALL:kotlin.Int), or[android.hardware.camera2.CameraMetadata#SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW:kotlin.Int) |

### hashCode

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun hashCode(): Int
```

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by[java.util.HashMap](https://developer.android.com/reference/kotlin/java/util/HashMap.html#).

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 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.
- If two objects are equal according to the[equals](https://developer.android.com/reference/kotlin/java/lang/Object.html#equals(kotlin.Any))method, then calling the`hashCode`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](https://developer.android.com/reference/kotlin/java/lang/Object.html#equals(kotlin.Any))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.

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

### is10BitCapable

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun is10BitCapable(): Boolean
```

Indicates whether this stream is able to support 10-bit output.

10-bit capable streams can be configured to output 10-bit sample data via calls to[android.hardware.camera2.params.OutputConfiguration#setDynamicRangeProfile](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/OutputConfiguration#setDynamicRangeProfile(kotlin.Long))and selecting the appropriate output Surface pixel format which can be queried via[get10BitFormat()](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/MandatoryStreamCombination.MandatoryStreamInformation#get10BitFormat())and will be either[ImageFormat.PRIVATE](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#PRIVATE:kotlin.Int)(the default for Surfaces initialized by[android.view.SurfaceView](https://developer.android.com/reference/kotlin/android/view/SurfaceView.html#),[android.view.TextureView](https://developer.android.com/reference/kotlin/android/view/TextureView.html#),[android.media.MediaRecorder](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.html#),[android.media.MediaCodec](https://developer.android.com/reference/kotlin/android/media/MediaCodec.html#)etc.) or[ImageFormat.YCBCR_P010](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YCBCR_P010:kotlin.Int).

|                                                               Return                                                               ||
|------------------------------------------------------------------------------------|------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if stream is able to output 10-bit pixels |

**See Also**

- [android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraMetadata.html#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT:kotlin.Int)
- [android.hardware.camera2.params.OutputConfiguration#setDynamicRangeProfile](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/OutputConfiguration#setDynamicRangeProfile(kotlin.Long))  

### isInput

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isInput(): Boolean
```

Confirms whether or not this is an input stream.

|                                                                 Return                                                                 ||
|------------------------------------------------------------------------------------|----------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true in case the stream is input, false otherwise. |

### isMaximumSize

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isMaximumSize(): Boolean
```

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[android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraCharacteristics.html#SCALER_STREAM_CONFIGURATION_MAP:android.hardware.camera2.CameraCharacteristics.Key). This maximum size has the same meaning as the 'MAXIMUM' target size documented in the camera capture session android.hardware.camera2.CameraDevice#createCaptureSession.

The application can use a[android.hardware.camera2.MultiResolutionImageReader](https://developer.android.com/reference/kotlin/android/hardware/camera2/MultiResolutionImageReader.html#)for a maximum size output stream if the camera device supports multi-resolution outputs for the stream's format. See[android.hardware.camera2.CameraCharacteristics#SCALER_MULTI_RESOLUTION_STREAM_CONFIGURATION_MAP](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraCharacteristics.html#SCALER_MULTI_RESOLUTION_STREAM_CONFIGURATION_MAP:android.hardware.camera2.CameraCharacteristics.Key)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[android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraCharacteristics.html#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION:android.hardware.camera2.CameraCharacteristics.Key)instead.

|                                                              Return                                                              ||
|------------------------------------------------------------------------------------|----------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if the stream is a maximum size stream. |

### isUltraHighResolution

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isUltraHighResolution(): Boolean
```

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[android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION](https://developer.android.com/reference/kotlin/android/hardware/camera2/CameraCharacteristics.html#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION:android.hardware.camera2.CameraCharacteristics.Key), Streams which are ultra high resolution must not be included with streams which are not ultra high resolution in the same[android.hardware.camera2.CaptureRequest](https://developer.android.com/reference/kotlin/android/hardware/camera2/CaptureRequest.html#).

|                                                                         Return                                                                         ||
|------------------------------------------------------------------------------------|--------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true in case the stream is ultra high resolution, false otherwise. |