Home
last modified time | relevance | path

Searched refs:nBits (Results 1 – 8 of 8) sorted by relevance

/haiku/src/kits/interface/
H A DIcon.cpp388 uint8* nBits = normalBitmap != NULL ? (uint8*)normalBitmap->Bits() : NULL; in _MakeBitmaps() local
407 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 …]
/haiku/src/add-ons/media/plugins/ape_reader/MAClib/
H A DUnBitArrayBase.cpp48 CUnBitArrayBase::DecodeValueXBits(uint32 nBits) in DecodeValueXBits() argument
51 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()
H A DBitArray.h34 int EncodeBits(unsigned int nValue, int nBits);
H A DUnBitArrayBase.h47 virtual uint32 DecodeValueXBits(uint32 nBits);
H A DBitArray.cpp152 int CBitArray::EncodeBits(unsigned int nValue, int nBits) in EncodeBits() argument
161 ENCODE_DIRECT(nValue, nBits); in EncodeBits()
/haiku/headers/private/kernel/util/
H A DBitUtils.h97 const size_t nBits = absoluteShift % bitsPerElement; in bitmap_shift() local
111 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()
/haiku/src/kits/shared/
H A DIconButton.cpp700 uint8* nBits = (uint8*)fNormalBitmap->Bits(); in _MakeBitmaps() local
716 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 …]
/haiku/src/apps/icon-o-matic/generic/gui/
H A DIconButton.cpp615 uint8* nBits = (uint8*)fNormalBitmap->Bits(); in _MakeBitmaps() local
631 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 …]