284 |
} |
} |
285 |
|
|
286 |
/* Decode the bitstream */ |
/* Decode the bitstream */ |
287 |
xerr = decoder_decode(dcur->handle, &dcur->xframe); |
xerr = decoder_decode(dcur->handle, &dcur->xframe, NULL); |
288 |
|
|
289 |
/* Restore the real colorspace for this instance */ |
/* Restore the real colorspace for this instance */ |
290 |
if (!dframe->render_flag) { |
if (!dframe->render_flag) { |
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 |
xparam.frame_drop_ratio = 0; /* dont drop frames */ |
xparam.frame_drop_ratio = 0; /* dont drop frames */ |
|
#endif |
|
374 |
|
|
375 |
/* Create the encoder session */ |
/* Create the encoder session */ |
376 |
xerr = encoder_create(&xparam); |
xerr = encoder_create(&xparam); |