Changeset 11984 for trunk/FACT++/src


Ignore:
Timestamp:
09/06/11 16:41:39 (13 years ago)
Author:
tbretz
Message:
Fixed mapping in cbpx
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/PixelMap.h

    r11978 r11984  
    114114    const PixelMapEntry &cbpx(int c, int b, int p, int px) const
    115115    {
    116         return cbpx(px + p*9 + b*36 + c*360);
     116        return cbpx(px + p*10 + b*100 + c*1000);
     117    }
     118
     119    const PixelMapEntry &hw(int idx) const
     120    {
     121        return cbpx(idx/360, (idx/36)%40, (idx/9)%10, idx%9);
    117122    }
    118123
Note: See TracChangeset for help on using the changeset viewer.