ImageAnalysisCapabilities


interface ImageAnalysisCapabilities


ImageAnalysisCapabilities is used to query ImageAnalysis use case capabilities on the device.

Summary

Public functions

Boolean

Returns whether the given output image format is supported.

Public functions

isOutputFormatSupported

Added in 1.7.0-alpha02
fun isOutputFormatSupported(format: Int): Boolean

Returns whether the given output image format is supported.

The possible values are OUTPUT_IMAGE_FORMAT_YUV_420_888, OUTPUT_IMAGE_FORMAT_RGBA_8888, OUTPUT_IMAGE_FORMAT_NV21, or OUTPUT_IMAGE_FORMAT_PRIVATE.

Parameters
format: Int

the output image format.

Returns
Boolean

true if the output image format is supported.