<div dir="ltr">I hope someone can correct me if I am wrong, but I am guessing that<div><ul><li>pstride = pixel stride (i.e. the number of bytes per pixel)</li><li>rstride = row stride (i.e. the number of bytes per row of pixels)</li></ul><div>Suppose I want to find the pixel (row=y, column=x), then I should look at the following location within the byte array:</div></div><div><ul><li>y * rstride + x * pstride</li></ul><div>Keep in mind that I am a complete novice ... this is just a guess.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2019 at 2:45 PM Neil Young <<a href="mailto:foreverneilyoung@googlemail.com">foreverneilyoung@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr"><span></span></div><div dir="ltr"><span style="background-color:rgba(255,255,255,0)"><span></span>Hi,</span><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">I'm referring to this documentation</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><a href="https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c" style="background-color:rgba(255,255,255,0)" target="_blank"><font color="#000000">https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c</font></a></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Up to now I received namely I420 buffers with a size of 1.5*width*height, as expected default YUV size. </span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Caps:</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">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;</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Frame buffer size is 583200 byte.</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Today for the first time I got this:</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Caps:</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><div><span style="background-color:rgba(255,255,255,0)">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</span></div></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">with a frame buffer size of 622080 byte, which is more than 1.5 * width * height.</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Now I'm wondering, how to understand the values of rstride and pstride in the above document. Could somebody help please?</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">TIA</span></div></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>