Mercurial > libavcodec.hg
comparison mpegvideo.h @ 265:4e9e728021d8 libavcodec
use ac prediction in mpeg4 encoding (5% smaller intra-blocks/keyframes)
some minor optimizations
last non zero index cant be 64 bugfix
author | michaelni |
---|---|
date | Fri, 15 Mar 2002 04:10:53 +0000 |
parents | 7d941b8c4e84 |
children | 252444e5259b |
comparison
equal
deleted
inserted
replaced
264:28c5c62b1c4c | 265:4e9e728021d8 |
---|---|
143 int I_frame_bits; /* wanted number of bits per I frame */ | 143 int I_frame_bits; /* wanted number of bits per I frame */ |
144 int P_frame_bits; /* same for P frame */ | 144 int P_frame_bits; /* same for P frame */ |
145 int avg_mb_var; /* average MB variance for current frame */ | 145 int avg_mb_var; /* average MB variance for current frame */ |
146 INT64 wanted_bits; | 146 INT64 wanted_bits; |
147 INT64 total_bits; | 147 INT64 total_bits; |
148 | 148 |
149 /* H.263 specific */ | 149 /* H.263 specific */ |
150 int gob_number; | 150 int gob_number; |
151 int gob_index; | 151 int gob_index; |
152 int first_gob_line; | 152 int first_gob_line; |
153 | 153 |
311 } | 311 } |
312 | 312 |
313 void h263_encode_mb(MpegEncContext *s, | 313 void h263_encode_mb(MpegEncContext *s, |
314 DCTELEM block[6][64], | 314 DCTELEM block[6][64], |
315 int motion_x, int motion_y); | 315 int motion_x, int motion_y); |
316 void mpeg4_encode_mb(MpegEncContext *s, | |
317 DCTELEM block[6][64], | |
318 int motion_x, int motion_y); | |
316 void h263_encode_picture_header(MpegEncContext *s, int picture_number); | 319 void h263_encode_picture_header(MpegEncContext *s, int picture_number); |
317 int h263_encode_gob_header(MpegEncContext * s, int mb_line); | 320 int h263_encode_gob_header(MpegEncContext * s, int mb_line); |
318 void h263_dc_scale(MpegEncContext *s); | 321 void h263_dc_scale(MpegEncContext *s); |
319 INT16 *h263_pred_motion(MpegEncContext * s, int block, | 322 INT16 *h263_pred_motion(MpegEncContext * s, int block, |
320 int *px, int *py); | 323 int *px, int *py); |