OSDN Git Service

media: allegro: add HEVC NAL unit generator
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 3 Dec 2020 11:00:51 +0000 (12:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 15:04:04 +0000 (16:04 +0100)
commit7f8e438b90c91541d784feb5f71be1a0b01a6010
tree84be9db45437b9e6f5c48b87edb0c229e64cd621
parent98c588b6d27c04460a590f55f1e2474129abe87c
media: allegro: add HEVC NAL unit generator

When encoding a video as HEVC, the allegro driver needs to generate the
Non-VCL NAL units for HEVC. Do the same as for H.264 and add a module
that takes C structs for the VPS/SPS/PPS and encodes the fields as RBPS
as specified by "ITU-T Rec. H.265 (02/2018) high efficiency video
coding".

[hverkuil: add missing static for nal_hevc_write/read_start_code_prefix]
[hverkuil: fix typo: pps -> vps in nal_hevc_write_vps]

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/Makefile
drivers/media/platform/allegro-dvt/nal-hevc.c [new file with mode: 0644]
drivers/media/platform/allegro-dvt/nal-hevc.h [new file with mode: 0644]