]> 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)
commitdc46a9b8b1f369188fab6023c80e3e8d423e9ab1
treebbd771ce92dfc1ab15fe5c61a02edb5a4f390cb2
parentb5217ce661736080337a48966d7111a3b5f4be4a
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