# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Methods | Inherited Methods

# RecommendedStreamConfigurationMap

`public final class RecommendedStreamConfigurationMap`
`extends Object` ``

java.lang.Object
↳ | android.hardware.camera2.params.RecommendedStreamConfigurationMap

Immutable class to store the recommended stream configurations to set up `Surfaces` for creating a `capture session` with `CameraDevice.createCaptureSession(SessionConfiguration)`.

The recommended list does not replace or deprecate the exhaustive complete list found in `StreamConfigurationMap`. It is a suggestion about available power and performance efficient stream configurations for a specific use case. Per definition it is only a subset of `StreamConfigurationMap` and can be considered by developers for optimization purposes.

This also duplicates the minimum frame durations and stall durations from the `StreamConfigurationMap` for each format/size combination that can be used to calculate effective frame rate when submitting multiple captures.

An instance of this object is available by invoking `CameraCharacteristics#getRecommendedStreamConfigurationMap` and passing a respective usecase id. For more information about supported use case constants see `USECASE_PREVIEW`.

    CameraCharacteristics characteristics = cameraManager.getCameraCharacteristics(cameraId);
     RecommendedStreamConfigurationMap configs = characteristics.getRecommendedStreamConfigurationMap(
             RecommendedStreamConfigurationMap.USECASE_PREVIEW);

See also:

- `CameraCharacteristics.getRecommendedStreamConfigurationMap(int)`
- `CameraDevice.createCaptureSession(SessionConfiguration)`

## Summary

### Constants
`int` | `USECASE_LOW_LATENCY_SNAPSHOT` The recommended stream configuration map for use case low latency snapshot must contain subset of configurations with end-to-end latency that does not exceed 200 ms.
`int` | `USECASE_PREVIEW` The recommended stream configuration map for use case preview must contain a subset of efficient, non-stalling configurations that must include both `ImageFormat.PRIVATE` and `ImageFormat.YUV_420_888` output formats.
`int` | `USECASE_RAW` In case the device supports `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_RAW`, the recommended stream configuration map for use case RAW must contain a subset of efficient configurations that include the `ImageFormat.RAW_SENSOR` and other RAW output formats.
`int` | `USECASE_RECORD` The recommended stream configuration map for recording must contain a subset of efficient video configurations that include `ImageFormat.PRIVATE` output format for at least all supported `profiles`.
`int` | `USECASE_SNAPSHOT` The recommended stream configuration map for use case snapshot must contain a subset of efficient still capture configurations that must include `ImageFormat.JPEG` output format and at least one configuration with size approximately equal to the sensor pixel array size `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`.
`int` | `USECASE_VIDEO_SNAPSHOT` The recommended stream configuration map for use case video snapshot must only contain a subset of efficient liveshot configurations that include `ImageFormat.JPEG` output format.
`int` | `USECASE_ZSL` In case the device supports `CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING` and/or `CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING`, the recommended stream configuration map for use case ZSL must contain a subset of efficient configurations that include the suggested input and output format mappings.

### Public methods
`Set<Size>` | `getHighResolutionOutputSizes(int format)` Get a list of supported high resolution sizes, which cannot operate at full BURST_CAPTURE rate.
`Set<Range<Integer>>` | `getHighSpeedVideoFpsRanges()` Get a list of supported high speed video recording FPS ranges.
`Set<Range<Integer>>` | `getHighSpeedVideoFpsRangesFor(Size size)` Get the frame per second ranges (fpsMin, fpsMax) for input high speed video size.
`Set<Size>` | `getHighSpeedVideoSizes()` Get a list of supported high speed video recording sizes.
`Set<Size>` | `getHighSpeedVideoSizesFor(Range<Integer> fpsRange)` Get the supported video sizes for an input high speed FPS range.
`Set<Integer>` | `getInputFormats()` Get the image `format` input formats in this stream configuration.
`Set<Size>` | `getInputSizes(int format)` Get the supported input sizes for this input format.
`Set<Integer>` | `getOutputFormats()` Get the image `format` output formats in this stream configuration.
`<T> long` | `getOutputMinFrameDuration(Class<T> klass, Size size)` Get the minimum `frame duration` for the class/size combination (in nanoseconds).
`long` | `getOutputMinFrameDuration(int format, Size size)` Get the minimum `frame duration` for the format/size combination (in nanoseconds).
`Set<Size>` | `getOutputSizes(int format)` Get a list of sizes compatible with the requested image `format`.
`<T> Set<Size>` | `getOutputSizes(Class<T> klass)` Get a list of sizes compatible with `klass` to use as an output.
`long` | `getOutputStallDuration(int format, Size size)` Get the stall duration for the format/size combination (in nanoseconds).
`<T> long` | `getOutputStallDuration(Class<T> klass, Size size)` Get the stall duration for the class/size combination (in nanoseconds).
`int` | `getRecommendedUseCase()` Get the use case value for the recommended stream configurations.
`Set<Integer>` | `getValidOutputFormatsForInput(int inputFormat)` Get the image `format` output formats for a reprocessing input format.
`boolean` | `isOutputSupportedFor(Surface surface)` Determine whether or not the `surface` in its current state is suitable to be included in a `capture session` as an output.
`boolean` | `isOutputSupportedFor(int format)` Determine whether or not output surfaces with a particular user-defined format can be passed `createCaptureSession`.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### USECASE_LOW_LATENCY_SNAPSHOT

    public static final int USECASE_LOW_LATENCY_SNAPSHOT

The recommended stream configuration map for use case low latency snapshot must contain subset of configurations with end-to-end latency that does not exceed 200 ms. under standard operating conditions (reasonable light levels, not loaded system). The expected output format will be primarily `ImageFormat.JPEG` however other image formats can be present as well. Even if available for the camera device, high speed and input configurations will be absent. This suggested configuration map may be absent on some devices that can not support any low latency requests.

Constant Value: 6 (0x00000006)

### USECASE_PREVIEW

    public static final int USECASE_PREVIEW

The recommended stream configuration map for use case preview must contain a subset of efficient, non-stalling configurations that must include both `ImageFormat.PRIVATE` and `ImageFormat.YUV_420_888` output formats. Even if available for the camera device, high speed or input configurations will be absent.

Constant Value: 0 (0x00000000)

### USECASE_RAW

    public static final int USECASE_RAW

In case the device supports `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_RAW`, the recommended stream configuration map for use case RAW must contain a subset of efficient configurations that include the `ImageFormat.RAW_SENSOR` and other RAW output formats. Even if available for the camera device, high speed and input configurations will be absent.

Constant Value: 5 (0x00000005)

### USECASE_RECORD

    public static final int USECASE_RECORD

The recommended stream configuration map for recording must contain a subset of efficient video configurations that include `ImageFormat.PRIVATE` output format for at least all supported `profiles`. High speed configurations if supported will be available as well. Even if available for the camera device, input configurations will be absent.

Constant Value: 1 (0x00000001)

### USECASE_SNAPSHOT

    public static final int USECASE_SNAPSHOT

The recommended stream configuration map for use case snapshot must contain a subset of efficient still capture configurations that must include `ImageFormat.JPEG` output format and at least one configuration with size approximately equal to the sensor pixel array size `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`. Even if available for the camera device, high speed or input configurations will be absent.

Constant Value: 3 (0x00000003)

### USECASE_VIDEO_SNAPSHOT

    public static final int USECASE_VIDEO_SNAPSHOT

The recommended stream configuration map for use case video snapshot must only contain a subset of efficient liveshot configurations that include `ImageFormat.JPEG` output format. The sizes will match at least the maximum resolution of usecase record and will not cause any preview glitches. Even if available for the camera device, high speed or input configurations will be absent.

Constant Value: 2 (0x00000002)

### USECASE_ZSL

    public static final int USECASE_ZSL

In case the device supports `CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING` and/or `CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING`, the recommended stream configuration map for use case ZSL must contain a subset of efficient configurations that include the suggested input and output format mappings. Even if available for the camera device, high speed configurations will be absent.

Constant Value: 4 (0x00000004)

## Public methods

### getHighResolutionOutputSizes

    public Set<Size> getHighResolutionOutputSizes (int format)

Get a list of supported high resolution sizes, which cannot operate at full BURST_CAPTURE rate.

For further information refer to `StreamConfigurationMap#getHighResolutionOutputSizes`.

Parameters
`format` | `int`: 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`

Returns
`Set<Size>` | a non-modifiable set of supported slower high-resolution sizes, or `null` if the BURST_CAPTURE capability is not supported

### getHighSpeedVideoFpsRanges

    public Set<Range<Integer>> getHighSpeedVideoFpsRanges ()

Get a list of supported high speed video recording FPS ranges.

For further information refer to `StreamConfigurationMap#getHighSpeedVideoFpsRanges`.

Returns
`Set<Range<Integer>>` | a non-modifiable set of supported high speed video recording FPS ranges The upper bound of returned ranges is guaranteed to be larger or equal to 120. This value may be `null`.

### getHighSpeedVideoFpsRangesFor

    public Set<Range<Integer>> getHighSpeedVideoFpsRangesFor (Size size)

Get the frame per second ranges (fpsMin, fpsMax) for input high speed video size.

For further information refer to `StreamConfigurationMap#getHighSpeedVideoFpsRangesFor`.

Parameters
`size` | `Size`: one of the sizes returned by `getHighSpeedVideoSizes()` This value cannot be `null`.

Returns
`Set<Range<Integer>>` | a non-modifiable set of supported high speed video recording FPS ranges The upper bound of returned ranges is guaranteed to be greater than or equal to 120. This value may be `null`.

Throws
`IllegalArgumentException` | if input size does not exist in the return value of getHighSpeedVideoSizes

### getHighSpeedVideoSizes

    public Set<Size> getHighSpeedVideoSizes ()

Get a list of supported high speed video recording sizes.

For more information refer to `StreamConfigurationMap#getHighSpeedVideoSizes`.

Returns
`Set<Size>` | a non-modifiable set of supported high speed video recording sizes This value may be `null`.

### getHighSpeedVideoSizesFor

    public Set<Size> getHighSpeedVideoSizesFor (Range<Integer> fpsRange)

Get the supported video sizes for an input high speed FPS range.

For further information refer to `StreamConfigurationMap#getHighSpeedVideoSizesFor`.

Parameters
`fpsRange` | `Range`: one of the FPS ranges returned by `getHighSpeedVideoFpsRanges()` This value cannot be `null`.

Returns
`Set<Size>` | A non-modifiable set of video sizes to create high speed capture sessions for high speed streaming use cases. This value may be `null`.

Throws
`IllegalArgumentException` | if input FPS range does not exist in the return value of getHighSpeedVideoFpsRanges

### getInputFormats

    public Set<Integer> getInputFormats ()

Get the image `format` input formats in this stream configuration.

All image formats returned by this function will be defined in either `ImageFormat` or in `PixelFormat` (and there is no possibility of collision).

Returns
`Set<Integer>` | a non-modifiable set of Integer formats This value may be `null`.

### getInputSizes

    public Set<Size> getInputSizes (int format)

Get the supported input sizes for this input format.

The format must have come from `getInputFormats()`; otherwise `null` is returned.

Parameters
`format` | `int`: a format from `getInputFormats()` 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`

Returns
`Set<Size>` | a non-modifiable set of sizes, or `null` if the format was not available.

### getOutputFormats

    public Set<Integer> getOutputFormats ()

Get the image `format` output formats in this stream configuration.

For more information refer to `StreamConfigurationMap#getOutputFormats`.

Returns
`Set<Integer>` | a non-modifiable set of Integer formats This value cannot be `null`.

### getOutputMinFrameDuration

    public long getOutputMinFrameDuration (Class<T> klass,
                    Size size)

Get the minimum `frame duration` for the class/size combination (in nanoseconds).

For more information refer to `StreamConfigurationMap#getOutputMinFrameDuration(Class, Size)`.

Parameters
`klass` | `Class`: a class which has a non-empty array returned by `getOutputSizes(java.lang.Class)` This value cannot be `null`.
`size` | `Size`: an output-compatible size This value cannot be `null`.

Returns
`long` | a minimum frame duration `>` 0 in nanoseconds, or 0 if the minimum frame duration is not available. Value is 0 or greater

Throws
`IllegalArgumentException` | if `klass` or `size` was not supported

### getOutputMinFrameDuration

    public long getOutputMinFrameDuration (int format,
                    Size size)

Get the minimum `frame duration` for the format/size combination (in nanoseconds).

For further information refer to `StreamConfigurationMap#getOutputMinFrameDuration`.

Parameters
`format` | `int`: an image format from `ImageFormat` or `PixelFormat` 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`
`size` | `Size`: an output-compatible size This value cannot be `null`.

Returns
`long` | a minimum frame duration `>` 0 in nanoseconds, or 0 if the minimum frame duration is not available. Value is 0 or greater

Throws
`IllegalArgumentException` | if `format` or `size` was not supported

### getOutputSizes

    public Set<Size> getOutputSizes (int format)

Get a list of sizes compatible with the requested image `format`.

For more information refer to `StreamConfigurationMap#getOutputSizes`.

Parameters
`format` | `int`: an image format from `ImageFormat` or `PixelFormat` 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`

Returns
`Set<Size>` | a non-modifiable set of supported sizes, or `null` if the `format` is not a supported output

### getOutputSizes

    public Set<Size> getOutputSizes (Class<T> klass)

Get a list of sizes compatible with `klass` to use as an output.

For further information refer to `StreamConfigurationMap#getOutputSizes(Class)`.

Parameters
`klass` | `Class`: a `Class` object reference This value cannot be `null`.

Returns
`Set<Size>` | a non-modifiable set of supported sizes for `ImageFormat#PRIVATE` format, or `null` if the `klass` is not a supported output.

### getOutputStallDuration

    public long getOutputStallDuration (int format,
                    Size size)

Get the stall duration for the format/size combination (in nanoseconds).

For further information refer to `StreamConfigurationMap#getOutputStallDuration`.

Parameters
`format` | `int`: an image format from `ImageFormat` or `PixelFormat` 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`
`size` | `Size`: an output-compatible size This value cannot be `null`.

Returns
`long` | a stall duration `>=` 0 in nanoseconds Value is 0 or greater

Throws
`IllegalArgumentException` | if `format` or `size` was not supported

### getOutputStallDuration

    public long getOutputStallDuration (Class<T> klass,
                    Size size)

Get the stall duration for the class/size combination (in nanoseconds).

For more information refer to `StreamConfigurationMap#getOutputStallDuration(Class, Size)`.

Parameters
`klass` | `Class`: a class which has a non-empty array returned by `getOutputSizes(java.lang.Class)`. This value cannot be `null`.
`size` | `Size`: an output-compatible size This value cannot be `null`.

Returns
`long` | a minimum frame duration `>` 0 in nanoseconds, or 0 if the stall duration is not available. Value is 0 or greater

Throws
`IllegalArgumentException` | if `klass` or `size` was not supported

### getRecommendedUseCase

    public int getRecommendedUseCase ()

Get the use case value for the recommended stream configurations.

Returns
`int` | Use case id. Value is `USECASE_PREVIEW`, `USECASE_RECORD`, `USECASE_VIDEO_SNAPSHOT`, `USECASE_SNAPSHOT`, `USECASE_ZSL`, `USECASE_RAW`, or `USECASE_LOW_LATENCY_SNAPSHOT`

### getValidOutputFormatsForInput

    public Set<Integer> getValidOutputFormatsForInput (int inputFormat)

Get the image `format` output formats for a reprocessing input format.

For more information refer to `StreamConfigurationMap#getValidOutputFormatsForInput`.

Parameters
`inputFormat` | `int`: 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`

Returns
`Set<Integer>` | a non-modifiable set of Integer formats This value may be `null`.

### isOutputSupportedFor

    public boolean isOutputSupportedFor (Surface surface)

Determine whether or not the `surface` in its current state is suitable to be included in a `capture session` as an output.

For more information refer to `StreamConfigurationMap#isOutputSupportedFor`.

Parameters
`surface` | `Surface`: a `Surface` object reference This value cannot be `null`.

Returns
`boolean` | `true` if this is supported, `false` otherwise

Throws
`IllegalArgumentException` | if the Surface endpoint is no longer valid

### isOutputSupportedFor

    public boolean isOutputSupportedFor (int format)

Determine whether or not output surfaces with a particular user-defined format can be passed `createCaptureSession`.

For further information refer to `StreamConfigurationMap#isOutputSupportedFor`.

Parameters
`format` | `int`: an image format from either `ImageFormat` or `PixelFormat` 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`

Returns
`boolean` | `true` if using a `surface` with this `format` will be supported with `CameraDevice#createCaptureSession`

Throws
`IllegalArgumentException` | if the image format was not a defined named constant from either `ImageFormat` or `PixelFormat`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*