diff options
author | Nuo Mi <nuomi2021@gmail.com> | 2023-03-21 16:01:15 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-29 14:12:50 -0300 |
commit | dfc62fd1c6da6429bbd0eb3cbb6f3804e8fcb8ae (patch) | |
tree | 9460010ea3dbec6f3b318c811875c08460047f2a /libavcodec/cbs.c | |
parent | 136e96a8a896b04724bcb991c5eb2943d101aa51 (diff) | |
download | ffmpeg-dfc62fd1c6da6429bbd0eb3cbb6f3804e8fcb8ae.tar.gz |
avcodec/cbs: add cbs implementation for H266/VVC
Add CodedBitstreamContext to parse VPS,SPS,PPS in VVC nal units.
Implement parsing and writing of SPS,PPS,VPS,PH,AUD,SEI and slices.
Add ff_cbs_type_h266 to cbs types tables and AV_CODEC_ID_H266
to cbs codec ids.
Co-authored-by: Thomas Siedel <thomas.ff@spin-digital.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs.c')
-rw-r--r-- | libavcodec/cbs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c index cf5211249b..13a01bef51 100644 --- a/libavcodec/cbs.c +++ b/libavcodec/cbs.c @@ -40,6 +40,9 @@ static const CodedBitstreamType *const cbs_type_table[] = { #if CONFIG_CBS_H265 &ff_cbs_type_h265, #endif +#if CONFIG_CBS_H266 + &ff_cbs_type_h266, +#endif #if CONFIG_CBS_JPEG &ff_cbs_type_jpeg, #endif @@ -61,6 +64,9 @@ const enum AVCodecID ff_cbs_all_codec_ids[] = { #if CONFIG_CBS_H265 AV_CODEC_ID_H265, #endif +#if CONFIG_CBS_H266 + AV_CODEC_ID_H266, +#endif #if CONFIG_CBS_JPEG AV_CODEC_ID_MJPEG, #endif |