react-native-vision-cameraType aliases
TargetVideoPixelFormat
type TargetVideoPixelFormat = "native" | "yuv" | "rgb"Represents a desired pixel format for a video pipeline.
Used to configure the format a CameraFrameOutput
streams Frames in.
'native': Choose whatever the currently selectedCameraFormat'snativePixelFormatis. This can be a YUV format, an RGB format like'rgb-bgra-8-bit', a RAW format like'raw-bayer-packed96-12-bit', or a private format ('private') and requires zero conversion.'yuv': Choose the YUV format closest to the Camera's native format. Often YUV 4:2:0 8-bit full-range like'yuv-420-8-bit-full'.'rgb': Choose an RGB format. Often 8-bit BGRA like'rgb-bgra-8-bit'.