CameraSessionConfig
interface CameraSessionConfig extends HybridObjectSession-level configuration for a CameraSession.
You can check if a specific CameraSessionConfig is
supported via CameraDevice.isSessionConfigSupported(...).
Properties
autoFocusSystem
readonly autoFocusSystem: AutoFocusSystemGet the AutoFocusSystem used by this CameraSessionConfig.
isBinned
readonly isBinned: booleanGets 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: booleanGets whether Photo HDR is enabled, or not.
nativePixelFormat
readonly nativePixelFormat: PixelFormatGets 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: numberGets the currently selected FPS, or undefined if no specific
FPS value has been selected.
selectedPreviewStabilizationMode?
readonly optional selectedPreviewStabilizationMode: TargetStabilizationModeGets the currently selected TargetStabilizationMode
for Preview Streams (e.g. CameraPreviewOutput), or
undefined if no specific stabilization mode has been configured.
selectedVideoDynamicRange?
readonly optional selectedVideoDynamicRange: TargetDynamicRangeGets the currently selected DynamicRange
for Video Streams (e.g. CameraVideoOutput), or
undefined if no specific dynamic range has been configured.
selectedVideoStabilizationMode?
readonly optional selectedVideoStabilizationMode: TargetStabilizationModeGets the currently selected TargetStabilizationMode
for Video Streams (e.g. CameraVideoOutput), or
undefined if no specific stabilization mode has been configured.