[Webkit-unassigned] [Bug 268416] New: [GStreamer] Use m_videoSize for DMABuf dimensions if available

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 30 15:13:55 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=268416

            Bug ID: 268416
           Summary: [GStreamer] Use m_videoSize for DMABuf dimensions if
                    available
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: marex+webkit at denx.de

In case of hardware decoding of H.264 video with dimensions that are not macroblock aligned, e.g. 1080x1920, the VideoMeta might indicate the actual physical dimensions of the buffer containing the decoded video data, as written by the hardware decoder, that is 1088x1920 instead of 1080x1920 . This leads to an 8px wide stripe of corrupted pixels at the edge of the displayed video.

The valid video data are a subset of that buffer content and their dimensions can be obtained from caps. The code already stores those dimensions in m_videoSize, so in case m_videoSize is not empty, use dimensions from m_videoSize instead of the buffer dimensions.

This happens on NXP i.MX8M Plus with Hantro G1 VPU .

This fix is similar to GStreamer commit:
0b648f9a2d1e ("waylandsink: Crop surfaces to their display width height")
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/0b648f9a2d1e

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240130/1df1bcf2/attachment-0001.htm>


More information about the webkit-unassigned mailing list