summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-mediabus.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-04-28 13:49:09 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-05 16:45:45 +0200
commit74fdcb2ee1786a92584e89c91006e449813527ce (patch)
tree7463ad10b2bfb97ccba2197cd797464417ac1ce9 /include/media/v4l2-mediabus.h
parent[media] lirc_imon: simplify error handling code (diff)
downloadlinux-74fdcb2ee1786a92584e89c91006e449813527ce.tar.xz
linux-74fdcb2ee1786a92584e89c91006e449813527ce.zip
[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>
Diffstat (limited to 'include/media/v4l2-mediabus.h')
-rw-r--r--include/media/v4l2-mediabus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/v4l2-mediabus.h b/include/media/v4l2-mediabus.h
index 38d960d8dccd..73069e4c2796 100644
--- a/include/media/v4l2-mediabus.h
+++ b/include/media/v4l2-mediabus.h
@@ -96,6 +96,7 @@ static inline void v4l2_fill_pix_format(struct v4l2_pix_format *pix_fmt,
pix_fmt->colorspace = mbus_fmt->colorspace;
pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc;
pix_fmt->quantization = mbus_fmt->quantization;
+ pix_fmt->xfer_func = mbus_fmt->xfer_func;
}
static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt,
@@ -108,6 +109,7 @@ static inline void v4l2_fill_mbus_format(struct v4l2_mbus_framefmt *mbus_fmt,
mbus_fmt->colorspace = pix_fmt->colorspace;
mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc;
mbus_fmt->quantization = pix_fmt->quantization;
+ mbus_fmt->xfer_func = pix_fmt->xfer_func;
mbus_fmt->code = code;
}