media: allegro: extract RBSP handler from H.264 NAL generator
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 3 Dec 2020 11:00:49 +0000 (12:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 14:51:51 +0000 (15:51 +0100)
commit256442881b1726a671befa47b7f92cd5d11b7ad5
treed0017d96c7412d7f227f62de68cea2f45bec5716
parent35cb6aa82656f11196b13cd94cdbc5816d12b5a0
media: allegro: extract RBSP handler from H.264 NAL generator

The RBSP structure is the same for HEVC and H.264. In order to be able
to reuse the RBSP handler for generating HEVC NAL units, extract the
functions from the H.264 generator.

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