38 |
* 22.12.2001 removed some compiler warnings |
* 22.12.2001 removed some compiler warnings |
39 |
* 16.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
* 16.12.2001 inital version; (c)2001 peter ross <pross@cs.rmit.edu.au> |
40 |
* |
* |
41 |
* $Id: divx4.c,v 1.15 2002-06-24 09:53:17 suxen_drol Exp $ |
* $Id: divx4.c,v 1.16.2.2 2002-11-02 16:11:06 chl Exp $ |
42 |
* |
* |
43 |
*************************************************************************/ |
*************************************************************************/ |
44 |
|
|
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 |
|
|
|
#ifdef BFRAMES |
|
370 |
xparam.global = 0; |
xparam.global = 0; |
371 |
xparam.max_bframes = -1; /* use "original" IP-frame encoder */ |
xparam.max_bframes = -1; /* use "original" IP-frame encoder */ |
372 |
xparam.bquant_ratio = 200; |
xparam.bquant_ratio = 200; |
373 |
#endif |
xparam.frame_drop_ratio = 0; /* dont drop frames */ |
374 |
|
|
375 |
/* Create the encoder session */ |
/* Create the encoder session */ |
376 |
xerr = encoder_create(&xparam); |
xerr = encoder_create(&xparam); |