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

ExpGolomb

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

data: *

public

Method Summary

Public Methods
public
public
public
public
public

readSPS(): {"width": *, "height": *, "pixelRatio": *}

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

public
public
public
public
public
public

skipBits(count: number)

public

skipEG()

public
public

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: number): number source

Params:

NameTypeAttributeDescription
size number

Return:

number

public readBoolean(): boolean source

Return:

boolean

public readEG(): number source

Return:

number

public readSPS(): {"width": *, "height": *, "pixelRatio": *} 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.

Return:

{"width": *, "height": *, "pixelRatio": *}

public readSliceType(): * source

Return:

*

public readUByte(): number source

Return:

number

public readUEG(): number source

Return:

number

public readUInt(): number source

Return:

number

public readUShort(): number source

Return:

number

public skipBits(count: number) source

Params:

NameTypeAttributeDescription
count number

public skipEG() source

public skipLZ(): number source

Return:

number

public skipScalingList(count: number) 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

public skipUEG() source