Constructor
new DolbyVision()
Members
ENTRY_NAMES_ :Array<string>
The sample entries of Dolby Vision that are written, for HEVC, AVC and AV1.
Type:
- Array<string>
- Source:
LAST_DVCC_PROFILE_ :number
The last profile that is signaled in a dvcC box.
Type:
- number
- Source:
MIN_RECORD_SIZE_ :number
The size of the fields of a record that are read: the version, the profile
and level, the flags and the compatibility.
Type:
- number
- Source:
Methods
getBoxName(config) → {string}
Gets the name of the box that holds the record: dvcC for the profiles up
to 7, and dvvC for the newer ones.
Parameters:
| Name | Type | Description |
|---|---|---|
config |
shaka.codec.DolbyVision.Config |
- Source:
Returns:
- Type
- string
getCodecs(entryName, config) → {string}
Gets the RFC 6381 codec string.
Parameters:
| Name | Type | Description |
|---|---|---|
entryName |
string | The sample entry: 'dvh1' (HEVC), 'dva1' (AVC) or 'dav1' (AV1). |
config |
shaka.codec.DolbyVision.Config |
- Source:
Returns:
- Type
- string
getEntryName(codecs) → {string}
Gets the name of the sample entry that a codec string asks for, if it is
one of Dolby Vision.
Parameters:
| Name | Type | Description |
|---|---|---|
codecs |
string |
- Source:
Returns:
- Type
- string
hasCompatibleBase(config) → {boolean}
Tells whether the stream plays as its base codec, HDR10 or SDR, on a
platform that does not decode Dolby Vision. Profile 5 does not: its
colors only make sense with the Dolby Vision metadata.
Parameters:
| Name | Type | Description |
|---|---|---|
config |
shaka.codec.DolbyVision.Config |
- Source:
Returns:
- Type
- boolean
parseConfig(recordnon-null) → {shaka.codec.DolbyVision.Config}
Reads a DOVIDecoderConfigurationRecord (the payload of dvcC and dvvC).
Parameters:
| Name | Type | Description |
|---|---|---|
record |
Uint8Array |
- Source:
Returns:
Type Definitions
Config
Type:
- {profile: number, level: number, rpuPresent: boolean, elPresent: boolean, blPresent: boolean, blSignalCompatibilityId: number}
Properties:
| Name | Type | Description |
|---|---|---|
profile |
number | |
level |
number | |
rpuPresent |
boolean | Whether the frames carry the dynamic metadata (the RPU). |
elPresent |
boolean | Whether there is an enhancement layer. |
blPresent |
boolean | Whether there is a base layer. |
blSignalCompatibilityId |
number | What the base layer is compatible with: 0 nothing (profile 5), 1 HDR10, 2 SDR, 4 HLG. |
- Source: