26 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
27 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
28 |
* |
* |
29 |
* $Id: encoder.c,v 1.95.2.17 2003-03-30 00:36:53 edgomez Exp $ |
* $Id: encoder.c,v 1.95.2.18 2003-04-02 20:43:56 edgomez Exp $ |
30 |
* |
* |
31 |
****************************************************************************/ |
****************************************************************************/ |
32 |
|
|
202 |
pEnc->mbParam.frame_drop_ratio = MAX(create->frame_drop_ratio, 0); |
pEnc->mbParam.frame_drop_ratio = MAX(create->frame_drop_ratio, 0); |
203 |
|
|
204 |
/* max keyframe interval */ |
/* max keyframe interval */ |
205 |
pEnc->mbParam.iMaxKeyInterval = create->max_key_interval <=0 ? 250 : create->max_key_interval; |
pEnc->mbParam.iMaxKeyInterval = create->max_key_interval <= 0 ? |
206 |
/*XXX: replace 250 hard code with "10seconds * framerate" */ |
10 * pEnc->mbParam.fbase / pEnc->mbParam.fincr : create->max_key_interval; |
207 |
|
|
208 |
/* Bitrate allocator defaults |
/* Bitrate allocator defaults |
209 |
|
|