[gst-devel] How can I put the YUV data and its stride into GstrBuffer?

David Schleef ds at schleef.org
Fri May 18 07:07:06 CEST 2007

On Fri, May 18, 2007 at 11:24:22AM +0800, gtxia wrote:
> 	// V 
> 	src = inBuffer->pV;
> 	dest = (*outBuffer) + inWidth * inHeight * 4 / 5;

Did you mean "*5/4"?

This video format is called I420, which has various stride
requirements of its own.  You should be able to figure out
some the details in videotestsrc.c.  However, in most cases,
video has width%4 == 0, in which case the stride is equal to
the width.


More information about the gstreamer-devel mailing list