Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  test_hevc_support.html   Sprache: HTML

 

 products/Sources/formale Sprachen/C/Firefox/dom/media/test/test_hevc_support.html


<!DOCTYPE HTML>
<html>
<head>
<title>Test HEVC video support</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">

/**
 * This test is used to check we can get correct HEVC support information from
 * `canPlayType` and mediaCapabilities API on different platforms.
 */
const contentType = 'video/mp4; codecs="hev1.1.6.L93.B0"';
const videoConfiguration = {
  type: "file",
  video: {
    contentType,
    width: 1920,
    height: 1080,
    bitrate: 1000000,
    framerate: 30,
  },
};

const supportedOSs = ["WINNT", "Darwin", "Android"];

add_task(async function testHEVCSupport() {
  // Disable fingerprinting resistance/protection to get an accurate result.
  await SpecialPowers.pushPrefEnv({
    set: [
      ["privacy.resistFingerprinting", false],
      ["privacy.fingerprintingProtection", false],
    ],
  });
  const os = SpecialPowers.Services.appinfo.OS;
  const canPlay = document.createElement('video').canPlayType(contentType);
  if (supportedOSs.includes(os)) {
    ok(canPlay != "", `HEVC is supported`);
  } else {
    ok(canPlay == "", "HEVC is not supported on current platform");
  }

  const capability = await navigator.mediaCapabilities.decodingInfo(videoConfiguration);
  if (supportedOSs.includes(os)) {
    ok(capability.supported, `HEVC is supported`);
    ok(capability.powerEfficient, `HEVC is powerEfficient`);
  } else {
    ok(!capability.supported, "HEVC is not supported on current platform");
  }
});

</script>
</head>
<body>
</body>
</html>

Messung V0.5 in Prozent
C=95 H=93 G=93

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=2039723