Mercurial > libavcodec.hg
annotate mpegvideo.h @ 275:7ebb3f9aaf3b libavcodec
- Added video coding statistics for ffmpeg. Needs more work.
- Fixed ME range for H.263+ UMV (32 pix).
author | pulento |
---|---|
date | Tue, 19 Mar 2002 06:30:41 +0000 |
parents | 09ae29b27ed9 |
children | 5cb2978e701f |
rev | line source |
---|---|
0 | 1 /* |
2 * Generic DCT based hybrid video encoder | |
3 * Copyright (c) 2000,2001 Gerard Lantau. | |
4 * | |
5 * This program is free software; you can redistribute it and/or modify | |
6 * it under the terms of the GNU General Public License as published by | |
7 * the Free Software Foundation; either version 2 of the License, or | |
8 * (at your option) any later version. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU General Public License | |
16 * along with this program; if not, write to the Free Software | |
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
18 */ | |
19 | |
20 /* Macros for picture code type. */ | |
21 #define I_TYPE 1 | |
22 #define P_TYPE 2 | |
23 #define B_TYPE 3 | |
253
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
24 #define S_TYPE 4 //S(GMC)-VOP MPEG4 |
0 | 25 |
26 enum OutputFormat { | |
27 FMT_MPEG1, | |
28 FMT_H263, | |
29 FMT_MJPEG, | |
30 }; | |
31 | |
32 #define MPEG_BUF_SIZE (16 * 1024) | |
33 | |
220 | 34 #define QMAT_SHIFT_MMX 19 |
35 #define QMAT_SHIFT 25 | |
36 | |
268 | 37 typedef struct Predictor{ |
38 double coeff; | |
39 double count; | |
40 double decay; | |
41 } Predictor; | |
42 | |
0 | 43 typedef struct MpegEncContext { |
71 | 44 struct AVCodecContext *avctx; |
0 | 45 /* the following parameters must be initialized before encoding */ |
46 int width, height; /* picture size. must be a multiple of 16 */ | |
47 int gop_size; | |
48 int frame_rate; /* number of frames per second */ | |
49 int intra_only; /* if true, only intra pictures are generated */ | |
50 int bit_rate; /* wanted bit rate */ | |
268 | 51 int bit_rate_tolerance; /* amount of +- bits (>0)*/ |
0 | 52 enum OutputFormat out_format; /* output format */ |
53 int h263_plus; /* h263 plus headers */ | |
54 int h263_rv10; /* use RV10 variation for H263 */ | |
71 | 55 int h263_pred; /* use mpeg4/h263 ac/dc predictions */ |
0 | 56 int h263_msmpeg4; /* generate MSMPEG4 compatible stream */ |
57 int h263_intel; /* use I263 intel h263 header */ | |
58 int fixed_qscale; /* fixed qscale if non zero */ | |
268 | 59 float qcompress; /* amount of qscale change between easy & hard scenes (0.0-1.0) */ |
60 float qblur; /* amount of qscale smoothing over time (0.0-1.0) */ | |
61 int qmin; /* min qscale */ | |
62 int qmax; /* max qscale */ | |
63 int max_qdiff; /* max qscale difference between frames */ | |
7
1d3ac9654178
added skip macroblock optimization (big perf win on black regions for example)
glantau
parents:
0
diff
changeset
|
64 int encoding; /* true if we are encoding (vs decoding) */ |
0 | 65 /* the following fields are managed internally by the encoder */ |
66 | |
67 /* bit output */ | |
68 PutBitContext pb; | |
69 | |
70 /* sequence parameters */ | |
71 int context_initialized; | |
72 int picture_number; | |
73 int fake_picture_number; /* picture number at the bitstream frame rate */ | |
233
3f5b72726118
- More work on preliminary bit rate control, just to be able to get an
pulento
parents:
232
diff
changeset
|
74 int gop_picture_number; /* index of the first picture of a GOP */ |
0 | 75 int mb_width, mb_height; |
233
3f5b72726118
- More work on preliminary bit rate control, just to be able to get an
pulento
parents:
232
diff
changeset
|
76 int mb_num; /* number of MBs of a picture */ |
0 | 77 int linesize; /* line size, in bytes, may be different from width */ |
78 UINT8 *new_picture[3]; /* picture to be compressed */ | |
79 UINT8 *last_picture[3]; /* previous picture */ | |
80 UINT8 *last_picture_base[3]; /* real start of the picture */ | |
81 UINT8 *next_picture[3]; /* previous picture (for bidir pred) */ | |
82 UINT8 *next_picture_base[3]; /* real start of the picture */ | |
83 UINT8 *aux_picture[3]; /* aux picture (for B frames only) */ | |
84 UINT8 *aux_picture_base[3]; /* real start of the picture */ | |
85 UINT8 *current_picture[3]; /* buffer to store the decompressed current picture */ | |
86 int last_dc[3]; /* last DC values for MPEG1 */ | |
266 | 87 INT16 *dc_val[3]; /* used for mpeg4 DC prediction, all 3 arrays must be continuous */ |
0 | 88 int y_dc_scale, c_dc_scale; |
89 UINT8 *coded_block; /* used for coded block pattern prediction */ | |
266 | 90 INT16 (*ac_val[3])[16]; /* used for for mpeg4 AC prediction, all 3 arrays must be continuous */ |
0 | 91 int ac_pred; |
7
1d3ac9654178
added skip macroblock optimization (big perf win on black regions for example)
glantau
parents:
0
diff
changeset
|
92 int mb_skiped; /* MUST BE SET only during DECODING */ |
1d3ac9654178
added skip macroblock optimization (big perf win on black regions for example)
glantau
parents:
0
diff
changeset
|
93 UINT8 *mbskip_table; /* used to avoid copy if macroblock |
1d3ac9654178
added skip macroblock optimization (big perf win on black regions for example)
glantau
parents:
0
diff
changeset
|
94 skipped (for black regions for example) */ |
191
883f184537e6
AC table reset (memset) optimization - patch by Michael Niedermayer <michaelni@gmx.at>
uid46427
parents:
162
diff
changeset
|
95 UINT8 *mbintra_table; /* used to kill a few memsets */ |
0 | 96 |
97 int qscale; | |
98 int pict_type; | |
262 | 99 int last_non_b_pict_type; /* used for mpeg4 gmc b-frames */ |
268 | 100 int last_pict_type; /* used for bit rate stuff (needs that to update the right predictor) */ |
0 | 101 int frame_rate_index; |
102 /* motion compensation */ | |
103 int unrestricted_mv; | |
104 int h263_long_vectors; /* use horrible h263v1 long vector mode */ | |
105 | |
106 int f_code; /* resolution */ | |
262 | 107 int b_code; /* backward resolution for B Frames (mpeg4) */ |
108 INT16 *mv_table[2]; /* MV table (1MV per MB)*/ | |
109 INT16 (*motion_val)[2]; /* used for MV prediction (4MV per MB)*/ | |
0 | 110 int full_search; |
111 int mv_dir; | |
112 #define MV_DIR_BACKWARD 1 | |
113 #define MV_DIR_FORWARD 2 | |
262 | 114 #define MV_DIRECT 4 // bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4) |
0 | 115 int mv_type; |
116 #define MV_TYPE_16X16 0 /* 1 vector for the whole mb */ | |
117 #define MV_TYPE_8X8 1 /* 4 vectors (h263) */ | |
118 #define MV_TYPE_16X8 2 /* 2 vectors, one per 16x8 block */ | |
119 #define MV_TYPE_FIELD 3 /* 2 vectors, one per field */ | |
120 #define MV_TYPE_DMV 4 /* 2 vectors, special mpeg2 Dual Prime Vectors */ | |
121 /* motion vectors for a macroblock | |
122 first coordinate : 0 = forward 1 = backward | |
123 second " : depend on type | |
124 third " : 0 = x, 1 = y | |
125 */ | |
126 int mv[2][4][2]; | |
127 int field_select[2][2]; | |
128 int last_mv[2][2][2]; | |
129 | |
130 int has_b_frames; | |
131 int no_rounding; /* apply no rounding to motion estimation (MPEG4) */ | |
132 | |
133 /* macroblock layer */ | |
134 int mb_x, mb_y; | |
135 int mb_incr; | |
136 int mb_intra; | |
239 | 137 INT16 *mb_var; /* Table for MB variances */ |
232
b640ec5948b0
- Now the ME is done for the entire picture when enconding, the
pulento
parents:
231
diff
changeset
|
138 char *mb_type; /* Table for MB type */ |
266 | 139 |
140 int block_index[6]; | |
141 int block_wrap[6]; | |
142 | |
0 | 143 /* matrix transmitted in the bitstream */ |
144 UINT16 intra_matrix[64]; | |
145 UINT16 chroma_intra_matrix[64]; | |
146 UINT16 non_intra_matrix[64]; | |
147 UINT16 chroma_non_intra_matrix[64]; | |
148 /* precomputed matrix (combine qscale and DCT renorm) */ | |
149 int q_intra_matrix[64]; | |
150 int q_non_intra_matrix[64]; | |
220 | 151 /* identical to the above but for MMX & these are not permutated */ |
152 UINT16 __align8 q_intra_matrix16[64] ; | |
153 UINT16 __align8 q_non_intra_matrix16[64]; | |
0 | 154 int block_last_index[6]; /* last non zero coefficient in block */ |
155 | |
156 void *opaque; /* private data for the user */ | |
157 | |
158 /* bit rate control */ | |
159 int I_frame_bits; /* wanted number of bits per I frame */ | |
160 int P_frame_bits; /* same for P frame */ | |
233
3f5b72726118
- More work on preliminary bit rate control, just to be able to get an
pulento
parents:
232
diff
changeset
|
161 int avg_mb_var; /* average MB variance for current frame */ |
268 | 162 int mc_mb_var; /* motion compensated MB variance for current frame */ |
163 int last_mc_mb_var; /* motion compensated MB variance for last frame */ | |
64 | 164 INT64 wanted_bits; |
165 INT64 total_bits; | |
268 | 166 int frame_bits; /* bits used for the current frame */ |
167 int last_frame_bits; /* bits used for the last frame */ | |
168 Predictor i_pred; | |
169 Predictor p_pred; | |
170 double qsum; /* sum of qscales */ | |
171 double qcount; /* count of qscales */ | |
172 double short_term_qsum; /* sum of recent qscales */ | |
173 double short_term_qcount; /* count of recent qscales */ | |
174 | |
154
f914f710b8d0
- Fixed a bug on H.263 MV prediction for MB on GOBs limits.
pulento
parents:
151
diff
changeset
|
175 /* H.263 specific */ |
f914f710b8d0
- Fixed a bug on H.263 MV prediction for MB on GOBs limits.
pulento
parents:
151
diff
changeset
|
176 int gob_number; |
162 | 177 int gob_index; |
154
f914f710b8d0
- Fixed a bug on H.263 MV prediction for MB on GOBs limits.
pulento
parents:
151
diff
changeset
|
178 int first_gob_line; |
248
56ee684c48bb
- H.263+ decoder support for Advanded INTRA Coding (buggy)
pulento
parents:
243
diff
changeset
|
179 |
79
82e579c37bc3
Moved some H.263+ variables to MpegEncContext to be thread-safe.
pulento
parents:
71
diff
changeset
|
180 /* H.263+ specific */ |
82e579c37bc3
Moved some H.263+ variables to MpegEncContext to be thread-safe.
pulento
parents:
71
diff
changeset
|
181 int umvplus; |
82e579c37bc3
Moved some H.263+ variables to MpegEncContext to be thread-safe.
pulento
parents:
71
diff
changeset
|
182 int umvplus_dec; |
248
56ee684c48bb
- H.263+ decoder support for Advanded INTRA Coding (buggy)
pulento
parents:
243
diff
changeset
|
183 int h263_aic; /* Advanded INTRA Coding (AIC) */ |
56ee684c48bb
- H.263+ decoder support for Advanded INTRA Coding (buggy)
pulento
parents:
243
diff
changeset
|
184 int h263_aic_dir; /* AIC direction: 0 = left, 1 = top */ |
79
82e579c37bc3
Moved some H.263+ variables to MpegEncContext to be thread-safe.
pulento
parents:
71
diff
changeset
|
185 |
0 | 186 /* mpeg4 specific */ |
262 | 187 int time_increment_resolution; |
0 | 188 int time_increment_bits; |
262 | 189 int time_increment; |
190 int time_base; | |
191 int time; | |
192 int last_non_b_time[2]; | |
64 | 193 int shape; |
194 int vol_sprite_usage; | |
253
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
195 int sprite_width; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
196 int sprite_height; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
197 int sprite_left; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
198 int sprite_top; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
199 int sprite_brightness_change; |
254
b4fed8b24e3a
gmc bitstream decoding support (the real motion compensation isnt implemnted yet)
michaelni
parents:
253
diff
changeset
|
200 int num_sprite_warping_points; |
255 | 201 int real_sprite_warping_points; |
254
b4fed8b24e3a
gmc bitstream decoding support (the real motion compensation isnt implemnted yet)
michaelni
parents:
253
diff
changeset
|
202 int sprite_offset[2][2]; |
b4fed8b24e3a
gmc bitstream decoding support (the real motion compensation isnt implemnted yet)
michaelni
parents:
253
diff
changeset
|
203 int sprite_delta[2][2][2]; |
b4fed8b24e3a
gmc bitstream decoding support (the real motion compensation isnt implemnted yet)
michaelni
parents:
253
diff
changeset
|
204 int sprite_shift[2][2]; |
b4fed8b24e3a
gmc bitstream decoding support (the real motion compensation isnt implemnted yet)
michaelni
parents:
253
diff
changeset
|
205 int mcsel; |
64 | 206 int quant_precision; |
253
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
207 int quarter_sample; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
208 int scalability; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
209 int new_pred; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
210 int reduced_res_vop; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
211 int aspect_ratio_info; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
212 int sprite_warping_accuracy; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
213 int low_latency_sprite; |
4448dd55d415
parsing more of the mpeg4 header & print some "not supported" stuff
michaelni
parents:
248
diff
changeset
|
214 int data_partioning; |
255 | 215 |
216 /* divx specific, used to workaround (many) bugs in divx5 */ | |
217 int divx_version; | |
218 int divx_build; | |
219 | |
0 | 220 /* RV10 specific */ |
221 int rv10_version; /* RV10 version: 0 or 3 */ | |
222 int rv10_first_dc_coded[3]; | |
223 | |
224 /* MJPEG specific */ | |
225 struct MJpegContext *mjpeg_ctx; | |
229 | 226 int mjpeg_vsample[3]; /* vertical sampling factors, default = {2, 1, 1} */ |
227 int mjpeg_hsample[3]; /* horizontal sampling factors, default = {2, 1, 1} */ | |
228 int mjpeg_write_tables; /* do we want to have quantisation- and | |
229 huffmantables in the jpeg file ? */ | |
0 | 230 |
231 /* MSMPEG4 specific */ | |
232 int mv_table_index; | |
233 int rl_table_index; | |
234 int rl_chroma_table_index; | |
235 int dc_table_index; | |
236 int use_skip_mb_code; | |
237 int slice_height; /* in macroblocks */ | |
238 int first_slice_line; | |
208 | 239 int flipflop_rounding; |
240 int bitrate; | |
0 | 241 /* decompression specific */ |
242 GetBitContext gb; | |
243 | |
244 /* MPEG2 specific - I wish I had not to support this mess. */ | |
245 int progressive_sequence; | |
246 int mpeg_f_code[2][2]; | |
247 int picture_structure; | |
248 /* picture type */ | |
249 #define PICT_TOP_FIELD 1 | |
250 #define PICT_BOTTOM_FIELD 2 | |
251 #define PICT_FRAME 3 | |
252 | |
253 int intra_dc_precision; | |
254 int frame_pred_frame_dct; | |
255 int top_field_first; | |
256 int concealment_motion_vectors; | |
257 int q_scale_type; | |
258 int intra_vlc_format; | |
259 int alternate_scan; | |
260 int repeat_first_field; | |
261 int chroma_420_type; | |
262 int progressive_frame; | |
263 int mpeg2; | |
264 int full_pel[2]; | |
265 int interlaced_dct; | |
266 int last_qscale; | |
267 int first_slice; | |
162 | 268 |
269 /* RTP specific */ | |
231 | 270 /* These are explained on avcodec.h */ |
162 | 271 int rtp_mode; |
272 int rtp_payload_size; | |
231 | 273 void (*rtp_callback)(void *data, int size, int packet_number); |
162 | 274 UINT8 *ptr_lastgob; |
275 UINT8 *ptr_last_mb_line; | |
276 UINT32 mb_line_avgsize; | |
277 | |
13
174ef88f619a
use block[] in structure to have it aligned on 8 bytes for mmx optimizations - dct_unquantize is always a function pointer - added specialized dct_unquantize_h263
glantau
parents:
7
diff
changeset
|
278 DCTELEM block[6][64] __align8; |
174ef88f619a
use block[] in structure to have it aligned on 8 bytes for mmx optimizations - dct_unquantize is always a function pointer - added specialized dct_unquantize_h263
glantau
parents:
7
diff
changeset
|
279 void (*dct_unquantize)(struct MpegEncContext *s, |
174ef88f619a
use block[] in structure to have it aligned on 8 bytes for mmx optimizations - dct_unquantize is always a function pointer - added specialized dct_unquantize_h263
glantau
parents:
7
diff
changeset
|
280 DCTELEM *block, int n, int qscale); |
0 | 281 } MpegEncContext; |
282 | |
283 int MPV_common_init(MpegEncContext *s); | |
284 void MPV_common_end(MpegEncContext *s); | |
285 void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64]); | |
286 void MPV_frame_start(MpegEncContext *s); | |
287 void MPV_frame_end(MpegEncContext *s); | |
13
174ef88f619a
use block[] in structure to have it aligned on 8 bytes for mmx optimizations - dct_unquantize is always a function pointer - added specialized dct_unquantize_h263
glantau
parents:
7
diff
changeset
|
288 #ifdef HAVE_MMX |
174ef88f619a
use block[] in structure to have it aligned on 8 bytes for mmx optimizations - dct_unquantize is always a function pointer - added specialized dct_unquantize_h263
glantau
parents:
7
diff
changeset
|
289 void MPV_common_init_mmx(MpegEncContext *s); |
174ef88f619a
use block[] in structure to have it aligned on 8 bytes for mmx optimizations - dct_unquantize is always a function pointer - added specialized dct_unquantize_h263
glantau
parents:
7
diff
changeset
|
290 #endif |
0 | 291 |
292 /* motion_est.c */ | |
293 | |
294 int estimate_motion(MpegEncContext *s, | |
295 int mb_x, int mb_y, | |
296 int *mx_ptr, int *my_ptr); | |
297 | |
298 /* mpeg12.c */ | |
41 | 299 extern INT16 default_intra_matrix[64]; |
300 extern INT16 default_non_intra_matrix[64]; | |
0 | 301 |
302 void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number); | |
303 void mpeg1_encode_mb(MpegEncContext *s, | |
304 DCTELEM block[6][64], | |
305 int motion_x, int motion_y); | |
306 | |
307 /* h263enc.c */ | |
308 | |
309 /* run length table */ | |
310 #define MAX_RUN 64 | |
311 #define MAX_LEVEL 64 | |
312 | |
313 typedef struct RLTable { | |
314 int n; /* number of entries of table_vlc minus 1 */ | |
315 int last; /* number of values for last = 0 */ | |
316 const UINT16 (*table_vlc)[2]; | |
317 const INT8 *table_run; | |
318 const INT8 *table_level; | |
319 UINT8 *index_run[2]; /* encoding only */ | |
320 INT8 *max_level[2]; /* encoding & decoding */ | |
321 INT8 *max_run[2]; /* encoding & decoding */ | |
322 VLC vlc; /* decoding only */ | |
323 } RLTable; | |
324 | |
325 void init_rl(RLTable *rl); | |
326 void init_vlc_rl(RLTable *rl); | |
327 | |
243 | 328 static inline int get_rl_index(const RLTable *rl, int last, int run, int level) |
0 | 329 { |
330 int index; | |
331 index = rl->index_run[last][run]; | |
332 if (index >= rl->n) | |
333 return rl->n; | |
334 if (level > rl->max_level[last][run]) | |
335 return rl->n; | |
336 return index + level - 1; | |
337 } | |
338 | |
339 void h263_encode_mb(MpegEncContext *s, | |
340 DCTELEM block[6][64], | |
341 int motion_x, int motion_y); | |
265
4e9e728021d8
use ac prediction in mpeg4 encoding (5% smaller intra-blocks/keyframes)
michaelni
parents:
262
diff
changeset
|
342 void mpeg4_encode_mb(MpegEncContext *s, |
4e9e728021d8
use ac prediction in mpeg4 encoding (5% smaller intra-blocks/keyframes)
michaelni
parents:
262
diff
changeset
|
343 DCTELEM block[6][64], |
4e9e728021d8
use ac prediction in mpeg4 encoding (5% smaller intra-blocks/keyframes)
michaelni
parents:
262
diff
changeset
|
344 int motion_x, int motion_y); |
0 | 345 void h263_encode_picture_header(MpegEncContext *s, int picture_number); |
162 | 346 int h263_encode_gob_header(MpegEncContext * s, int mb_line); |
0 | 347 void h263_dc_scale(MpegEncContext *s); |
348 INT16 *h263_pred_motion(MpegEncContext * s, int block, | |
349 int *px, int *py); | |
350 void mpeg4_pred_ac(MpegEncContext * s, INT16 *block, int n, | |
351 int dir); | |
352 void mpeg4_encode_picture_header(MpegEncContext *s, int picture_number); | |
353 void h263_encode_init_vlc(MpegEncContext *s); | |
354 | |
355 void h263_decode_init_vlc(MpegEncContext *s); | |
356 int h263_decode_picture_header(MpegEncContext *s); | |
162 | 357 int h263_decode_gob_header(MpegEncContext *s); |
0 | 358 int mpeg4_decode_picture_header(MpegEncContext * s); |
359 int intel_h263_decode_picture_header(MpegEncContext *s); | |
360 int h263_decode_mb(MpegEncContext *s, | |
361 DCTELEM block[6][64]); | |
362 int h263_get_picture_format(int width, int height); | |
363 | |
364 /* rv10.c */ | |
365 void rv10_encode_picture_header(MpegEncContext *s, int picture_number); | |
366 int rv_decode_dc(MpegEncContext *s, int n); | |
367 | |
368 /* msmpeg4.c */ | |
369 void msmpeg4_encode_picture_header(MpegEncContext * s, int picture_number); | |
208 | 370 void msmpeg4_encode_ext_header(MpegEncContext * s); |
0 | 371 void msmpeg4_encode_mb(MpegEncContext * s, |
372 DCTELEM block[6][64], | |
373 int motion_x, int motion_y); | |
374 void msmpeg4_dc_scale(MpegEncContext * s); | |
375 int msmpeg4_decode_picture_header(MpegEncContext * s); | |
208 | 376 int msmpeg4_decode_ext_header(MpegEncContext * s, int buf_size); |
0 | 377 int msmpeg4_decode_mb(MpegEncContext *s, |
378 DCTELEM block[6][64]); | |
379 int msmpeg4_decode_init_vlc(MpegEncContext *s); | |
380 | |
381 /* mjpegenc.c */ | |
382 | |
383 int mjpeg_init(MpegEncContext *s); | |
384 void mjpeg_close(MpegEncContext *s); | |
385 void mjpeg_encode_mb(MpegEncContext *s, | |
386 DCTELEM block[6][64]); | |
387 void mjpeg_picture_header(MpegEncContext *s); | |
388 void mjpeg_picture_trailer(MpegEncContext *s); |