X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264.h;h=6b76420cebc343af291d0283d16a3d59070bd4bb;hb=e4e3230ea54ab7c66588d713b13a81fd59e10dcc;hp=1669e8ece98e69171417acb63ef290ae4624f1f9;hpb=24456882f378c3154645b2b833b6f5af6e6f3ef7;p=ffmpeg diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 1669e8ece98..6b76420cebc 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -17,7 +17,6 @@ * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * */ /** @@ -26,12 +25,13 @@ * @author Michael Niedermayer */ -#ifndef H264_H -#define H264_H +#ifndef FFMPEG_H264_H +#define FFMPEG_H264_H #include "dsputil.h" #include "cabac.h" #include "mpegvideo.h" +#include "h264pred.h" #define interlaced_dct interlaced_dct_is_a_bad_name #define mb_intra mb_intra_is_not_initialized_see_mb_type @@ -59,13 +59,16 @@ #define MB_MBAFF h->mb_mbaff #define MB_FIELD h->mb_field_decoding_flag #define FRAME_MBAFF h->mb_aff_frame +#define FIELD_PICTURE (s->picture_structure != PICT_FRAME) #else #define MB_MBAFF 0 #define MB_FIELD 0 #define FRAME_MBAFF 0 +#define FIELD_PICTURE 0 #undef IS_INTERLACED #define IS_INTERLACED(mb_type) 0 #endif +#define FIELD_OR_MBAFF_PICTURE (FRAME_MBAFF || FIELD_PICTURE) /** * Sequence parameter set @@ -84,16 +87,16 @@ typedef struct SPS{ int poc_cycle_length; ///< num_ref_frames_in_pic_order_cnt_cycle int ref_frame_count; ///< num_ref_frames int gaps_in_frame_num_allowed_flag; - int mb_width; ///< frame_width_in_mbs_minus1 + 1 - int mb_height; ///< frame_height_in_mbs_minus1 + 1 + int mb_width; ///< pic_width_in_mbs_minus1 + 1 + int mb_height; ///< pic_height_in_map_units_minus1 + 1 int frame_mbs_only_flag; int mb_aff; ///