Skip to content
  • Michael Tretter's avatar
    878344de
    media: allegro: add SPS/PPS nal unit writer · 878344de
    Michael Tretter authored
    
    
    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: default avatarMichael Tretter <m.tretter@pengutronix.de>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
    878344de
    media: allegro: add SPS/PPS nal unit writer
    Michael Tretter authored
    
    
    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: default avatarMichael Tretter <m.tretter@pengutronix.de>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Loading