Lines Matching refs:biBitCount
147 m_infoHeader.biBitCount = 1;
213 if (m_infoHeader.biBitCount < 16) {
214 const uint32_t maxColors = static_cast<uint32_t>(1) << m_infoHeader.biBitCount;
223 m_infoHeader.biBitCount = 8;
225 m_infoHeader.biBitCount = 4;
228 if (m_infoHeader.biBitCount >= 16)
230 else if (m_infoHeader.biBitCount)
246 m_infoHeader.biBitCount = readUint16(10);
254 m_infoHeader.biBitCount = readUint16(14);
261 if ((biCompression == 3) && (m_infoHeader.biBitCount == 1)) {
264 } else if ((biCompression == 4) && (m_infoHeader.biBitCount == 24)) {
315 if ((m_infoHeader.biBitCount != 1) && (m_infoHeader.biBitCount != 4) && (m_infoHeader.biBitCount != 8) && (m_infoHeader.biBitCount != 24)) {
318 if (m_isOS21x || m_isOS22x || (m_infoHeader.biBitCount && (m_infoHeader.biBitCount != 16) && (m_infoHeader.biBitCount != 32)))
327 if (!m_infoHeader.biBitCount)
336 if (!m_infoHeader.biBitCount || (m_infoHeader.biBitCount > 8))
342 if (!m_infoHeader.biBitCount || (m_infoHeader.biBitCount > 4))
348 if (m_isOS21x || m_isOS22x || ((m_infoHeader.biBitCount != 16) && (m_infoHeader.biBitCount != 32)))
355 if (m_isOS21x || m_isOS22x || m_infoHeader.biBitCount)
361 if (!m_isOS22x || (m_infoHeader.biBitCount != 1))
367 if (!m_isOS22x || (m_infoHeader.biBitCount != 24))
414 const int numBits = (m_infoHeader.biBitCount == 16) ? 5 : 8;
468 m_bitMasks[3] = (m_isInICO && (m_infoHeader.biCompression != BITFIELDS) && (m_infoHeader.biBitCount == 32)) ? static_cast<uint32_t>(0xff000000) : 0;
481 if (m_infoHeader.biBitCount < 32)
482 m_bitMasks[i] &= ((static_cast<uint32_t>(1) << m_infoHeader.biBitCount) - 1);
708 const size_t pixelsPerByte = 8 / m_infoHeader.biBitCount;
709 const size_t bytesPerPixel = m_infoHeader.biBitCount / 8;
710 const size_t unpaddedNumBytes = (m_infoHeader.biBitCount < 16) ? ((numPixels + pixelsPerByte - 1) / pixelsPerByte) : (numPixels * bytesPerPixel);
723 if (m_infoHeader.biBitCount < 16) {
727 const uint8_t mask = (1 << m_infoHeader.biBitCount) - 1;
731 const size_t colorIndex = (pixelData >> (8 - m_infoHeader.biBitCount)) & mask;
750 pixelData <<= m_infoHeader.biBitCount;