本文档的状态
1.
完全限定的编解码器字符串
编解码器字符串以前缀
"vp09." 开始,后跟一个可变长度
后缀,如 [VP9-ISOBMFF] 的 “Codecs Parameter String” 章节中所述。
2. EncodedVideoChunk 数据
EncodedVideoChunk
的 [[internal data]]
预期为
一个帧,如 [VP9] 第 6 节中所述。
3.
VideoDecoderConfig description
description
不用于此编解码器。
4. EncodedVideoChunk type
如果某个 EncodedVideoChunk
的
[[type]]
为 key,
则该 EncodedVideoChunk
预期
包含一个 frame_type 为 KEY_FRAME 的帧,如 [VP9] 第
7.2 节所定义。
5.
VideoEncoderEncodeOptions 扩展
partial dictionary VideoEncoderEncodeOptions {
VideoEncoderEncodeOptionsForVp9 vp9;
};
vp9, 类型为 VideoEncoderEncodeOptionsForVp9
- 包含 [VP9] 编解码器的编解码器特有编码选项。
5.1. VideoEncoderEncodeOptionsForVp9
dictionary VideoEncoderEncodeOptionsForVp9 {
unsigned short? quantizer;
};
quantizer, 类型为 unsigned short,可为空
- 设置逐帧量化器值。
在 [VP9] 中,quantizer 阈值可以
从 0 到 63 变化
6. 隐私考量
请参阅 隐私
考量一节,该节位于 [WEBCODECS] 中。
7. 安全考量
请参阅 安全
考量一节,该节位于 [WEBCODECS] 中。
文档
约定
一致性要求使用
描述性断言
和 RFC 2119 术语的组合来表达。
关键字 “MUST”、“MUST NOT”、“REQUIRED”、“SHALL”、“SHALL NOT”、“SHOULD”、“SHOULD NOT”、“RECOMMENDED”、
“MAY” 和 “OPTIONAL”
在本文档的规范性部分中
应按 RFC 2119 中的描述解释。
但是,为了可读性,
这些词在本规范中并不会全部以大写字母出现。
本规范的所有文本都是规范性的,
但明确标记为非规范性的章节、示例和注释除外。[RFC2119]
本规范中的示例用 “for example” 一词引入,
或通过 class="example"
与规范性文本分开,
如下所示:
资料性注释以 “Note” 一词开头,
并通过 class="note"
与规范性文本分开,
如下所示:
Note,这是一个资料性注释。
索引
由本
规范定义的术语
由引用定义的
术语
-
[WEBCODECS] 定义了以下术语:
- "key"
- EncodedVideoChunk
- VideoEncoderEncodeOptions
- [[internal data]]
- [[type]]
- description
-
[WEBIDL] 定义了以下术语:
参考文献
规范性参考文献
- [RFC2119]
- S. Bradner. Key words for use in RFCs to
Indicate Requirement Levels. 1997 年 3 月. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
- [WEBCODECS]
- Paul Adenot; Eugene Zemtsov. WebCodecs. 2025 年 4
月
17 日. WD. URL: https://www.w3.org/TR/webcodecs/
- [WEBIDL]
- Edgar Chen; Timothy Gu. Web IDL Standard. Living
Standard. URL: https://webidl.spec.whatwg.org/
- [VP9]
- VP9
Bitstream & Decoding Process Specification. URL: https://storage.googleapis.com/downloads.webmproject.org/docs/vp9/vp9-bitstream-specification-v0.6-20160331-draft.pdf
- [VP9-ISOBMFF]
- VP
Codec ISO Media File Format Binding. URL: https://github.com/webmproject/vp9-dash/blob/master/VPCodecISOMediaFileFormatBinding.md
- [WEBCODECS-CODEC-REGISTRY]
- Paul Adenot; Bernard Aboba. WebCodecs Codec
Registry. 2024 年 9 月 9 日. DRY. URL: https://www.w3.org/TR/webcodecs-codec-registry/
IDL 索引
partial dictionary VideoEncoderEncodeOptions {
VideoEncoderEncodeOptionsForVp9 vp9;
};
dictionary VideoEncoderEncodeOptionsForVp9 {
unsigned short? quantizer;
};