> > To me it looks like a mistake, because it also contradicts the > > code in v4l1-compat.c which simply maps the v4l1 names to the > > v4l2 ones. And the v4l1 formats have Y-Cb-Cr order > > Then this is the mistake. We need Y-Cb-Cr order versions of the > formats, e.g. V4L2_PIX_FMT_YUV420, _YUV410, etc. Only for YUV411P + YUV422P. Do fourcc codes for them exist? YUV410 + YUV420 do exist already in videodev.h, althrougth they are not listed in v4l2fmt.htm. I've tried to build a list with all current v4l1 + v4l2 yuv formats (see below). The v4l1 formats which are flagged "[moved]" don't match the current v4l1->v4l2 translation code, I've moved them to the v4l2 formats where think they belong to. "[fixme]" are the ones which are wrong because we have no matching v4l2 format (yet). I'm not sure what the VIDEO_PALETTE_YUV420 + VIDEO_PALETTE_YUV411 formats are. Both exist with and without "P", which suggests that they are meant to be packed pixel formats. VIDEO_PALETTE_YUV411 might be the same as V4L2_PIX_FMT_Y41P, but I have no idea what VIDEO_PALETTE_YUV420 might be ... Comments? Gerd --------------------- cut here --------------------- http://www.thedirks.org/v4l2/v4l2fmt.htm ---------------------------------------- V4L2_PIX_FMT_YUYV VIDEO_PALETTE_YUYV VIDEO_PALETTE_YUV422 4:2:2 packed pixel Y Cb Y Cr V4L2_PIX_FMT_UYVY VIDEO_PALETTE_UYVY 4:2:2 packed pixel Cb Y Cr Y V4L2_PIX_FMT_Y41P VIDEO_PALETTE_YUV411 [ moved, ??? ] 4:1:1 packed pixel V4L2_PIX_FMT_YVU420 4:2:0 planar Y / Cr / Cb V4L2_PIX_FMT_YVU410 4:1:0 planar Y / Cr / Cb V4L2_PIX_FMT_YVU422P VIDEO_PALETTE_YUV422P [ fixme ] 4:2:2 planar Y / Cr / Cb V4L2_PIX_FMT_YVU411P VIDEO_PALETTE_YUV411P [ fixme ] 4:1:1 planar Y / Cr / Cb only in videodev(2).h --------------------- V4L2_PIX_FMT_NV12 4:2:0 planar (two: Y one, CbCr interlaved the other) Y / CbCr V4L2_PIX_FMT_NV21 4:2:0 planar Y / CrCb V4L2_PIX_FMT_YUV410 VIDEO_PALETTE_YUV410P [ moved ] 4:1:0 planar Y / Cb / Cr V4L2_PIX_FMT_YUV420 VIDEO_PALETTE_YUV420 [ moved, ??? ] VIDEO_PALETTE_YUV420P [ moved ] 4:2:0 planar Y / Cb / Cr V4L2_PIX_FMT_YYUV packed pixel ???