/[libvob]/libvob/src/stats/TexAccum.cxx
ViewVC logotype

Diff of /libvob/src/stats/TexAccum.cxx

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

revision 1.2 by tjl, Wed Jun 18 09:44:38 2003 UTC revision 1.3 by tjl, Mon Jun 23 14:53:19 2003 UTC
# Line 53  namespace Stats { Line 53  namespace Stats {
53          frexp(parea / tarea, &exponent);          frexp(parea / tarea, &exponent);
54    
55          int mip = exponent / 2;          int mip = exponent / 2;
56    
57            DBG(dbg_texaccum) << "Stats got "<<mip<<" "<<parea<<"\n";
58    
59          if(mip < 0) return;          if(mip < 0) return;
60          if(mip >= NLEVELS) mip = NLEVELS-1;          if(mip >= NLEVELS) mip = NLEVELS-1;
61    
62          this->pixels[mip] += parea;          this->pixels[mip] += parea;
63    
64    
65          gotStatistics();          gotStatistics();
66      }      }
67    
68      void TexAccum::clear() {      void TexAccum::clear() {
69            DBG(dbg_texaccum) << "Stats clear\n";
70          for(int i=0; i<NLEVELS; i++) pixels[i] = 0;          for(int i=0; i<NLEVELS; i++) pixels[i] = 0;
71      }      }
72    

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26