[Ffmpeg-devel] pixel format names in swscale

Luca Abeni lucabe72
Wed Aug 16 09:47:26 CEST 2006


Hi Michael,

On Mon, 2006-08-14 at 14:14 +0200, Michael Niedermayer wrote:

> > IMGFMT_YUY2     <--->   PIX_FMT_YUYV422		(new format)
> > IMGFMT_UYVY     <--->   PIX_FMT_UYVY422
> > IMGFMT_NV12     <--->   PIX_FMT_NV12		(new format)
> > IMGFMT_NV21     <--->   PIX_FMT_NV21		(new format)
> > IMGFMT_Y800     <--->   PIX_FMT_GRAY8
> > IMGFMT_YVU9     <--->   PIX_FMT_YVU410P		(new format)
> > IMGFMT_IF09     <--->   PIX_FMT_YUV410P
> > IMGFMT_YV12     <--->   PIX_FMT_YVU420P		(new format)
> > IMGFMT_I420     <--->   PIX_FMT_YUV420P
> > IMGFMT_411P	<--->	PIX_FMT_YUV411P
> > IMGFMT_422P	<--->	PIX_FMT_YUV422P
> > IMGFMT_444P	<--->	PIX_FMT_YUV444P
> 
> iam against adding planar formats which are identical to existing ones
> except that the planes are ordered differently
Ok, this makes a lot of sense (this is one of the things I was not sure
about).
So, just to be sure I understand correctly (this pixel format thing is
beginnig to give me headaches :): PIX_FMT_YVU410P and PIX_FMT_YVU420P
should not be introduced, and some wrapper code should change
IMGFMT_YVU9 into IMGFMT_IF09 (exchanging the two U and V pointers)
before calling swscale... Right?
 
> > Also, how can I convert IMGFMT_Y8 and IMGFMT_IYUV?
> 
> Y8 is the same as Y800 and IYUV is the same as I420 unless i mixed some
> names
Ok, good.

> > Moreover, I see that there are an IMGFMT_BGR1 and an IMGFMT_RGB1
> > format... If I understand the naming well, they should be "BGR, 1 bit
> > per pixel" and "RGB, 1 bit per pixel". But I do not understand what 1
> > bit per pixel represents in the RGB or BGR space (is it B/W? If yes,
> > what's the difference between these 2 formats?).
> 
> AFAIK nothing
Good. So, I'll consider these 2 formats as equivalent.


			Thanks,
				Luca
-- 
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !





More information about the ffmpeg-devel mailing list