Skip to content

BikVideoFrame

Defined in: bik-video-decoder.ts:33

Data structure describing a single decoded video frame. All values (including pixel values) are not used by the decoder for any subsequent processing, so can be used by an application freely.

height: number

Defined in: bik-video-decoder.ts:42

Coded height of the video frame (in pixels).


lineSize: number[]

Defined in: bik-video-decoder.ts:57

The number of pixels per line of the video frame, stored as an array of per-plane values in the order: Y, U, V, alpha.


width: number

Defined in: bik-video-decoder.ts:37

Coded width of the video frame (in pixels).


yuv: Uint8Array<ArrayBuffer>

Defined in: bik-video-decoder.ts:51

Pixel data for the video frame, encoded in Planar YUV 4:2:0 format with an optional alpha channel. The planes are stored in the order: Y, U, V, alpha. Each of the Y and alpha planes occupy 4 times as much space in the buffer as either the U or V plane (as would be expected given the encoding format), and the total buffer size is set to be just enough to hold all of the planes.