Skip to content

Commit 3fb9825

Browse files
taste1981chromium-wpt-export-bot
authored andcommitted
[Win] Add per-frame-qp support for HEVC encoding
Make sure https://www.w3.org/TR/webcodecs-hevc-codec-registration/ is implemented on Windows. Bug: 40242198 Change-Id: I0e4dbbd407de53716ce92324d14dce1d3bf2b544 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6177205 Commit-Queue: Jianlin Qiu <[email protected]> Reviewed-by: Eugene Zemtsov <[email protected]> Reviewed-by: Brian Sheedy <[email protected]> Cr-Commit-Position: refs/heads/main@{#1407094}
1 parent a0f860b commit 3fb9825

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

webcodecs/per-frame-qp-encoding.https.any.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ function get_config() {
1010
'?vp8': {codec: 'vp8'},
1111
'?vp9_p0': {codec: 'vp09.00.10.08'},
1212
'?vp9_p2': {codec: 'vp09.02.10.10'},
13-
'?h264': {codec: 'avc1.42001E', avc: {format: 'annexb'}}
13+
'?h264': {codec: 'avc1.42001E', avc: {format: 'annexb'}},
14+
'?h265': {codec: 'hev1.1.6.L93.90', hev: {format: 'annexb'}}
1415
}[location.search];
1516
config.width = 320;
1617
config.height = 200;
@@ -30,6 +31,8 @@ function get_qp_range() {
3031
return {min: 1, max: 63};
3132
case '?h264':
3233
return {min: 1, max: 51};
34+
case '?h265':
35+
return {min: 1, max: 51};
3336
}
3437
return null;
3538
}
@@ -48,6 +51,8 @@ function set_qp(options, value) {
4851
case '?h264':
4952
options.avc = {quantizer: value};
5053
return;
54+
case '?h265':
55+
options.hevc = {quantizer: value};
5156
}
5257
}
5358

0 commit comments

Comments
 (0)