Home Reference Source
import ExpGolomb from 'hls.js/src/demux/exp-golomb.js'
public class | source

ExpGolomb

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

data: *

public

Method Summary

Public Methods
public
public

readBits(size: *): *

public
public

readEG(): *

public

readSPS(data: *): object

Read a sequence parameter set and return some interesting video properties.

public
public

readUByte(): *

public

readUEG(): *

public

readUInt(): *

public

readUShort(): *

public

skipBits(count: *)

public

skipEG()

public

skipLZ(): *

public

skipScalingList(count: *)

Advance the ExpGolomb decoder past a scaling list.

public

Public Constructors

public constructor() source

Public Members

public bitsAvailable: number source

public bytesAvailable: * source

public data: * source

public word: number source

Public Methods

public loadWord() source

public readBits(size: *): * source

Params:

NameTypeAttributeDescription
size *

Return:

*

public readBoolean(): * source

Return:

*

public readEG(): * source

Return:

*

public readSPS(data: *): object source

Read a sequence parameter set and return some interesting video properties. A sequence parameter set is the H264 metadata that describes the properties of upcoming video frames.

Params:

NameTypeAttributeDescription
data *

{Uint8Array} the bytes of a sequence parameter set

Return:

object

an object with configuration parsed from the sequence parameter set, including the dimensions of the associated video frames.

public readSliceType(): * source

Return:

*

public readUByte(): * source

Return:

*

public readUEG(): * source

Return:

*

public readUInt(): * source

Return:

*

public readUShort(): * source

Return:

*

public skipBits(count: *) source

Params:

NameTypeAttributeDescription
count *

public skipEG() source

public skipLZ(): * source

Return:

*

public skipScalingList(count: *) source

Advance the ExpGolomb decoder past a scaling list. The scaling list is optionally transmitted as part of a sequence parameter set and is not relevant to transmuxing.

Params:

NameTypeAttributeDescription
count *

{number} the number of entries in this scaling list

See:

public skipUEG() source