haikuwebkit/LayoutTests/webrtc/vp9-expected.txt

12 lines
320 B
Plaintext
Raw Permalink Normal View History

Add VP9 WebRTC codec runtime flag https://bugs.webkit.org/show_bug.cgi?id=213724 Reviewed by Eric Carlson. Source/ThirdParty/libwebrtc: Update WebKit binding code to switch on/off VP9 encoder/decoder. We still use vp9_noop for now, so encoder/decoder is not functional. * Configurations/libwebrtc.iOS.exp: * Configurations/libwebrtc.iOSsim.exp: * Configurations/libwebrtc.mac.exp: * Configurations/libwebrtc.xcconfig: * Configurations/libwebrtcpcrtc.xcconfig: * Source/webrtc/modules/video_coding/codecs/vp9/vp9_noop.cc: * Source/webrtc/sdk/WebKit/WebKitDecoder.mm: (webrtc::createWebKitDecoderFactory): * Source/webrtc/sdk/WebKit/WebKitEncoder.mm: (webrtc::createWebKitEncoderFactory): (webrtc::setH264HardwareEncoderAllowed): (webrtc::isH264HardwareEncoderAllowed): * Source/webrtc/sdk/WebKit/WebKitUtilities.h: * Source/webrtc/sdk/WebKit/WebKitUtilities.mm: * Source/webrtc/sdk/objc/api/video_codec/RTCVideoDecoderVP9.h: * Source/webrtc/sdk/objc/api/video_codec/RTCVideoEncoderVP9.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoDecoderFactory.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoDecoderFactory.m: (-[RTCDefaultVideoDecoderFactory initWithH265:vp9:]): (-[RTCDefaultVideoDecoderFactory supportedCodecs]): * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.m: (-[RTCDefaultVideoEncoderFactory initWithH265:vp9:]): (-[RTCDefaultVideoEncoderFactory supportedCodecs]): * libwebrtc.xcodeproj/project.pbxproj: Source/WebCore: Add binding code to switch on/off VP9 in WebRTC factories based on runtime flag. Test: webrtc/vp9.html * page/Page.cpp: (WebCore::m_shouldRelaxThirdPartyCookieBlocking): * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::webRTCVP9CodecEnabled const): (WebCore::RuntimeEnabledFeatures::setWebRTCVP9CodecEnabled): * platform/mediastream/libwebrtc/LibWebRTCProvider.h: * platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.cpp: (WebCore::LibWebRTCProviderCocoa::createDecoderFactory): (WebCore::LibWebRTCProviderCocoa::createEncoderFactory): * testing/Internals.cpp: (WebCore::Internals::setWebRTCH265Support): (WebCore::Internals::setWebRTCVP9Support): * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * Shared/WebPreferences.yaml: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): LayoutTests: * webrtc/h265.html: * webrtc/vp9-expected.txt: Added. * webrtc/vp9.html: Added. Canonical link: https://commits.webkit.org/226582@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@263734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-06-30 07:19:59 +00:00
Introduce an experimental flag specific to VP9 profile 2 https://bugs.webkit.org/show_bug.cgi?id=219350 Reviewed by Eric Carlson. Source/ThirdParty/libwebrtc: Allow to enable profile 0 but not profile 2 for VP9 encoder and decoder. * Source/webrtc/sdk/WebKit/WebKitDecoder.mm: (webrtc::createWebKitDecoderFactory): * Source/webrtc/sdk/WebKit/WebKitEncoder.mm: (webrtc::createWebKitEncoderFactory): * Source/webrtc/sdk/WebKit/WebKitUtilities.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoDecoderFactory.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoDecoderFactory.m: (-[RTCDefaultVideoDecoderFactory initWithH265:vp9Profile0:vp9Profile2:vp9VTB:]): (-[RTCDefaultVideoDecoderFactory supportedCodecs]): (-[RTCDefaultVideoDecoderFactory initWithH265:vp9:vp9VTB:]): Deleted. * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.m: (-[RTCDefaultVideoEncoderFactory initWithH265:vp9Profile0:vp9Profile2:lowLatencyH264:]): (+[RTCDefaultVideoEncoderFactory supportedCodecs]): (+[RTCDefaultVideoEncoderFactory supportedCodecsWithH265:vp9Profile0:vp9Profile2:]): (-[RTCDefaultVideoEncoderFactory supportedCodecs]): (-[RTCDefaultVideoEncoderFactory initWithH265:vp9:lowLatencyH264:]): Deleted. (+[RTCDefaultVideoEncoderFactory supportedCodecsWithH265:vp9:]): Deleted. Source/WebCore: Introduce an experimental flag for VP9 profile 2. Pass it to libwebrtc backend when creating codec factories. Profile 2 support is only enabled if profile 0 support is also enabled. Covered by updated test. * page/Page.cpp: (WebCore::m_shouldRelaxThirdPartyCookieBlocking): * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::webRTCVP9Profile0CodecEnabled const): (WebCore::RuntimeEnabledFeatures::setWebRTCVP9Profile0CodecEnabled): (WebCore::RuntimeEnabledFeatures::webRTCVP9Profile2CodecEnabled const): (WebCore::RuntimeEnabledFeatures::setWebRTCVP9Profile2CodecEnabled): (WebCore::RuntimeEnabledFeatures::webRTCVP9CodecEnabled const): Deleted. (WebCore::RuntimeEnabledFeatures::setWebRTCVP9CodecEnabled): Deleted. * platform/mediastream/libwebrtc/LibWebRTCProvider.h: (WebCore::LibWebRTCProvider::setVP9Support): * platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.cpp: (WebCore::LibWebRTCProviderCocoa::createDecoderFactory): (WebCore::LibWebRTCProviderCocoa::createEncoderFactory): * testing/Internals.cpp: (WebCore::Internals::setWebRTCVP9Support): * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Source/WTF: * Scripts/Preferences/WebPreferencesExperimental.yaml: LayoutTests: * webrtc/vp9-expected.txt: * webrtc/vp9-vtb.html: * webrtc/vp9.html: Canonical link: https://commits.webkit.org/231965@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-11-30 19:36:55 +00:00
PASS VP9 in sender getCapabilities
PASS VP9 in receiver getCapabilities
PASS Verify VP9 activation
PASS Setting video exchange
PASS Ensuring connection state is connected
PASS Track is enabled, video should not be black
PASS Track is disabled, video should be black
PASS Track is enabled, video should not be black 2
Add VP9 WebRTC codec runtime flag https://bugs.webkit.org/show_bug.cgi?id=213724 Reviewed by Eric Carlson. Source/ThirdParty/libwebrtc: Update WebKit binding code to switch on/off VP9 encoder/decoder. We still use vp9_noop for now, so encoder/decoder is not functional. * Configurations/libwebrtc.iOS.exp: * Configurations/libwebrtc.iOSsim.exp: * Configurations/libwebrtc.mac.exp: * Configurations/libwebrtc.xcconfig: * Configurations/libwebrtcpcrtc.xcconfig: * Source/webrtc/modules/video_coding/codecs/vp9/vp9_noop.cc: * Source/webrtc/sdk/WebKit/WebKitDecoder.mm: (webrtc::createWebKitDecoderFactory): * Source/webrtc/sdk/WebKit/WebKitEncoder.mm: (webrtc::createWebKitEncoderFactory): (webrtc::setH264HardwareEncoderAllowed): (webrtc::isH264HardwareEncoderAllowed): * Source/webrtc/sdk/WebKit/WebKitUtilities.h: * Source/webrtc/sdk/WebKit/WebKitUtilities.mm: * Source/webrtc/sdk/objc/api/video_codec/RTCVideoDecoderVP9.h: * Source/webrtc/sdk/objc/api/video_codec/RTCVideoEncoderVP9.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoDecoderFactory.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoDecoderFactory.m: (-[RTCDefaultVideoDecoderFactory initWithH265:vp9:]): (-[RTCDefaultVideoDecoderFactory supportedCodecs]): * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.h: * Source/webrtc/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.m: (-[RTCDefaultVideoEncoderFactory initWithH265:vp9:]): (-[RTCDefaultVideoEncoderFactory supportedCodecs]): * libwebrtc.xcodeproj/project.pbxproj: Source/WebCore: Add binding code to switch on/off VP9 in WebRTC factories based on runtime flag. Test: webrtc/vp9.html * page/Page.cpp: (WebCore::m_shouldRelaxThirdPartyCookieBlocking): * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::webRTCVP9CodecEnabled const): (WebCore::RuntimeEnabledFeatures::setWebRTCVP9CodecEnabled): * platform/mediastream/libwebrtc/LibWebRTCProvider.h: * platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.cpp: (WebCore::LibWebRTCProviderCocoa::createDecoderFactory): (WebCore::LibWebRTCProviderCocoa::createEncoderFactory): * testing/Internals.cpp: (WebCore::Internals::setWebRTCH265Support): (WebCore::Internals::setWebRTCVP9Support): * testing/Internals.h: * testing/Internals.idl: Source/WebKit: * Shared/WebPreferences.yaml: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): LayoutTests: * webrtc/h265.html: * webrtc/vp9-expected.txt: Added. * webrtc/vp9.html: Added. Canonical link: https://commits.webkit.org/226582@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@263734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-06-30 07:19:59 +00:00