|
14 | 14 | Abstract: This registration is entered into the [[webcodecs-codec-registry]].
|
15 | 15 | It describes, for AVC (H.264), the (1) fully qualified codec strings,
|
16 | 16 | (2) the codec-specific {{EncodedVideoChunk}}
|
17 |
| - [=EncodedVideoChunk/[[internal data]]=] bytes, (3) the |
18 |
| - {{VideoDecoderConfig.description}} bytes, (4) the values of |
19 |
| - {{EncodedVideoChunk}} [=EncodedVideoChunk/[[type]]=], and (5) the |
20 |
| - codec-specific extensions to {{VideoEncoderConfig}} |
| 17 | + {{EncodedVideoChunk/[[internal data]]}} bytes, (3) the |
| 18 | + {{VideoDecoderConfig/description|VideoDecoderConfig.description}} bytes, |
| 19 | + (4) the values of {{EncodedVideoChunk}} {{EncodedVideoChunk/[[type]]}}, |
| 20 | + and (5) the codec-specific extensions to {{VideoEncoderConfig}} |
21 | 21 |
|
22 | 22 | The registration is not intended to include any information on whether a
|
23 | 23 | codec format is encumbered by intellectual property claims. Implementers and
|
|
33 | 33 | !Version History: <a href="https://github.com/w3c/webcodecs/commits">https://github.com/w3c/webcodecs/commits</a>
|
34 | 34 | </pre>
|
35 | 35 |
|
36 |
| -<pre class='anchors'> |
37 |
| -spec: WEBCODECS; urlPrefix: https://w3c.github.io/webcodecs/# |
38 |
| - type: attribute |
39 |
| - text: EncodedVideoChunkMetadata.decoderConfig; url: dom-encodedvideochunkmetadata-decoderconfig |
40 |
| - for: EncodedVideoChunkType; text: key; url: dom-encodedvideochunktype-key |
41 |
| - text: VideoDecoderConfig.description; url: dom-videodecoderconfig-description |
42 |
| - type: dfn |
43 |
| - for: EncodedVideoChunk; text: [[internal data]]; url: dom-encodedvideochunk-internal-data-slot |
44 |
| - for: EncodedVideoChunk; text: [[type]]; url: dom-encodedvideochunk-type-slot |
45 |
| - for: VideoEncoder; text: [[output callback]]; url: dom-videoencoder-output-callback-slot |
46 |
| - type: interface |
47 |
| - text: EncodedVideoChunk; url: encodedvideochunk |
48 |
| - text: VideoEncoder; url: videoencoder |
49 |
| - type: dictionary |
50 |
| - text: VideoEncoderConfig; url: dictdef-videoencoderconfig |
51 |
| - text: VideoDecoderConfig; url: dictdef-videodecoderconfig |
52 |
| -</pre> |
53 |
| - |
54 | 36 | <pre class='biblio'>
|
55 | 37 | {
|
56 | 38 | "ITU-T-REC-H.264": {
|
|
78 | 60 | EncodedVideoChunk data {#encodedvideochunk-data}
|
79 | 61 | ================================================
|
80 | 62 |
|
81 |
| -{{EncodedVideoChunk}} [=EncodedVideoChunk/[[internal data]]=] is expected to be |
| 63 | +{{EncodedVideoChunk}} {{EncodedVideoChunk/[[internal data]]}} is expected to be |
82 | 64 | an access unit as defined in [[ITU-T-REC-H.264]] section 7.4.1.2.
|
83 | 65 |
|
84 | 66 | NOTE: An access unit contains exactly one primary coded picture.
|
85 | 67 |
|
86 | 68 | If the bitstream is in {{AvcBitstreamFormat/avc}} format,
|
87 |
| -[=EncodedVideoChunk/[[internal data]]=] is assumed to be in canonical format, as |
| 69 | +{{EncodedVideoChunk/[[internal data]]}} is assumed to be in canonical format, as |
88 | 70 | defined in [[iso14496-15]] section 5.3.2.
|
89 | 71 |
|
90 | 72 | If the bitstream is in {{AvcBitstreamFormat/annexb}} format,
|
91 |
| -[=EncodedVideoChunk/[[internal data]]=] is assumed to be in in Annex B format, |
| 73 | +{{EncodedVideoChunk/[[internal data]]}} is assumed to be in in Annex B format, |
92 | 74 | as defined in [[ITU-T-REC-H.264]] Annex B.
|
93 | 75 |
|
94 |
| -NOTE: Since [=EncodedVideoChunk/[[internal data]]=] is inherently byte-aligned, |
| 76 | +NOTE: Since {{EncodedVideoChunk/[[internal data]]}} is inherently byte-aligned, |
95 | 77 | implementations are not required to recover byte-alignment.
|
96 | 78 |
|
97 | 79 | VideoDecoderConfig description {#videodecoderconfig-description}
|
98 | 80 | ================================================================
|
99 | 81 |
|
100 |
| -If the {{VideoDecoderConfig.description}} is present, it is assumed to be an |
| 82 | +If the {{VideoDecoderConfig/description}} is present, it is assumed to be an |
101 | 83 | `AVCDecoderConfigurationRecord`, as defined by [[iso14496-15]], section
|
102 | 84 | 5.3.3.1, and the bitstream is assumed to be in {{AvcBitstreamFormat/avc}}
|
103 | 85 | format.
|
104 | 86 |
|
105 | 87 | NOTE: This format is commonly used in .MP4 files, where the player generally
|
106 | 88 | has random access to the media data.
|
107 | 89 |
|
108 |
| -If the {{VideoDecoderConfig.description}} is not present, the bitstream is |
| 90 | +If the {{VideoDecoderConfig/description}} is not present, the bitstream is |
109 | 91 | assumed to be in {{AvcBitstreamFormat/annexb}} format.
|
110 | 92 |
|
111 | 93 | NOTE: "annexb" format is described in greater detail by [[ITU-T-REC-H.264]],
|
|
116 | 98 | EncodedVideoChunk type {#encodedvideochunk-type}
|
117 | 99 | ================================================
|
118 | 100 |
|
119 |
| -If an {{EncodedVideoChunk}}'s [=EncodedVideoChunk/[[type]]=] is |
| 101 | +If an {{EncodedVideoChunk}}'s {{EncodedVideoChunk/[[type]]}} is |
120 | 102 | {{EncodedVideoChunkType/key}}, and the bitstream is in
|
121 | 103 | {{AvcBitstreamFormat/avc}} format, then the {{EncodedVideoChunk}} is expected to
|
122 | 104 | contain a primary coded picture that is an instantaneous decoding refresh (IDR)
|
123 | 105 | picture.
|
124 | 106 |
|
125 | 107 | NOTE: If the bitstream is in {{AvcBitstreamFormat/avc}} format, parameter sets
|
126 |
| - necessary for decoding are included in {{VideoDecoderConfig.description}}. |
| 108 | + necessary for decoding are included in |
| 109 | + {{VideoDecoderConfig/description|VideoDecoderConfig.description}}. |
127 | 110 |
|
128 |
| -If an {{EncodedVideoChunk}}'s [=EncodedVideoChunk/[[type]]=] is |
| 111 | +If an {{EncodedVideoChunk}}'s {{EncodedVideoChunk/[[type]]}} is |
129 | 112 | {{EncodedVideoChunkType/key}}, and the bitstream is in
|
130 | 113 | {{AvcBitstreamFormat/annexb}} format, then the {{EncodedVideoChunk}} is expected
|
131 | 114 | to contain both a primary coded picture that is an instantaneous decoding
|
|
195 | 178 | <dt><dfn enum-value for=AvcBitstreamFormat>avc</dfn></dt>
|
196 | 179 | <dd>
|
197 | 180 | SPS and PPS data are not included in the bitstream and are instead emitted
|
198 |
| - via the [=VideoEncoder/[[output callback]]=] as the |
199 |
| - {{VideoDecoderConfig.description}} of the |
200 |
| - {{EncodedVideoChunkMetadata.decoderConfig}}. |
| 181 | + via the {{VideoEncoder/[[output callback]]}} as the |
| 182 | + {{VideoDecoderConfig/description|VideoDecoderConfig.description}} of the |
| 183 | + {{EncodedVideoChunkMetadata/decoderConfig|EncodedVideoChunkMetadata.decoderConfig}}. |
201 | 184 |
|
202 | 185 | NOTE: This format is described in greater detail by [[iso14496-15]],
|
203 | 186 | section 5.3. This format is commonly used in .MP4 files, where the
|
|
0 commit comments