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 theCameraSessionConfig'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 a CPU-readable YUV format. This is currently YUV 4:2:0 8-bit, usually reported as full-range ('yuv-420-8-bit-full') unless the platform explicitly reports video-range metadata.'rgb': Choose an RGB format. Often 8-bit BGRA like'rgb-bgra-8-bit'.