mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[media] videodev2.h: add support for transfer functions
In the past the transfer function was implied by the colorspace. However, it is an independent entity in its own right. Add support for explicitly choosing the transfer function. This change will allow us to represent linear RGB (as is used by openGL), and it will make it easier to work with decoded video material since most codecs store the transfer function as a separate property as well. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
af8a819a25
commit
74fdcb2ee1
4 changed files with 50 additions and 6 deletions
|
@ -24,6 +24,7 @@
|
|||
* @colorspace: colorspace of the data (from enum v4l2_colorspace)
|
||||
* @ycbcr_enc: YCbCr encoding of the data (from enum v4l2_ycbcr_encoding)
|
||||
* @quantization: quantization of the data (from enum v4l2_quantization)
|
||||
* @xfer_func: transfer function of the data (from enum v4l2_xfer_func)
|
||||
*/
|
||||
struct v4l2_mbus_framefmt {
|
||||
__u32 width;
|
||||
|
@ -33,7 +34,8 @@ struct v4l2_mbus_framefmt {
|
|||
__u32 colorspace;
|
||||
__u16 ycbcr_enc;
|
||||
__u16 quantization;
|
||||
__u32 reserved[6];
|
||||
__u16 xfer_func;
|
||||
__u16 reserved[11];
|
||||
};
|
||||
|
||||
#ifndef __KERNEL__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue