Ronald S. Bultje
R.S.Bultje at students.uu.nl
Thu Jul 22 13:47:11 CEST 2004
On Thu, 2004-07-22 at 16:01, Thomas Vander Stichele wrote:
> So does anyone know what the implied stride is for all colorspaces ? And
> if it's ok to fix videoscale ?
For each, it's all bytepacked. For RGB, it's always width*bpp/8. For
packed YUV, same. For planar YUV, it's ususally width for Y and
width/hor_downsample for U/V. Hor_downsample is 1 for YUV422/444/411, 2
for YUV420 (e.g. I420), 4 for YUV410, etc.
> transforming could be done directly in videoscale IMO, as well as in
Why would colorspace change stride? I understand the "it's not hard to
implement" argument, but for consistency, it's better not to (audioscale
also doesn't convert channels mono<->stereo, no matter how easy that
> > I don't think we should in 0.8
We can, it's compatible. Thomas is correct there.
More information about the gstreamer-devel