StreamConfigurationMapWrapper


interface StreamConfigurationMapWrapper : UnsafeWrapper

Known direct subclasses
FakeStreamConfigurationMap

A fake implementation of StreamConfigurationMapWrapper for testing.


A compatibility wrapper for android.hardware.camera2.params.StreamConfigurationMap.

Summary

Inherited functions

From androidx.camera.common.UnsafeWrapper
T?
<T : Any> unwrapAs(type: Class<T>)

Attempts to unwrap this object into the specified underlying type.

Public functions

getHighResolutionOutputSizes

Added in 1.7.0-alpha03
fun getHighResolutionOutputSizes(format: Int): List<Size>

getHighSpeedVideoFpsRanges

Added in 1.7.0-alpha03
fun getHighSpeedVideoFpsRanges(): List<Range<Int>>

getHighSpeedVideoFpsRangesFor

Added in 1.7.0-alpha03
fun getHighSpeedVideoFpsRangesFor(size: Size): List<Range<Int>>

getHighSpeedVideoSizes

Added in 1.7.0-alpha03
fun getHighSpeedVideoSizes(): List<Size>

getHighSpeedVideoSizesFor

Added in 1.7.0-alpha03
fun getHighSpeedVideoSizesFor(fpsRange: Range<Int>): List<Size>

getInputFormats

Added in 1.7.0-alpha03
fun getInputFormats(): List<Int>
See also
getInputFormats

getInputSizes

Added in 1.7.0-alpha03
fun getInputSizes(format: Int): List<Size>
See also
getInputSizes

getOutputFormats

Added in 1.7.0-alpha03
fun getOutputFormats(): List<Int>
See also
getOutputFormats

getOutputMinFrameDuration

Added in 1.7.0-alpha03
fun getOutputMinFrameDuration(format: Int, size: Size): Long

getOutputMinFrameDuration

Added in 1.7.0-alpha03
fun <T : Any?> getOutputMinFrameDuration(klass: Class<T>, size: Size): Long

getOutputSizes

Added in 1.7.0-alpha03
fun getOutputSizes(format: Int): List<Size>
See also
getOutputSizes

getOutputSizes

Added in 1.7.0-alpha03
fun <T : Any?> getOutputSizes(klass: Class<T>): List<Size>
See also
getOutputSizes

getOutputStallDuration

Added in 1.7.0-alpha03
fun getOutputStallDuration(format: Int, size: Size): Long

getOutputStallDuration

Added in 1.7.0-alpha03
fun <T : Any?> getOutputStallDuration(klass: Class<T>, size: Size): Long

getValidOutputFormatsForInput

Added in 1.7.0-alpha03
fun getValidOutputFormatsForInput(inputFormat: Int): List<Int>

isOutputSupportedFor

Added in 1.7.0-alpha03
fun isOutputSupportedFor(format: Int): Boolean

isOutputSupportedFor

Added in 1.7.0-alpha03
fun <T : Any?> isOutputSupportedFor(klass: Class<T>): Boolean

Converting this method to non-static for testability.

isOutputSupportedFor

Added in 1.7.0-alpha03
fun isOutputSupportedFor(surface: Surface): Boolean