Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Set the colorspace of WebCodecs VideoFrame created from canvas source
https://bugs.webkit.org/show_bug.cgi?id=257535 rdar://110062111 Reviewed by Eric Carlson. Set canvas based VideoFrame color space to RGB. We introduce VideoFrame::createFromPixelBuffer, that gets specialized for Cocoa and Gstreamer. * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_annexb-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_avc-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_vp8-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_vp9_p0-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_annexb-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_avc-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_vp8-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_vp9_p0-expected.txt: * LayoutTests/platform/glib/TestExpectations: * Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp: (WebCore::WebCodecsVideoFrame::create): * Source/WebCore/html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::toVideoFrame): * Source/WebCore/platform/VideoFrame.cpp: (WebCore::createFromPixelBuffer): * Source/WebCore/platform/VideoFrame.h: (WebCore::VideoFrame::createFromPixelBuffer): * Source/WebCore/platform/graphics/cv/VideoFrameCV.h: * Source/WebCore/platform/graphics/cv/VideoFrameCV.mm: (WebCore::VideoFrame::createFromPixelBuffer): (WebCore::VideoFrameCV::createFromPixelBuffer): Deleted. * Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp: (WebCore::VideoFrame::createFromPixelBuffer): (WebCore::VideoFrameGStreamer::createFromPixelBuffer): * Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.h: Canonical link: https://commits.webkit.org/264881@main
- Loading branch information
1 parent
369109e
commit e593104
Showing
17 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
...3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_annexb-expected.txt
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_not_equals: colorSpace.primaries got disallowed value null | ||
Harness Error (FAIL), message = Error in remote https://localhost:9443/webcodecs/full-cycle-test.https.any.js: TypeError: undefined is not an object (evaluating 'encoder_color_space.primaries') | ||
|
||
FAIL Encoding and decoding cycle assert_equals: frames_decoded expected 16 but got 0 | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_equals: frames_decoded expected 16 but got 0 | ||
|
6 changes: 4 additions & 2 deletions
6
...d/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_h264_avc-expected.txt
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_not_equals: colorSpace.primaries got disallowed value null | ||
Harness Error (FAIL), message = Error in remote https://localhost:9443/webcodecs/full-cycle-test.https.any.js: TypeError: undefined is not an object (evaluating 'encoder_color_space.primaries') | ||
|
||
FAIL Encoding and decoding cycle assert_equals: frames_decoded expected 16 but got 0 | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_equals: frames_decoded expected 16 but got 0 | ||
|
2 changes: 1 addition & 1 deletion
2
...ported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_vp8-expected.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
PASS Encoding and decoding cycle | ||
PASS Encoding and decoding cycle w/ stripped color space | ||
|
4 changes: 2 additions & 2 deletions
4
...ted/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any.worker_vp9_p0-expected.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_not_equals: colorSpace.primaries got disallowed value null | ||
PASS Encoding and decoding cycle | ||
PASS Encoding and decoding cycle w/ stripped color space | ||
|
6 changes: 4 additions & 2 deletions
6
...orted/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_annexb-expected.txt
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_not_equals: colorSpace.primaries got disallowed value null | ||
Harness Error (FAIL), message = TypeError: undefined is not an object (evaluating 'encoder_color_space.primaries') | ||
|
||
FAIL Encoding and decoding cycle assert_equals: frames_decoded expected 16 but got 0 | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_equals: frames_decoded expected 16 but got 0 | ||
|
6 changes: 4 additions & 2 deletions
6
...imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_h264_avc-expected.txt
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_not_equals: colorSpace.primaries got disallowed value null | ||
Harness Error (FAIL), message = TypeError: undefined is not an object (evaluating 'encoder_color_space.primaries') | ||
|
||
FAIL Encoding and decoding cycle assert_equals: frames_decoded expected 16 but got 0 | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_equals: frames_decoded expected 16 but got 0 | ||
|
2 changes: 1 addition & 1 deletion
2
...ests/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_vp8-expected.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
PASS Encoding and decoding cycle | ||
PASS Encoding and decoding cycle w/ stripped color space | ||
|
4 changes: 2 additions & 2 deletions
4
...s/imported/w3c/web-platform-tests/webcodecs/full-cycle-test.https.any_vp9_p0-expected.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Encoding and decoding cycle assert_not_equals: colorSpace.primaries got disallowed value null | ||
FAIL Encoding and decoding cycle w/ stripped color space assert_not_equals: colorSpace.primaries got disallowed value null | ||
PASS Encoding and decoding cycle | ||
PASS Encoding and decoding cycle w/ stripped color space | ||
|
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
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
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
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
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
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
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
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
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