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)
commitb35d3fea2a39c040ae1787d9544b24e5343b0645
treebbd771ce92dfc1ab15fe5c61a02edb5a4f390cb2
parent42fd280628bd0a78f72b49916e8ed2dfabb63a27
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