A Camera Device's stream-configuration format.

A format specifies:

  • Video Resolution (videoWidth/videoHeight)
  • Photo Resolution (photoWidth/photoHeight)
  • Possible FPS ranges (fps)
  • Video Stabilization Modes (videoStabilizationModes)
interface CameraDeviceFormat {
    autoFocusSystem: AutoFocusSystem;
    fieldOfView: number;
    maxFps: number;
    maxISO: number;
    minFps: number;
    minISO: number;
    photoHeight: number;
    photoWidth: number;
    supportsDepthCapture: boolean;
    supportsPhotoHdr: boolean;
    supportsVideoHdr: boolean;
    videoHeight: number;
    videoStabilizationModes: VideoStabilizationMode[];
    videoWidth: number;
}

Properties

autoFocusSystem: AutoFocusSystem

Specifies this format's auto focus system.

fieldOfView: number

The video field of view in degrees

maxFps: number

The maximum frame rate this Format is able to run at. High resolution formats often run at lower frame rates.

maxISO: number

Maximum supported ISO value

minFps: number

The minum frame rate this Format needs to run at. High resolution formats often run at lower frame rates.

minISO: number

Minimum supported ISO value

photoHeight: number

The height of the highest resolution a still image (photo) can be produced in

photoWidth: number

The width of the highest resolution a still image (photo) can be produced in

supportsDepthCapture: boolean

Specifies whether this format supports delivering depth data for photo or video capture.

supportsPhotoHdr: boolean

Specifies whether this format supports HDR mode for photo capture

supportsVideoHdr: boolean

Specifies whether this format supports HDR mode for video capture

videoHeight: number

The video resolutions's height

videoStabilizationModes: VideoStabilizationMode[]

All supported video stabilization modes

videoWidth: number

The video resolution's width