Searched refs:nBits (Results 1 – 8 of 8) sorted by relevance
388 uint8* nBits = normalBitmap != NULL ? (uint8*)normalBitmap->Bits() : NULL; in _MakeBitmaps() local407 nBits[nOffset + 0] = fBits[fOffset + 0]; in _MakeBitmaps()408 nBits[nOffset + 1] = fBits[fOffset + 1]; in _MakeBitmaps()409 nBits[nOffset + 2] = fBits[fOffset + 2]; in _MakeBitmaps()410 nBits[nOffset + 3] = 255; in _MakeBitmaps()414 cBits[nOffset + 0] = uint8((float)nBits[nOffset + 0] * 0.8); in _MakeBitmaps()415 cBits[nOffset + 1] = uint8((float)nBits[nOffset + 1] * 0.8); in _MakeBitmaps()416 cBits[nOffset + 2] = uint8((float)nBits[nOffset + 2] * 0.8); in _MakeBitmaps()423 float dist = (nBits[nOffset + 0] - grey) * 0.4; in _MakeBitmaps()425 dist = (nBits[nOffset + 1] - grey) * 0.4; in _MakeBitmaps()[all …]
48 CUnBitArrayBase::DecodeValueXBits(uint32 nBits) in DecodeValueXBits() argument51 if ((m_nCurrentBitIndex + nBits) >= m_nBits) in DecodeValueXBits()57 m_nCurrentBitIndex += nBits; in DecodeValueXBits()60 if (nLeftBits >= nBits) in DecodeValueXBits()62 & (POWERS_OF_TWO_MINUS_ONE[nLeftBits])) >> (nLeftBits - nBits); in DecodeValueXBits()65 int nRightBits = nBits - nLeftBits; in DecodeValueXBits()
34 int EncodeBits(unsigned int nValue, int nBits);
47 virtual uint32 DecodeValueXBits(uint32 nBits);
152 int CBitArray::EncodeBits(unsigned int nValue, int nBits) in EncodeBits() argument161 ENCODE_DIRECT(nValue, nBits); in EncodeBits()
97 const size_t nBits = absoluteShift % bitsPerElement; in bitmap_shift() local111 if (nBits == 0) in bitmap_shift()122 low = bits[i - 1] >> (bitsPerElement - nBits); in bitmap_shift()123 const T high = bits[i] << nBits; in bitmap_shift()129 const T low = bits[i] >> nBits; in bitmap_shift()132 high = bits[i + 1] << (bitsPerElement - nBits); in bitmap_shift()
700 uint8* nBits = (uint8*)fNormalBitmap->Bits(); in _MakeBitmaps() local716 nBits[nOffset + 0] = fBits[fOffset + 0]; in _MakeBitmaps()717 nBits[nOffset + 1] = fBits[fOffset + 1]; in _MakeBitmaps()718 nBits[nOffset + 2] = fBits[fOffset + 2]; in _MakeBitmaps()719 nBits[nOffset + 3] = 255; in _MakeBitmaps()721 cBits[nOffset + 0] = (uint8)((float)nBits[nOffset + 0] in _MakeBitmaps()723 cBits[nOffset + 1] = (uint8)((float)nBits[nOffset + 1] in _MakeBitmaps()725 cBits[nOffset + 2] = (uint8)((float)nBits[nOffset + 2] in _MakeBitmaps()730 float dist = (nBits[nOffset + 0] - grey) * 0.4; in _MakeBitmaps()732 dist = (nBits[nOffset + 1] - grey) * 0.4; in _MakeBitmaps()[all …]
615 uint8* nBits = (uint8*)fNormalBitmap->Bits(); in _MakeBitmaps() local631 nBits[nOffset + 0] = fBits[fOffset + 0]; in _MakeBitmaps()632 nBits[nOffset + 1] = fBits[fOffset + 1]; in _MakeBitmaps()633 nBits[nOffset + 2] = fBits[fOffset + 2]; in _MakeBitmaps()634 nBits[nOffset + 3] = 255; in _MakeBitmaps()636 cBits[nOffset + 0] = (uint8)((float)nBits[nOffset + 0] * 0.8); in _MakeBitmaps()637 cBits[nOffset + 1] = (uint8)((float)nBits[nOffset + 1] * 0.8); in _MakeBitmaps()638 cBits[nOffset + 2] = (uint8)((float)nBits[nOffset + 2] * 0.8); in _MakeBitmaps()642 float dist = (nBits[nOffset + 0] - grey) * 0.4; in _MakeBitmaps()644 dist = (nBits[nOffset + 1] - grey) * 0.4; in _MakeBitmaps()[all …]