Lines Matching refs:m_bpp
110 m_bpp = m_strm.GetDWord() >> 16; in ReadHeader()
117 (((m_bpp == 1 || m_bpp == 4 || m_bpp == 8 || in ReadHeader()
118 m_bpp == 24 || m_bpp == 32 ) && m_rle_code == BMP_RGB) || in ReadHeader()
119 (m_bpp == 16 && (m_rle_code == BMP_RGB || m_rle_code == BMP_BITFIELDS)) || in ReadHeader()
120 (m_bpp == 4 && m_rle_code == BMP_RLE4) || in ReadHeader()
121 (m_bpp == 8 && m_rle_code == BMP_RLE8))) in ReadHeader()
126 if( m_bpp <= 8 ) in ReadHeader()
129 m_strm.GetBytes( m_palette, (clrused == 0? 1<<m_bpp : clrused)*4 ); in ReadHeader()
130 m_iscolor = IsColorPalette( m_palette, m_bpp ); in ReadHeader()
132 else if( m_bpp == 16 && m_rle_code == BMP_BITFIELDS ) in ReadHeader()
139 m_bpp = 15; in ReadHeader()
145 else if( m_bpp == 16 && m_rle_code == BMP_RGB ) in ReadHeader()
146 m_bpp = 15; in ReadHeader()
153 m_bpp = m_strm.GetDWord() >> 16; in ReadHeader()
157 (m_bpp == 1 || m_bpp == 4 || m_bpp == 8 || in ReadHeader()
158 m_bpp == 24 || m_bpp == 32 )) in ReadHeader()
160 if( m_bpp <= 8 ) in ReadHeader()
163 int j, clrused = 1 << m_bpp; in ReadHeader()
196 int src_pitch = ((m_width*(m_bpp != 15 ? m_bpp : 16) + 7)/8 + 3) & -4; in ReadData()
207 if( (m_bpp != 24 || !color) && src_pitch+32 > buffer_size ) in ReadData()
212 if( m_bpp <= 8 ) in ReadData()
214 CvtPaletteToGray( m_palette, gray_palette, 1 << m_bpp ); in ReadData()
223 switch( m_bpp ) in ReadData()