Bug 236131 - Allow to pass webrtc video frame buffers through RealtimeMediaSource based pipelines
Summary: Allow to pass webrtc video frame buffers through RealtimeMediaSource based pi...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-04 02:01 PST by youenn fablet
Modified: 2022-03-09 14:38 PST (History)
12 users (show)

See Also:


Attachments
Patch (64.33 KB, patch)
2022-02-04 02:05 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (45.30 KB, patch)
2022-02-22 06:19 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (56.90 KB, patch)
2022-02-23 08:07 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (56.93 KB, patch)
2022-02-23 10:16 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (44.67 KB, patch)
2022-02-28 01:03 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (43.26 KB, patch)
2022-03-03 04:39 PST, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2022-02-04 02:01:14 PST
Allow to pass webrtc video frame buffers through RealtimeMediaSource based pipelines
Comment 1 youenn fablet 2022-02-04 02:05:40 PST
Created attachment 450881 [details]
Patch
Comment 2 youenn fablet 2022-02-04 02:06:22 PST
(In reply to youenn fablet from comment #1)
> Created attachment 450881 [details]
> Patch

Not yet ready for review.
Need to sync it with https://bugs.webkit.org/show_bug.cgi?id=236099
Comment 3 Radar WebKit Bug Importer 2022-02-11 02:02:16 PST
<rdar://problem/88805580>
Comment 4 youenn fablet 2022-02-22 06:19:12 PST
Created attachment 452864 [details]
Patch
Comment 5 youenn fablet 2022-02-23 08:07:42 PST
Created attachment 452982 [details]
Patch
Comment 6 youenn fablet 2022-02-23 10:16:30 PST
Created attachment 452998 [details]
Patch
Comment 7 youenn fablet 2022-02-28 01:03:05 PST
Created attachment 453374 [details]
Patch
Comment 8 youenn fablet 2022-03-03 04:39:46 PST
Created attachment 453720 [details]
Patch
Comment 9 Eric Carlson 2022-03-08 08:27:27 PST
Comment on attachment 453720 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=453720&action=review

> Source/WebCore/ChangeLog:14
> +        In case we send VideoFrameLibWebRTC through RealtimeOutgoingVideoSourceCocoa, directly send the video frame buffer.
> +        When receiving libwebrtc video frame buffers in RealtimeIncomingVideoSourceCocoa, make use of VideoFrameLibWebRTC to delay conversion of the video frame buffer in a CVPixelBufferRef.
> +        In most cases, the conversion is unneeded as the video frame buffer will be used for rendering and will be copied to shared memory through SharedVideoFrameWriter.
> +        Fix bugs in handling of YUV conversion libwebrtc routines.
> +        Minor refactoring to have a default asVideoFrameCV method implementatin in VideoFrame.

Nit: these lines are really long
Comment 10 EWS 2022-03-09 09:49:10 PST
Committed r291051 (248225@main): <https://commits.webkit.org/248225@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 453720 [details].
Comment 11 Alex Christensen 2022-03-09 14:32:05 PST
r291076
Comment 12 Alex Christensen 2022-03-09 14:38:37 PST
r291078