Re: I wonder the difference with mbus_pixelcode and v4l2_colorspace.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, December 08, 2010 06:45:36 Kim, HeungJun wrote:
> Hi Guennadi,
> 
> I wonder the difference with pixelcode mediabus and v4l2_colorspace.
> In mt9m001.c subdev driver, the "format" seems be determined using the combination pixelcode & colorspace. In the previous kernel version(before using Media Controller),
> somtimes the pixelformat is used for defining format of isp device. But, I gonna change to use Media Controller.

The pixelcode determines how to interpret the data flowing over the link. I.e.
number of pins used, endianness, order of bytes within a sample.

The colorspace determines how the pixel samples map to actual colors.

There is some overlap between the two: YUV and RGB colorspaces also have their
own pixelcodes. But two YUV (or two RGB) colorspaces will share the same pixelcode.

In many devices there is only one colorspace possible for each pixelcode, so then it
is just a matter of reading the documentation and filling in the correct value.

More complex devices like HDMI receivers and transmitters often have a choice of
colorspaces.

Regards,

	Hans

> So, can you tell me where I find about Media Controller, especially pixelcode and colorspace?
> 
> Thanks.
> 
> Regards,
> HeungJun Kim
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

-- 
Hans Verkuil - video4linux developer - sponsored by Cisco
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux