comparison mpegvideo.h @ 948:371bc36a9c5c libavcodec

shape adaptive diamonds for EPZS user specified amount of MV predictors from the last frame b frame MV predictor scaling fixed
author michaelni
date Wed, 01 Jan 2003 14:36:20 +0000
parents 9be53be2d1a9
children ad264a7d4f94
comparison
equal deleted inserted replaced
947:9be53be2d1a9 948:371bc36a9c5c
148 int pred_x, int pred_y, Picture *ref_picture, 148 int pred_x, int pred_y, Picture *ref_picture,
149 int n, int size, uint16_t * const mv_penalty); 149 int n, int size, uint16_t * const mv_penalty);
150 int (*motion_search[7])(struct MpegEncContext * s, int block, 150 int (*motion_search[7])(struct MpegEncContext * s, int block,
151 int *mx_ptr, int *my_ptr, 151 int *mx_ptr, int *my_ptr,
152 int P[10][2], int pred_x, int pred_y, 152 int P[10][2], int pred_x, int pred_y,
153 int xmin, int ymin, int xmax, int ymax, Picture *ref_picture, 153 int xmin, int ymin, int xmax, int ymax, Picture *ref_picture, int16_t (*last_mv)[2],
154 uint16_t * const mv_penalty); 154 int ref_mv_scale, uint16_t * const mv_penalty);
155 }MotionEstContext; 155 }MotionEstContext;
156 156
157 typedef struct MpegEncContext { 157 typedef struct MpegEncContext {
158 struct AVCodecContext *avctx; 158 struct AVCodecContext *avctx;
159 /* the following parameters must be initialized before encoding */ 159 /* the following parameters must be initialized before encoding */
367 #define MV_END 64 367 #define MV_END 64
368 //FIXME some prefix? 368 //FIXME some prefix?
369 369
370 int resync_mb_x; /* x position of last resync marker */ 370 int resync_mb_x; /* x position of last resync marker */
371 int resync_mb_y; /* y position of last resync marker */ 371 int resync_mb_y; /* y position of last resync marker */
372 GetBitContext last_resync_gb; /* used to serach for the next resync marker */ 372 GetBitContext last_resync_gb; /* used to search for the next resync marker */
373 int mb_num_left; /* number of MBs left in this video packet (for partitioned Slices only)*/ 373 int mb_num_left; /* number of MBs left in this video packet (for partitioned Slices only)*/
374 int next_p_frame_damaged; /* set if the next p frame is damaged, to avoid showing trashed b frames */ 374 int next_p_frame_damaged; /* set if the next p frame is damaged, to avoid showing trashed b frames */
375 int error_resilience; 375 int error_resilience;
376 376
377 ParseContext parse_context; 377 ParseContext parse_context;