Skip to content

Conversation

philn
Copy link
Member

@philn philn commented Aug 7, 2022

8a44e02

[GStreamer][MediaStream] Video resizing fixes
https://bugs.webkit.org/show_bug.cgi?id=243638

Reviewed by Xabier Rodriguez-Calvar.

Resizing a media track from JS triggers a call to RealtimeMediaSource::setSize() but that doesn't
affect the mock video source per-se because it is wrapped in a RealtimeVideoSource. On Apple
platforms the RealtimeVideoSource actually resizes the video frame, but keeps the captureSize
un-modified. So the RealtimeVideoSource::adaptVideoFrame() method is also now implemented for
GStreamer ports.

* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp:
(WebCore::setBufferFields):
(WebCore::VideoFrameGStreamer::createFromPixelBuffer):
(WebCore::VideoFrameGStreamer::resizeTo):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.h:
* Source/WebCore/platform/mediastream/RealtimeVideoSource.cpp:
(WebCore::RealtimeVideoSource::adaptVideoFrame):
(WebCore::RealtimeVideoSource::videoFrameAvailable):
* Source/WebCore/platform/mediastream/RealtimeVideoSource.h:

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

@philn philn self-assigned this Aug 7, 2022
@philn philn added Platform Portability improvements and other general platform improvements not driven directly by site bugs. WebKit Nightly Build labels Aug 7, 2022
@philn philn requested a review from youennf August 7, 2022 09:32
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Aug 7, 2022
@philn philn requested a review from calvaris August 9, 2022 09:26
@philn philn removed the merging-blocked Applied to prevent a change from being merged label Aug 10, 2022
@philn philn added the merge-queue Applied to send a pull request to merge-queue label Aug 10, 2022
https://bugs.webkit.org/show_bug.cgi?id=243638

Reviewed by Xabier Rodriguez-Calvar.

Resizing a media track from JS triggers a call to RealtimeMediaSource::setSize() but that doesn't
affect the mock video source per-se because it is wrapped in a RealtimeVideoSource. On Apple
platforms the RealtimeVideoSource actually resizes the video frame, but keeps the captureSize
un-modified. So the RealtimeVideoSource::adaptVideoFrame() method is also now implemented for
GStreamer ports.

* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp:
(WebCore::setBufferFields):
(WebCore::VideoFrameGStreamer::createFromPixelBuffer):
(WebCore::VideoFrameGStreamer::resizeTo):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.h:
* Source/WebCore/platform/mediastream/RealtimeVideoSource.cpp:
(WebCore::RealtimeVideoSource::adaptVideoFrame):
(WebCore::RealtimeVideoSource::videoFrameAvailable):
* Source/WebCore/platform/mediastream/RealtimeVideoSource.h:

Canonical link: https://commits.webkit.org/253289@main
@webkit-commit-queue
Copy link
Collaborator

Committed 253289@main (8a44e02): https://commits.webkit.org/253289@main

Reviewed commits have been landed. Closing PR #3086 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 8a44e02 into WebKit:main Aug 10, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Aug 10, 2022
@philn philn deleted the eng/243638 branch August 10, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Platform Portability improvements and other general platform improvements not driven directly by site bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants