Skip to content

BikHeader

Defined in: bik-decoder.ts:40

Decoded header of a BIK data source.

audioTracks: BikAudioTrackHeader[]

Defined in: bik-decoder.ts:135

Array containing decoded header information for each individual audio track stored in the encoded video.


fps: number

Defined in: bik-decoder.ts:83

Number of frames per second that the video should be played at.


frames: BikFrameHeader[]

Defined in: bik-decoder.ts:141

Array containing decoded header information for each individual video frame stored in the encoded video.


height: number

Defined in: bik-decoder.ts:78

Height of each video frame (in pixels).


largestFrameSize: number

Defined in: bik-decoder.ts:68

The total size of the largest frame (in bytes), including both audio and video that are stored with that frame.


numAudioTracks: number

Defined in: bik-decoder.ts:129

Total number of audio tracks stored in the encoded video.

Each track can have one or more channels (e.g. for stereo or surround sound).


numFrames: number

Defined in: bik-decoder.ts:62

Number of frames in the video.

Note that audio is stored with each frame but doesn’t necessarily correspond to the audio that should be played when the video frame is shown.


subVersion: number

Defined in: bik-decoder.ts:49

Sub-version of the encoding format.


totalSize: number

Defined in: bik-decoder.ts:54

Total size of the encoded video data (in bytes).


version: 1 | 2

Defined in: bik-decoder.ts:44

Version of the encoding format.


videoFlags: object

Defined in: bik-decoder.ts:88

Flags providing additional information about the encoded video.

hasAlpha: boolean

When true, the encoded video contains an alpha plane for each frame. Otherwise the video contains no alpha information.

hasSwappedUVPlanes: boolean

When true, the U and V planes in the encoded video should be swapped during the decoding process.

This is a value intended for internal use by the decoder and should not be needed by applications that use the decoder.

isGrayscale: boolean

When true, the encoded video doesn’t contain U or V planes. Otherwise the video contains both U and V planes.

scaling: number

Whether the decoded image data should be treated as scaled and/or interlaced.

  • 1 = double height
  • 2 = double height; interlaced
  • 3 = double width
  • 4 = double width and height
  • 5 = double width and height; interlaced

Source: https://wiki.multimedia.cx/index.php/Bink_Container


width: number

Defined in: bik-decoder.ts:73

Width of each video frame (in pixels).