FormatFilter
interface FormatFilterProperties
autoFocusSystem?
optional autoFocusSystem: AutoFocusSystemThe 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: numberThe 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.widthphotoContainerFormat?
optional photoContainerFormat: PhotoContainerFormatThe target PhotoContainerFormat.
photoHDR?
optional photoHDR: booleanWhether 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: PixelFormatThe target PixelFormat.
videoAspectRatio?
optional videoAspectRatio: numberThe 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.widthvideoHDR?
optional videoHDR: booleanWhether 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: VideoStabilizationModeThe 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.