[webkit-changes] [WebKit/WebKit] fb9116: Implement EncodedVideoChunk
youennf
noreply at github.com
Wed Sep 28 06:33:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fb9116e45d33db2050315c4915ad2ed9fe4036fe
https://github.com/WebKit/WebKit/commit/fb9116e45d33db2050315c4915ad2ed9fe4036fe
Author: Youenn Fablet <youennf at gmail.com>
Date: 2022-09-28 (Wed, 28 Sep 2022)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/chunk-serialization.any-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.any-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.any.worker-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.crossOriginIsolated.https.any-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.crossOriginIsolated.https.any.worker-expected.txt
M Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml
M Source/WTF/wtf/PlatformEnableCocoa.h
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources-input.xcfilelist
M Source/WebCore/DerivedSources-output.xcfilelist
M Source/WebCore/DerivedSources.make
A Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunk.cpp
A Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunk.h
A Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunk.idl
A Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunkType.h
A Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunkType.idl
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/bindings/js/WebCoreBuiltinNames.h
Log Message:
-----------
Implement EncodedVideoChunk
https://bugs.webkit.org/show_bug.cgi?id=245665
rdar://problem/100401981
Reviewed by Eric Carlson.
Add WEB_CODECS compilation guard and runtime flag.
Implement WebCodecsEncodedVideoChunk and expose EncodedVideoChunk
as per https://w3c.github.io/webcodecs/#encodedvideochunk-interface.
We do not support yet Transferable/Serializable.
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/chunk-serialization.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.any.worker-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.crossOriginIsolated.https.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/encoded-video-chunk.crossOriginIsolated.https.any.worker-expected.txt:
* Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml:
* Source/WTF/wtf/PlatformEnableCocoa.h:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunk.cpp: Added.
(WebCore::WebCodecsEncodedVideoChunk::WebCodecsEncodedVideoChunk):
(WebCore::WebCodecsEncodedVideoChunk::copyTo):
* Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunk.h: Added.
(WebCore::WebCodecsEncodedVideoChunk::create):
(WebCore::WebCodecsEncodedVideoChunk::type const):
(WebCore::WebCodecsEncodedVideoChunk::timestamp const):
(WebCore::WebCodecsEncodedVideoChunk::duration const):
(WebCore::WebCodecsEncodedVideoChunk::byteLength const):
* Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunk.idl: Added.
* Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunkType.h: Added.
* Source/WebCore/Modules/webcodecs/WebCodecsEncodedVideoChunkType.idl: Added.
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/WebCoreBuiltinNames.h:
Canonical link: https://commits.webkit.org/254953@main
More information about the webkit-changes
mailing list