Constructor
new ExpGolomb(datanon-null, convertEbsp2rbspopt)
Parser for exponential Golomb codes, a variable-bitwidth number encoding scheme used by h264. Based on https://github.com/videojs/mux.js/blob/main/lib/utils/exp-golomb.js
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
Uint8Array | |||
convertEbsp2rbsp |
boolean |
<optional> |
false |
- Source:
Members
Methods
ebsp2rbsp_(datanon-null) → {Uint8Array}
Parameters:
Name | Type | Description |
---|---|---|
data |
Uint8Array |
- Source:
Returns:
- Type
- Uint8Array
readBits(size) → {number}
Read n bits
Parameters:
Name | Type | Description |
---|---|---|
size |
number |
- Source:
Returns:
- Type
- number
readBoolean() → {boolean}
Read 1 bit as boolean
- Source:
Returns:
- Type
- boolean
readExpGolomb() → {number}
Return exponential Golomb
- Source:
Returns:
- Type
- number
readSliceType() → {number}
Return the slice type
- Source:
Returns:
- Type
- number
readUnsignedByte() → {number}
Read 8 bits
- Source:
Returns:
- Type
- number
readUnsignedExpGolomb() → {number}
Return unsigned exponential Golomb
- Source:
Returns:
- Type
- number
skipBits(count)
Skip n bits
Parameters:
Name | Type | Description |
---|---|---|
count |
number |
- Source:
skipLeadingZeros_() → {number}
Return the number of skip leading zeros
- Source:
Returns:
- Type
- number
skipScalingList(count)
The scaling list is optionally transmitted as part of a Sequence Parameter
Set (SPS).
Parameters:
Name | Type | Description |
---|---|---|
count |
number | the number of entries in this scaling list |
- Source:
- See:
-
- Recommendation ITU-T H.264, Section 7.3.2.1.1.1