/** * A single frame, as seen by the camera. */ export interface Frame { /** * Whether the underlying buffer is still valid or not. The buffer will be released after the frame processor returns, or `close()` is called. */ isValid: boolean; /** * Returns the width of the frame, in pixels. */ width: number; /** * Returns the height of the frame, in pixels. */ height: number; /** * Returns the amount of bytes per row. */ bytesPerRow: number; /** * Returns the number of planes this frame contains. */ planesCount: number; /** * Returns a string representation of the frame. * @example * ```ts * console.log(frame.toString()) // -> "3840 x 2160 Frame" * ``` */ toString(): string; } export interface FrameInternal extends Frame { /** * Increment the Frame Buffer ref-count by one. * * This is a private API, do not use this. */ incrementRefCount(): void; /** * Increment the Frame Buffer ref-count by one. * * This is a private API, do not use this. */ decrementRefCount(): void; }