Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ff304c2bf4283d752fa4bf755b65265d7905003d
      
https://github.com/WebKit/WebKit/commit/ff304c2bf4283d752fa4bf755b65265d7905003d
  Author: Philippe Normand <[email protected]>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M Source/WebCore/html/HTMLCanvasElement.cpp
    M Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp
    M Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.h
    M 
Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp
    M 
Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp

  Log Message:
  -----------
  [GStreamer] Map VideoFrames pixel buffer format to GStreamer format
https://bugs.webkit.org/show_bug.cgi?id=287328

Reviewed by Xabier Rodriguez-Calvar.

Instead of a custom enum in our VideoFrameGStreamer class we can simply check 
the PixelBuffer format
when wrapping it into a GStreamer buffer. The mock video source also now emits 
buffers with
unpremultiplied alpha, because that's what GStreamer usually expects.

* Source/WebCore/html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::toVideoFrame):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.cpp:
(WebCore::VideoFrame::createFromPixelBuffer):
(WebCore::VideoFrameGStreamer::createFromPixelBuffer):
* Source/WebCore/platform/graphics/gstreamer/VideoFrameGStreamer.h:
* 
Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp:
(WebCore::GraphicsContextGLTextureMapperANGLE::surfaceBufferToVideoFrame):
* 
Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp:
(WebCore::MockRealtimeVideoSourceGStreamer::updateSampleBuffer):

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



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

Reply via email to