| @@ -3788,6 +3788,13 @@ int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, · 3787 unmodified lines |
| 3788 | * @{ | 3788 | * @{ |
| 3789 | */ | 3789 | */ |
| 3790 | | 3790 | |
| | 3791 | enum AVPictureStructure { |
| | 3792 | AV_PICTURE_STRUCTURE_UNKNOWN, //< unknown |
| | 3793 | AV_PICTURE_STRUCTURE_TOP_FIELD, //< coded as top field |
| | 3794 | AV_PICTURE_STRUCTURE_BOTTOM_FIELD, //< coded as bottom field |
| | 3795 | AV_PICTURE_STRUCTURE_FRAME, //< coded as frame |
| | 3796 | }; |
| | 3797 | |
| 3791 | typedef struct AVCodecParserContext { | 3798 | typedef struct AVCodecParserContext { |
| 3792 | void *priv_data; | 3799 | void *priv_data; |
| 3793 | struct AVCodecParser *parser; | 3800 | struct AVCodecParser *parser; |
| @@ -3924,6 +3931,16 @@ typedef struct AVCodecParserContext { · 130 unmodified lines |
| 3924 | int duration; | 3931 | int duration; |
| 3925 | | 3932 | |
| 3926 | enum AVFieldOrder field_order; | 3933 | enum AVFieldOrder field_order; |
| | 3934 | |
| | 3935 | /** |
| | 3936 | * Indicate whether a picture is coded as a frame, top field or bottom field. |
| | 3937 | * |
| | 3938 | * For example, H.264 field_pic_flag equal to 0 corresponds to |
| | 3939 | * AV_PICTURE_STRUCTURE_FRAME. An H.264 picture with field_pic_flag |
| | 3940 | * equal to 1 and bottom_field_flag equal to 0 corresponds to |
| | 3941 | * AV_PICTURE_STRUCTURE_TOP_FIELD. |
| | 3942 | */ |
| | 3943 | enum AVPictureStructure picture_structure; |
| 3927 | } AVCodecParserContext; | 3944 | } AVCodecParserContext; |
| 3928 | | 3945 | |
| 3929 | typedef struct AVCodecParser { | 3946 | typedef struct AVCodecParser { |