22 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
23 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 |
* |
* |
25 |
* $Id: plugin_2pass1.c,v 1.1.2.10 2003-12-17 15:16:16 edgomez Exp $ |
* $Id: plugin_2pass1.c,v 1.1.2.11 2003-12-18 17:43:32 edgomez Exp $ |
26 |
* |
* |
27 |
*****************************************************************************/ |
*****************************************************************************/ |
28 |
|
|
105 |
static int rc_2pass1_after(rc_2pass1_t * rc, xvid_plg_data_t * data) |
static int rc_2pass1_after(rc_2pass1_t * rc, xvid_plg_data_t * data) |
106 |
{ |
{ |
107 |
char type; |
char type; |
108 |
|
xvid_enc_stats_t *stats = &data->stats; |
109 |
|
|
110 |
/* Frame type in ascii I/P/B */ |
/* Frame type in ascii I/P/B */ |
111 |
switch(data->type) { |
switch(stats->type) { |
112 |
case XVID_TYPE_IVOP: |
case XVID_TYPE_IVOP: |
113 |
type = 'i'; |
type = 'i'; |
114 |
break; |
break; |
127 |
|
|
128 |
/* write the resulting statistics */ |
/* write the resulting statistics */ |
129 |
|
|
130 |
fprintf(rc->stat_file, "%c %d %d %d %d %d\n", |
fprintf(rc->stat_file, "%c %d %d %d %d %d %d\n", |
131 |
type, |
type, |
132 |
data->quant, |
stats->quant, |
133 |
data->kblks, |
stats->kblks, |
134 |
data->mblks, |
stats->mblks, |
135 |
data->ublks, |
stats->ublks, |
136 |
data->length); |
stats->length, |
137 |
|
stats->hlength); |
138 |
|
|
139 |
return(0); |
return(0); |
140 |
} |
} |