On Fri, 16 Sep 2011, Scott Jiang wrote: > 2011/9/13 Guennadi Liakhovetski <g.liakhovet...@gmx.de>: > > On Tue, 13 Sep 2011, Scott Jiang wrote: > > > >> >> + > >> >> +struct bcap_format { > >> >> + u8 *desc; > >> >> + u32 pixelformat; > >> >> + enum v4l2_mbus_pixelcode mbus_code; > >> >> + int bpp; /* bytes per pixel */ > >> > > >> > Don't you think you might have to process 12 bpp formats at some point, > >> > like YUV 4:2:0, or NV12? Maybe better calculate in bits from the > >> > beginning? > >> > > ppi only stores raw format into memory. I wonder if there is sensor > transmit data in planar format? > If planar format only exists in memory, I think I don't need to modify this.
There are also packed 12-bit formats, like yuv 4:1:1 (V4L2_PIX_FMT_Y41P). Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html