[Webkit-unassigned] [Bug 231555] New: Internals.grabNextMediaStreamTrackFrame doesn't always convert to RGBA
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 11 21:34:51 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=231555
Bug ID: 231555
Summary: Internals.grabNextMediaStreamTrackFrame doesn't always
convert to RGBA
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: heycam at apple.com
CC: youennf at gmail.com
I tried using Internals.grabNextMediaStreamTrackFrame for a test. It relies on MediaSample::getRGBAImageData. MediaSampleAVFObjC::getRGBAImageData does try to convert the sample's underlying CVPixelBuffer to RGBA, but it doesn't seem to work, at least for the case I was trying. When the frame was using a YUV420 pixel format, the PixelBufferConformerCV failed to do a conversion and instead produced a new CVPixelBuffer with the same format. The result is that in the test, the ImageData object passed to the grabNextMediaStreamTrackFrame Promise callback contained planar YUV data pretending to be RGBA. I failed to trace into VTPixelBufferConformerCopyConformedPixelBuffer to work out why this wasn't working.
--
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/20211012/7da44593/attachment.htm>
More information about the webkit-unassigned
mailing list