diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2022-06-13 11:36:34 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2022-06-24 15:37:23 +0800 |
commit | e0cddee277bca5061893834989730f64d171d6ac (patch) | |
tree | af18319dfbdcfc908675c21f017631e91ced7cda /libavcodec/avs2.h | |
parent | b7eee211bc4c7897b538fb53d3ba9fad3a0b6832 (diff) |
avcodec/avs2_parser: parse more info
Including video resolution, framerate and picture type, etc.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavcodec/avs2.h')
-rw-r--r-- | libavcodec/avs2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/avs2.h b/libavcodec/avs2.h index f342ba52a0..544cf502d7 100644 --- a/libavcodec/avs2.h +++ b/libavcodec/avs2.h @@ -23,6 +23,8 @@ #ifndef AVCODEC_AVS2_H #define AVCODEC_AVS2_H +#include "libavutil/rational.h" + #define AVS2_SLICE_MAX_START_CODE 0x000001AF enum { @@ -38,4 +40,12 @@ enum { #define AVS2_ISPIC(x) ((x) == AVS2_INTRA_PIC_START_CODE || (x) == AVS2_INTER_PIC_START_CODE) #define AVS2_ISUNIT(x) ((x) == AVS2_SEQ_START_CODE || AVS2_ISPIC(x)) +enum AVS2Profile { + AVS2_PROFILE_MAIN_PIC = 0x12, + AVS2_PROFILE_MAIN = 0x20, + AVS2_PROFILE_MAIN10 = 0x22, +}; + +extern const AVRational ff_avs2_frame_rate_tab[16]; + #endif |