• Dai, Jianhui J's avatar
    avcodec/cbs_vp8: Add support for VP8 codec bitstream · c9fe9fb8
    Dai, Jianhui J authored
    This commit adds support for VP8 bitstream read methods to the cbs
    codec. This enables the trace_headers bitstream filter to support VP8,
    in addition to AV1, H.264, H.265, and VP9. This can be useful for
    debugging VP8 stream issues.
    
    The CBS VP8 implements a simple VP8 boolean decoder using GetBitContext
    to read the bitstream.
    
    Only the read methods `read_unit` and `split_fragment` are implemented.
    The write methods `write_unit` and `assemble_fragment` return the error
    code AVERROR_PATCHWELCOME. This is because CBS VP8 write is unlikely to
    be used by any applications at the moment. The write methods can be
    added later if there is a real need for them.
    
    TESTS: ffmpeg -i fate-suite/vp8/frame_size_change.webm -vcodec copy
    -bsf:v trace_headers -f null -
    Signed-off-by: 's avatarJianhui Dai <jianhui.j.dai@intel.com>
    Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
    c9fe9fb8
cbs_vp8.h 3.33 KB