haikuwebkit/LayoutTests/webrtc/video-sframe-expected.txt

7 lines
133 B
Plaintext
Raw Permalink Normal View History

Add a SFrame H264 experimental compatibility mode https://bugs.webkit.org/show_bug.cgi?id=219532 Reviewed by Eric Carlson. Source/WebCore: Add an SFrame compatibility mode for H.264. To do so, the encryptor generates an SFrame and prefixes it with either a delta frame prefix or a key frame prefix. The SFrame content is escaped so that it is considered as one big IDR or Slice nalu. The decoder on the other hand, unescapes the content, removes the prefix and decrypts the SFrame content. Test: webrtc/video-sframe.html * Modules/mediastream/H264Utils.cpp: Added. (WebCore::isSliceNALU): (WebCore::isSPSNALU): (WebCore::isPPSNALU): (WebCore::isIDRNALU): (WebCore::findNalus): (WebCore::computePrefixOffset): (WebCore::needsRbspUnescaping): (WebCore::fromRbsp): (WebCore::computePrefixBuffer): (WebCore::findEscapeRbspPatterns): (WebCore::toRbsp): * Modules/mediastream/H264Utils.h: Added. * Modules/mediastream/MediaStreamTrack.cpp: * Modules/mediastream/RTCRtpSFrameTransform.cpp: (WebCore::RTCRtpSFrameTransform::RTCRtpSFrameTransform): * Modules/mediastream/RTCRtpSFrameTransform.h: * Modules/mediastream/RTCRtpSFrameTransform.idl: * Modules/mediastream/RTCRtpSFrameTransformer.cpp: (WebCore::RTCRtpSFrameTransformer::create): (WebCore::RTCRtpSFrameTransformer::RTCRtpSFrameTransformer): (WebCore::RTCRtpSFrameTransformer::decryptFrame): (WebCore::RTCRtpSFrameTransformer::encryptFrame): * Modules/mediastream/RTCRtpSFrameTransformer.h: * Modules/mediastream/RTCRtpScriptTransformer.cpp: * Modules/mediastream/RTCRtpScriptTransformer.h: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: Tools: * TestWebKitAPI/Tests/WebCore/RTCRtpSFrameTransformerTests.cpp: (TestWebKitAPI::TEST): LayoutTests: * webrtc/video-sframe-expected.txt: Added. * webrtc/video-sframe.html: Added. Canonical link: https://commits.webkit.org/232183@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-12-07 16:59:56 +00:00
PASS Video exchange with SFrame - H264 baseline
PASS Video exchange with SFrame - H264 high
PASS Video exchange with SFrame - VP8
Add a SFrame H264 experimental compatibility mode https://bugs.webkit.org/show_bug.cgi?id=219532 Reviewed by Eric Carlson. Source/WebCore: Add an SFrame compatibility mode for H.264. To do so, the encryptor generates an SFrame and prefixes it with either a delta frame prefix or a key frame prefix. The SFrame content is escaped so that it is considered as one big IDR or Slice nalu. The decoder on the other hand, unescapes the content, removes the prefix and decrypts the SFrame content. Test: webrtc/video-sframe.html * Modules/mediastream/H264Utils.cpp: Added. (WebCore::isSliceNALU): (WebCore::isSPSNALU): (WebCore::isPPSNALU): (WebCore::isIDRNALU): (WebCore::findNalus): (WebCore::computePrefixOffset): (WebCore::needsRbspUnescaping): (WebCore::fromRbsp): (WebCore::computePrefixBuffer): (WebCore::findEscapeRbspPatterns): (WebCore::toRbsp): * Modules/mediastream/H264Utils.h: Added. * Modules/mediastream/MediaStreamTrack.cpp: * Modules/mediastream/RTCRtpSFrameTransform.cpp: (WebCore::RTCRtpSFrameTransform::RTCRtpSFrameTransform): * Modules/mediastream/RTCRtpSFrameTransform.h: * Modules/mediastream/RTCRtpSFrameTransform.idl: * Modules/mediastream/RTCRtpSFrameTransformer.cpp: (WebCore::RTCRtpSFrameTransformer::create): (WebCore::RTCRtpSFrameTransformer::RTCRtpSFrameTransformer): (WebCore::RTCRtpSFrameTransformer::decryptFrame): (WebCore::RTCRtpSFrameTransformer::encryptFrame): * Modules/mediastream/RTCRtpSFrameTransformer.h: * Modules/mediastream/RTCRtpScriptTransformer.cpp: * Modules/mediastream/RTCRtpScriptTransformer.h: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: Tools: * TestWebKitAPI/Tests/WebCore/RTCRtpSFrameTransformerTests.cpp: (TestWebKitAPI::TEST): LayoutTests: * webrtc/video-sframe-expected.txt: Added. * webrtc/video-sframe.html: Added. Canonical link: https://commits.webkit.org/232183@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-12-07 16:59:56 +00:00