comparison mpegvideo.h @ 924:3814e9115672 libavcodec

cleanup / messup? fixes 20% speedloss bug removes redundant variables from MpegEncContext release buffers in avcodec_flush_buffers() (untested)
author michaelni
date Mon, 09 Dec 2002 00:29:17 +0000
parents 75ee49a4a516
children 7fccaa0d699d
comparison
equal deleted inserted replaced
923:3b5d9ecedc73 924:3814e9115672
183 Picture *reordered_input_picture[MAX_PICTURE_COUNT]; /* pointer to the next pictures in codedorder for encoding*/ 183 Picture *reordered_input_picture[MAX_PICTURE_COUNT]; /* pointer to the next pictures in codedorder for encoding*/
184 Picture last_picture; /* previous picture */ 184 Picture last_picture; /* previous picture */
185 Picture next_picture; /* previous picture (for bidir pred) */ 185 Picture next_picture; /* previous picture (for bidir pred) */
186 Picture new_picture; /* source picture for encoding */ 186 Picture new_picture; /* source picture for encoding */
187 Picture current_picture; /* buffer to store the decompressed current picture */ 187 Picture current_picture; /* buffer to store the decompressed current picture */
188 int num_available_buffers; /* is 0 at the start & after seeking, after the first I frame its 1 after next I/P 2 */
189 int last_dc[3]; /* last DC values for MPEG1 */ 188 int last_dc[3]; /* last DC values for MPEG1 */
190 INT16 *dc_val[3]; /* used for mpeg4 DC prediction, all 3 arrays must be continuous */ 189 INT16 *dc_val[3]; /* used for mpeg4 DC prediction, all 3 arrays must be continuous */
191 int y_dc_scale, c_dc_scale; 190 int y_dc_scale, c_dc_scale;
192 UINT8 *y_dc_scale_table; /* qscale -> y_dc_scale table */ 191 UINT8 *y_dc_scale_table; /* qscale -> y_dc_scale table */
193 UINT8 *c_dc_scale_table; /* qscale -> c_dc_scale table */ 192 UINT8 *c_dc_scale_table; /* qscale -> c_dc_scale table */
252 int field_select[2][2]; 251 int field_select[2][2];
253 int last_mv[2][2][2]; /* last MV, used for MV prediction in MPEG1 & B-frame MPEG4 */ 252 int last_mv[2][2][2]; /* last MV, used for MV prediction in MPEG1 & B-frame MPEG4 */
254 UINT16 (*mv_penalty)[MAX_MV*2+1]; /* amount of bits needed to encode a MV, used for ME */ 253 UINT16 (*mv_penalty)[MAX_MV*2+1]; /* amount of bits needed to encode a MV, used for ME */
255 UINT8 *fcode_tab; /* smallest fcode needed for each MV */ 254 UINT8 *fcode_tab; /* smallest fcode needed for each MV */
256 255
257 int has_b_frames;
258 int no_rounding; /* apply no rounding to motion compensation (MPEG4, msmpeg4, ...) 256 int no_rounding; /* apply no rounding to motion compensation (MPEG4, msmpeg4, ...)
259 for b-frames rounding mode is allways 0 */ 257 for b-frames rounding mode is allways 0 */
260 258
261 int hurry_up; /* when set to 1 during decoding, b frames will be skiped 259 int hurry_up; /* when set to 1 during decoding, b frames will be skiped
262 when set to 2 idct/dequant will be skipped too */ 260 when set to 2 idct/dequant will be skipped too */