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