[cvs] / xvidcore / src / quant / adapt_quant.c Repository:
ViewVC logotype

Diff of /xvidcore/src/quant/adapt_quant.c

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

revision 1.1, Fri Mar 8 02:44:55 2002 UTC revision 1.2, Sat Mar 9 16:18:23 2002 UTC
# Line 1  Line 1 
1  #include "../portab.h"  #include "../portab.h"
2  #include "adapt_quant.h"  #include "adapt_quant.h"
3    
4    #include <stdlib.h> /* free, malloc */
5    
6  #define MAX(a,b)      (((a) > (b)) ? (a) : (b))  #define MAX(a,b)      (((a) > (b)) ? (a) : (b))
7  #define RDIFF(a,b)    ((int)(a+0.5)-(int)(b+0.5))  #define RDIFF(a,b)    ((int)(a+0.5)-(int)(b+0.5))
8    
# Line 110  Line 112 
112    
113          global /= mb_width*mb_height;          global /= mb_width*mb_height;
114    
115          if((global < GlobalBrightThres) && (global > GlobalDarkThres)          if(((global < GlobalBrightThres) && (global > GlobalDarkThres))
116                  || (mid_range < MidRangeThres)) {                  || (mid_range < MidRangeThres)) {
117                  for(k = 0; k < mb_height; k++)                  for(k = 0; k < mb_height; k++)
118                  {                  {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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