UNPKG

react-native-vision-camera

Version:

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

13 lines (12 loc) 649 B
import type { Depth } from '../specs/instances/Depth.nitro'; import type { Frame } from '../specs/instances/Frame.nitro'; import type { CameraDepthFrameOutput } from '../specs/outputs/CameraDepthFrameOutput.nitro'; import type { CameraFrameOutput } from '../specs/outputs/CameraFrameOutput.nitro'; /** * An implementation for a separate Runtime/Thread. * For example, Worklets. */ export interface RuntimeThread { setOnFrameCallback(frameOutput: CameraFrameOutput, callback: ((frame: Frame) => void) | undefined): void; setOnDepthFrameCallback(depthOutput: CameraDepthFrameOutput, callback: ((depth: Depth) => void) | undefined): void; }