aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/media/v4l2-event.h
diff options
context:
space:
mode:
authorBenoit Parrot <bparrot@ti.com>2019-10-07 12:10:07 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-10 13:53:23 -0300
commitd5a897c8428b38053df4b427a4277b1a0722bfa0 (patch)
tree8bace6f29690239033d79df365846340162ac627 /include/media/v4l2-event.h
parentmedia: ti-vpe: csc: rgb-to-yuv HD full range coeff are wrong (diff)
downloadwireguard-linux-d5a897c8428b38053df4b427a4277b1a0722bfa0.tar.xz
wireguard-linux-d5a897c8428b38053df4b427a4277b1a0722bfa0.zip
media: v4l2-common: add pixel encoding support
It is often useful to figure out if a pixel_format is either YUV or RGB especially for driver who can perform the pixel encoding conversion. Instead of having each driver implement its own "is_this_yuv/rgb" function based on a restricted set of pixel value, it is better to do this in centralized manner. We therefore add a pixel_enc member to the v4l2_format_info structure to quickly identify the related pixel encoding. And add helper functions to check pixel encoding. Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media/v4l2-event.h')
0 files changed, 0 insertions, 0 deletions