aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/media
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2019-05-28 13:11:20 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-05-29 06:42:36 -0400
commit878344de61d0d5f351a1b84fce009a321be3eb45 (patch)
tree2e8ca7f2a77d350f46f54eb01bdb17a157e47ec9 /include/media
parentmedia: allegro: add Allegro DVT video IP core driver (diff)
downloadwireguard-linux-878344de61d0d5f351a1b84fce009a321be3eb45.tar.xz
wireguard-linux-878344de61d0d5f351a1b84fce009a321be3eb45.zip
media: allegro: add SPS/PPS nal unit writer
The allegro hardware encoder does not write SPS/PPS nal units into the encoded video stream. Therefore, we need to write the units in software. The implementation follows Rec. ITU-T H.264 (04/2017) to allow to convert between a C struct and the RBSP representation of the SPS and PPS nal units. The allegro driver writes the nal units into the v4l2 capture buffer in front of the actual video data which is written at an offset by the IP core. The remaining gap is filled with a filler nal unit. [hverkuil-cisco@xs4all.nl: added missing @dev description for nal_h264_read_sps()] [mchehab+samsung@kernel.org: removed uneeded "-ccflags-y $(src)" from Makefile] 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+samsung@kernel.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions