CameraSessionConfig

interface CameraSessionConfig extends HybridObject

Session-level configuration for a CameraSession.

You can check if a specific CameraSessionConfig is supported via CameraDevice.isSessionConfigSupported(...).

Properties

autoFocusSystem

readonly autoFocusSystem: AutoFocusSystem

Get the AutoFocusSystem used by this CameraSessionConfig.


isBinned

readonly isBinned: boolean

Gets whether this CameraSessionConfig is streaming in a binned format.

Discussion

Pixel binning combines multiple neighboring sensor pixels into one larger effective pixel. This usually improves low-light sensitivity and reduces noise, but can trade away fine detail compared to a full-resolution non-binned readout. Additionally, binned formats are more performant as they use significantly less bandwidth.


isPhotoHDREnabled

readonly isPhotoHDREnabled: boolean

Gets whether Photo HDR is enabled, or not.


nativePixelFormat

readonly nativePixelFormat: PixelFormat

Gets the PixelFormat this config is natively streaming in.

Discussion

If nativePixelFormat is the same PixelFormat as the requested pixel format of your streaming output (e.g. a CameraFrameOutput), no conversion has to take place to stream Frames, which provides better performance and lower latency.

If these pixel formats differ, pixel format conversions take place causing higher latency which ultimately causes lower throughput and higher battery usage.


selectedFPS?

readonly optional selectedFPS: number

Gets the currently selected FPS, or undefined if no specific FPS value has been selected.


selectedPreviewStabilizationMode?

readonly optional selectedPreviewStabilizationMode: TargetStabilizationMode

Gets the currently selected TargetStabilizationMode for Preview Streams (e.g. CameraPreviewOutput), or undefined if no specific stabilization mode has been configured.


selectedVideoDynamicRange?

readonly optional selectedVideoDynamicRange: TargetDynamicRange

Gets the currently selected DynamicRange for Video Streams (e.g. CameraVideoOutput), or undefined if no specific dynamic range has been configured.


selectedVideoStabilizationMode?

readonly optional selectedVideoStabilizationMode: TargetStabilizationMode

Gets the currently selected TargetStabilizationMode for Video Streams (e.g. CameraVideoOutput), or undefined if no specific stabilization mode has been configured.