UNPKG

react-native-vision-camera

Version:

VisionCamera is the fastest and most powerful Camera for react-native.

10 lines (9 loc) 479 B
import type { DepthPixelFormat } from './DepthPixelFormat'; import type { VideoPixelFormat } from './VideoPixelFormat'; /** * Represents any kind of pixel format for a media sample. * - {@linkcode VideoPixelFormat}: A video-based Format * - {@linkcode DepthPixelFormat}: A depth/disparity-based Format * - `'private'`: An implementation-defined private Format, possibly only allowing GPU access. */ export type PixelFormat = VideoPixelFormat | DepthPixelFormat | 'private';