32 |
* |
* |
33 |
* History: |
* History: |
34 |
* |
* |
35 |
|
* 24.02.2002 #def BFRAMES compatibility |
36 |
* 26.02.2001 fixed dec_csp bugs |
* 26.02.2001 fixed dec_csp bugs |
37 |
* 26.12.2001 xvid_init() support |
* 26.12.2001 xvid_init() support |
38 |
* 22.12.2001 removed some compiler warnings |
* 22.12.2001 removed some compiler warnings |
106 |
static int const divx4_motion_presets[7] = { |
static int const divx4_motion_presets[7] = { |
107 |
0, |
0, |
108 |
|
|
109 |
PMV_EARLYSTOP16, |
0, |
110 |
|
|
111 |
PMV_EARLYSTOP16 | PMV_ADVANCEDDIAMOND16, |
PMV_ADVANCEDDIAMOND16, |
112 |
|
|
113 |
PMV_EARLYSTOP16 | PMV_HALFPELREFINE16, |
PMV_HALFPELREFINE16, |
114 |
|
|
115 |
PMV_EARLYSTOP16 | PMV_HALFPELREFINE16 | PMV_EARLYSTOP8 | |
PMV_HALFPELREFINE16 | PMV_HALFPELREFINE8, |
|
PMV_HALFPELREFINE8, |
|
116 |
|
|
117 |
PMV_EARLYSTOP16 | PMV_HALFPELREFINE16 | PMV_EARLYSTOP8 | |
PMV_HALFPELREFINE16 | PMV_HALFPELREFINE8, |
|
PMV_HALFPELREFINE8, |
|
118 |
|
|
119 |
PMV_EARLYSTOP16 | PMV_HALFPELREFINE16 | PMV_EXTSEARCH16 | PMV_EARLYSTOP8 | |
PMV_HALFPELREFINE16 | PMV_EXTSEARCH16 | PMV_HALFPELREFINE8 |
|
PMV_HALFPELREFINE8 |
|
120 |
}; |
}; |
121 |
|
|
122 |
|
|
367 |
xparam.max_quantizer = eparam->max_quantizer; |
xparam.max_quantizer = eparam->max_quantizer; |
368 |
xparam.max_key_interval = eparam->max_key_interval; |
xparam.max_key_interval = eparam->max_key_interval; |
369 |
|
|
370 |
|
#ifdef BFRAMES |
371 |
|
xparam.global = 0; |
372 |
|
xparam.max_bframes = -1; /* use "original" IP-frame encoder */ |
373 |
|
xparam.bquant_ratio = 200; |
374 |
|
xparam.frame_drop_ratio = 0; /* dont drop frames */ |
375 |
|
#endif |
376 |
|
|
377 |
/* Create the encoder session */ |
/* Create the encoder session */ |
378 |
xerr = encoder_create(&xparam); |
xerr = encoder_create(&xparam); |
379 |
|
|