25 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
27 |
* |
* |
28 |
* $Id: plugin_2pass2.c,v 1.1.2.11 2003-05-24 21:22:18 edgomez Exp $ |
* $Id: plugin_2pass2.c,v 1.1.2.12 2003-05-24 22:03:50 edgomez Exp $ |
29 |
* |
* |
30 |
*****************************************************************************/ |
*****************************************************************************/ |
31 |
|
|
678 |
static int |
static int |
679 |
rc_2pass2_after(rc_2pass2_t * rc, xvid_plg_data_t * data) |
rc_2pass2_after(rc_2pass2_t * rc, xvid_plg_data_t * data) |
680 |
{ |
{ |
681 |
|
const char frame_type[4] = { 'i', 'p', 'b', 's'}; |
682 |
stat_t * s = &rc->stats[data->frame_num]; |
stat_t * s = &rc->stats[data->frame_num]; |
683 |
|
|
684 |
/* Insufficent stats data */ |
/* Insufficent stats data */ |
707 |
rc->KFoverflow -= rc->KFoverflow_partial; |
rc->KFoverflow -= rc->KFoverflow_partial; |
708 |
} |
} |
709 |
|
|
710 |
DPRINTF(XVID_DEBUG_RC, "[%i] quant:%i stats1:%i scaled:%i actual:%i overflow:%i\n", |
DPRINTF(XVID_DEBUG_RC, "[%i] type:%c quant:%i stats1:%i scaled:%i actual:%i overflow:%i\n", |
711 |
data->frame_num, |
data->frame_num, |
712 |
|
frame_type[data->type-1], |
713 |
data->quant, |
data->quant, |
714 |
s->length, |
s->length, |
715 |
s->scaled_length, |
s->scaled_length, |