365 |
{ |
{ |
366 |
switch (opt) { |
switch (opt) { |
367 |
case XVID_ENC_ENCODE: |
case XVID_ENC_ENCODE: |
368 |
|
#ifdef BFRAMES |
369 |
|
if (((Encoder *) handle)->mbParam.max_bframes >= 0) |
370 |
|
return encoder_encode_bframes((Encoder *) handle, (XVID_ENC_FRAME *) param1, |
371 |
|
(XVID_ENC_STATS *) param2); |
372 |
|
else |
373 |
|
#endif |
374 |
return encoder_encode((Encoder *) handle, (XVID_ENC_FRAME *) param1, |
return encoder_encode((Encoder *) handle, (XVID_ENC_FRAME *) param1, |
375 |
(XVID_ENC_STATS *) param2); |
(XVID_ENC_STATS *) param2); |
376 |
|
|