]> git.baikalelectronics.ru Git - kernel.git/commit
media: allegro: write vui parameters for HEVC
authorMichael Tretter <m.tretter@pengutronix.de>
Wed, 8 Sep 2021 13:03:55 +0000 (14:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 Oct 2021 15:02:03 +0000 (16:02 +0100)
commit36b87fef2b7454d34147acad9c8c27fbd3459a22
treebbd771ce92dfc1ab15fe5c61a02edb5a4f390cb2
parent94a569d8b4f39cfe04b4856bf88ff6a09e644a86
media: allegro: write vui parameters for HEVC

The vui parameters are optional. However, the vui data allows to specify
the color space of the encoded video. Write the vui parameters to make
sure that decoders are able to pick up the correct color space.

Also implement the necessary lookup functions to convert the values from
the V4L2 controls to the values specified in the hevc standard.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/allegro-dvt/allegro-core.c
drivers/media/platform/allegro-dvt/nal-hevc.h