forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1248323: P3. Add test for NV12/YUV422 readback. r=me
reftest is disabled on windows due to localized try readback errors that can't be reproduced. MozReview-Commit-ID: 379PZsRE5d6
- Loading branch information
1 parent
d8282dc
commit a265375
Showing
5 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<svg xmlns="http://www.w3.org/2000/svg" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
version="1.1"> | ||
<!-- use an empty g to force filters.svg to load before onload --> | ||
<use xlink:href="../filters.svg#empty" /> | ||
<foreignObject filter="url(../filters.svg#ThresholdRGB)" x="0" y="0" height="100%" width="100%"> | ||
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> | ||
<body> | ||
<script> | ||
function done() { | ||
document.documentElement.removeAttribute("class"); | ||
} | ||
</script> | ||
<video id="video" src="short.mp4" onloadeddata="done()"/> | ||
</body> | ||
</html> | ||
</foreignObject> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<svg xmlns="http://www.w3.org/2000/svg" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
version="1.1"> | ||
<!-- use an empty g to force filters.svg to load before onload --> | ||
<use xlink:href="../filters.svg#empty" /> | ||
<foreignObject filter="url(../filters.svg#ThresholdRGB)" x="0" y="0" height="100%" width="100%"> | ||
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> | ||
<body> | ||
<canvas id="canvas" width="320" height="240"></canvas> | ||
<script> | ||
function draw() { | ||
var video = document.getElementById("video"); | ||
var canvas = document.getElementById("canvas"); | ||
var ctx = canvas.getContext("2d"); | ||
try { | ||
ctx.drawImage(video, 0, 0, video.videoWidth, video.videoHeight); | ||
} catch (e) { | ||
} | ||
document.documentElement.removeAttribute("class"); | ||
} | ||
</script> | ||
<video id="video" src="short.mp4" onloadeddata="draw()" style="opacity:0"></video> | ||
</body> | ||
</html> | ||
</foreignObject> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
skip-if(B2G||Mulet||winWidget) == canvas-1.xhtml canvas-1-ref.xhtml |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters