FormatFilter

interface FormatFilter

Properties

autoFocusSystem?

optional autoFocusSystem: AutoFocusSystem

The target auto-focus system. While phase-detection is generally the best system available, you might want to choose a different auto-focus system.


fps?

optional fps: number | "max"

The target FPS you want to record video at. If the FPS requirements cannot be met, the closest format to this value will be used.


iso?

optional iso: number | "min" | "max"

The target ISO value for capturing photos. Higher ISO values tend to capture sharper photos, at the cost of reduced capture speed. Lower ISO values tend to capture photos quicker.


photoAspectRatio?

optional photoAspectRatio: number

The target aspect ratio of the photo output, expressed as a factor: width / height. (Note: Cameras are in landscape orientation)

In most cases, you want this to be the same as targetVideoAspectRatio, which you often want to be as close to the screen's aspect ratio as possible (usually ~9:16)

Example

const screen = Dimensions.get('screen')
targetPhotoAspectRatio: screen.height / screen.width

photoContainerFormat?

optional photoContainerFormat: PhotoContainerFormat

The target PhotoContainerFormat.


photoHDR?

optional photoHDR: boolean

Whether you want to find a format that supports Photo HDR.


photoResolution?

optional photoResolution: Size | "max"

The target resolution of the photo output pipeline. If no format supports the given resolution, the closest format to this value will be used.


pixelFormat?

optional pixelFormat: PixelFormat

The target PixelFormat.


videoAspectRatio?

optional videoAspectRatio: number

The target aspect ratio of the video (and preview) output, expressed as a factor: width / height. (Note: Cameras are in landscape orientation)

In most cases, you want this to be as close to the screen's aspect ratio as possible (usually ~9:16).

Example

const screen = Dimensions.get('screen')
targetVideoAspectRatio: screen.height / screen.width

videoHDR?

optional videoHDR: boolean

Whether you want to find a format that supports Video HDR.


videoResolution?

optional videoResolution: Size | "max"

The target resolution of the video (and frame processor) output pipeline. If no format supports the given resolution, the closest format to this value will be used.


videoStabilizationMode?

optional videoStabilizationMode: VideoStabilizationMode

The target video stabilization mode you want to use. If no format supports the target video stabilization mode, the best other matching format will be used.