<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>RE: [gst-devel] stride</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi,<BR>
<BR>
From: Thomas Vander Stichele [<A HREF="mailto:thomas@apestaart.org">mailto:thomas@apestaart.org</A>]<BR>
> > On Thu, 2004-07-22 at 16:01, Thomas Vander Stichele wrote:<BR>
> > > So does anyone know what the implied stride is for all colorspaces ? And<BR>
> > > if it's ok to fix videoscale ?<BR>
> ><BR>
> > For each, it's all bytepacked. For RGB, it's always width*bpp/8. For<BR>
> > packed YUV, same. For planar YUV, it's ususally width for Y and<BR>
> > width/hor_downsample for U/V. Hor_downsample is 1 for YUV422/444/411, 2<BR>
> > for YUV420 (e.g. I420), 4 for YUV410, etc.<BR>
><BR>
> I assume you also know here what David said - that each of these strides<BR>
> are rounded up to the nearest multiple of four ?<BR>
<BR>
Yes, I didn't know that. That's undocumented. ;). Is that a standard? Is it 32-bit specific (i.e. is it nearest-of-8 on 64-bit computers?). How many elements use it?<BR>
<BR>
Problem with this is that since most elements don't use it, most elements are plain broken if we introduce this property. So you'd need to fix all elements (not just videoscale/ffmpegcolorspace) if you want to use this. If you're willing to do this: go for it!<BR>
<BR>
Ronald</FONT>
</P>
</BODY>
</HTML>