Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 46084f77562256a58a623e8267d7b016c84e06d4
      
https://github.com/WebKit/WebKit/commit/46084f77562256a58a623e8267d7b016c84e06d4
  Author: Youenn Fablet <you...@apple.com>
  Date:   2025-04-04 (Fri, 04 Apr 2025)

  Changed paths:
    M LayoutTests/http/wpt/webrtc/audio-video-transform.js
    M LayoutTests/http/wpt/webrtc/audiovideo-script-transform-expected.txt
    M LayoutTests/http/wpt/webrtc/audiovideo-script-transform.html
    M 
LayoutTests/imported/w3c/web-platform-tests/webrtc-encoded-transform/RTCRtpScriptTransform-encoded-transform.https-expected.txt
    M Source/WebCore/Modules/mediastream/RTCEncodedFrame.cpp
    M Source/WebCore/Modules/mediastream/RTCEncodedFrame.h
    M Source/WebCore/Modules/mediastream/RTCRtpSFrameTransform.cpp
    M Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp

  Log Message:
  -----------
  WebRTC encoded transform is transferring the RTC encoded frame array buffer
https://bugs.webkit.org/show_bug.cgi?id=290850
rdar://problem/148343876

Reviewed by Eric Carlson.

As per spec, the encoded frame array buffer should be transferred when written 
to the writable stream.
We do so and add a test to validate this.
We do not need to neuter the frame array buffer for SFrameTransform since it is 
just passing the frame after modifying the data,
as per 
https://w3c.github.io/webrtc-encoded-transform/#sframe-transform-algorithm.

Covered by updated and existing tests.

* LayoutTests/http/wpt/webrtc/audio-video-transform.js:
(AudioVideoRTCRtpTransformer):
(AudioVideoRTCRtpTransformer.prototype.process):
* LayoutTests/http/wpt/webrtc/audiovideo-script-transform-expected.txt:
* LayoutTests/http/wpt/webrtc/audiovideo-script-transform.html:
* Source/WebCore/Modules/mediastream/RTCEncodedFrame.cpp:
(WebCore::RTCEncodedFrame::data const):
(WebCore::RTCEncodedFrame::rtcFrame):
* Source/WebCore/Modules/mediastream/RTCEncodedFrame.h:
* Source/WebCore/Modules/mediastream/RTCRtpSFrameTransform.cpp:
(WebCore::transformFrame):
* Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp:
(WebCore::RTCRtpScriptTransformer::writable):

Canonical link: https://commits.webkit.org/293232@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to