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.29 2003-12-07 15:08:15 edgomez Exp $ |
* $Id: plugin_2pass2.c,v 1.1.2.30 2003-12-08 12:38:04 syskin Exp $ |
29 |
* |
* |
30 |
*****************************************************************************/ |
*****************************************************************************/ |
31 |
|
|
436 |
if (data->quant > 0) |
if (data->quant > 0) |
437 |
return(0); |
return(0); |
438 |
|
|
439 |
/* Second case: We are in a Quant zone */ |
/* Second case: insufficent stats data */ |
440 |
|
if (data->frame_num >= rc->num_frames) { |
441 |
|
DPRINTF(XVID_DEBUG_RC,"[xvid rc] -- stats file too short (now processing frame %d)", |
442 |
|
data->frame_num); |
443 |
|
return(0); |
444 |
|
} |
445 |
|
|
446 |
|
/* Third case: We are in a Quant zone */ |
447 |
if (s->zone_mode == XVID_ZONE_QUANT) { |
if (s->zone_mode == XVID_ZONE_QUANT) { |
448 |
rc->fq_error += s->weight; |
rc->fq_error += s->weight; |
449 |
data->quant = (int)rc->fq_error; |
data->quant = (int)rc->fq_error; |
454 |
return(0); |
return(0); |
455 |
} |
} |
456 |
|
|
|
/* Third case: insufficent stats data */ |
|
|
if (data->frame_num >= rc->num_frames) |
|
|
return(0); |
|
457 |
|
|
458 |
/*************************************************************************/ |
/*************************************************************************/ |
459 |
/*************************************************************************/ |
/*************************************************************************/ |