tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

videoDecoder-interlaced-h264.https.any.js (574B)


      1 // META: global=window,dedicatedworker
      2 // META: script=videoDecoder-codec-specific-setup.js
      3 // META: variant=?h264_interlaced_avc
      4 
      5 promise_test(async t => {
      6  await checkImplements();
      7 
      8  const callbacks = {};
      9  const decoder = createVideoDecoder(t, callbacks);
     10  decoder.configure(CONFIG);
     11  decoder.decode(CHUNKS[0]);
     12 
     13  let outputs = 0;
     14  callbacks.output = frame => {
     15    outputs++;
     16    assert_equals(frame.timestamp, 0, 'timestamp');
     17    frame.close();
     18  };
     19 
     20  await decoder.flush();
     21  assert_equals(outputs, 1, 'outputs');
     22 }, 'Test decoding h.264 interlaced content');