Skip to main content
Version: Next

Interface: CameraFrameInfo

Defined in: react-native/webgpu/cameraFrameProcessorSession.ts:42

What the per-frame worklet needs to know about the camera frame beyond the GPU textures the render context already carries: its timestamp, which camera produced it, and its dimensions. A plain object so it copies into the frame runtime.

Properties​

height​

readonly height: number

Defined in: react-native/webgpu/cameraFrameProcessorSession.ts:48


isFrontCamera​

readonly isFrontCamera: boolean

Defined in: react-native/webgpu/cameraFrameProcessorSession.ts:46

Whether the frame came from the front (self-view) camera.


rotationDegrees​

readonly rotationDegrees: 0 | 90 | 180 | 270

Defined in: react-native/webgpu/cameraFrameProcessorSession.ts:50

Clockwise rotation applied to bring the frame upright at import.


timestampNanoseconds​

readonly timestampNanoseconds: number

Defined in: react-native/webgpu/cameraFrameProcessorSession.ts:44

Presentation timestamp of this frame, in nanoseconds.


width​

readonly width: number

Defined in: react-native/webgpu/cameraFrameProcessorSession.ts:47