A question regarding stride in YUV buffers
Neil Young
foreverneilyoung at googlemail.com
Mon Jul 15 17:46:55 UTC 2019
Hi,
I'm referring to this documentation
https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c <https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c>
Up to now I received namely I420 buffers with a size of 1.5*width/height, as expected default YUV size.
video/x-raw, format=(string)I420, width=(int)720, height=(int)540, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1;
Frame buffer size is 583200 byte.
Today for the first time I got this:
video/x-raw(memory:VASurface), format=(string)NV12, width=(int)720, height=(int)540, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)0/1
with a frame buffer size of 622080 byte, which is cleary more than 1.5 * w * h.
Now I'm wondering, how to understand the values of rstride and pstride in the above document. Could somebody help please?
TIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190715/eebce46e/attachment.html>
More information about the gstreamer-devel
mailing list