Skip to content

Commit

Permalink
Add av1 to video-encoder-flush WPT
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D210065

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1895635
gecko-commit: 508643593dcebfcbfa6d42c4866116bd9a2f2b0f
gecko-reviewers: media-playback-reviewers, padenot
  • Loading branch information
ChunMinChang authored and moz-wptsync-bot committed May 14, 2024
1 parent c95e59a commit 9acac68
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions webcodecs/video-encoder-flush.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,22 @@
// META: script=/common/media.js
// META: script=/webcodecs/utils.js
// META: script=/webcodecs/video-encoder-utils.js
// META: variant=?av1
// META: variant=?vp8
// META: variant=?h264_avc

const VP8_CONFIG = {
codec: 'vp8',
width: 640,
height: 480,
displayWidth: 800,
displayHeight: 600,
};

const H264_AVC_CONFIG = {
codec: 'avc1.42001e', // Baseline
width: 640,
height: 480,
displayWidth: 800,
displayHeight: 600,
avc: {format: 'avc'},
};

let CONFIG = null;
promise_setup(async () => {
CONFIG = {
'?vp8': VP8_CONFIG,
'?h264_avc': H264_AVC_CONFIG,
const config = {
'?av1': {codec: 'av01.0.04M.08'},
'?vp8': {codec: 'vp8'},
'?h264_avc': {codec: 'avc1.42001e', avc: {format: 'avc'}},
}[location.search];
config.width = 640;
config.height = 480;
config.displayWidth = 800;
config.displayHeight = 600;
CONFIG = config;
});

promise_test(async t => {
Expand Down

0 comments on commit 9acac68

Please sign in to comment.