[svn] / branches / dev-api-4 / xvidcore / src / plugins / plugin_2pass2.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/plugins/plugin_2pass2.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 977, Tue Apr 8 14:01:35 2003 UTC revision 1014, Mon May 12 12:33:16 2003 UTC
# Line 22  Line 22 
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_2pass2.c,v 1.1.2.2 2003-04-08 14:01:09 suxen_drol Exp $   * $Id: plugin_2pass2.c,v 1.1.2.3 2003-05-12 12:33:16 suxen_drol Exp $
26   *   *
27   *****************************************************************************/   *****************************************************************************/
28    
# Line 686  Line 686 
686      if (rc->param.curve_compression_low <= 0) rc->param.curve_compression_low = 0;      if (rc->param.curve_compression_low <= 0) rc->param.curve_compression_low = 0;
687      if (rc->param.max_overflow_improvement <= 0) rc->param.max_overflow_improvement = 60;      if (rc->param.max_overflow_improvement <= 0) rc->param.max_overflow_improvement = 60;
688      if (rc->param.max_overflow_degradation <= 0) rc->param.max_overflow_degradation = 60;      if (rc->param.max_overflow_degradation <= 0) rc->param.max_overflow_degradation = 60;
     if (rc->param.min_quant[0] <= 0) rc->param.min_quant[0] = 2;  
     if (rc->param.max_quant[0] <= 0) rc->param.max_quant[0] = 31;  
     if (rc->param.min_quant[1] <= 0) rc->param.min_quant[1] = 2;  
     if (rc->param.max_quant[1] <= 0) rc->param.max_quant[1] = 31;  
     if (rc->param.min_quant[2] <= 0) rc->param.min_quant[2] = 2;  
     if (rc->param.max_quant[2] <= 0) rc->param.max_quant[2] = 31;  
689    
690      if (rc->param.use_alt_curve <= 0) rc->param.use_alt_curve = 0;      if (rc->param.use_alt_curve <= 0) rc->param.use_alt_curve = 0;
691      if (rc->param.alt_curve_high_dist <= 0) rc->param.alt_curve_high_dist = 500;      if (rc->param.alt_curve_high_dist <= 0) rc->param.alt_curve_high_dist = 500;
# Line 992  Line 986 
986    
987      /* cap to min/max quant */      /* cap to min/max quant */
988    
989      if (data->quant < rc->param.min_quant[s->type-1]) {      if (data->quant < data->min_quant[s->type-1]) {
990          data->quant = rc->param.min_quant[s->type-1];          data->quant = data->min_quant[s->type-1];
991      }else if (data->quant > rc->param.max_quant[s->type-1]) {      }else if (data->quant > data->max_quant[s->type-1]) {
992          data->quant = rc->param.max_quant[s->type-1];          data->quant = data->max_quant[s->type-1];
993      }      }
994    
995      /* subsequent p/b frame quants can only be +- 2 */      /* subsequent p/b frame quants can only be +- 2 */

Legend:
Removed from v.977  
changed lines
  Added in v.1014

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4