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

gtxia xia_guangtai at visualon.com
Fri May 18 07:59:20 CEST 2007


Dave

Thanks your kind help.

I will study videotestsrc.c.

Regards

XiaGuangTai

On Thu, 2007-05-17 at 22:07 -0700, David Schleef wrote:
> 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.
> 
> 
> 
> dave...





More information about the gstreamer-devel mailing list