Searched refs:m_bpp (Results 1 – 8 of 8) sorted by relevance
/external/opencv/otherlibs/highgui/ |
D | grfmt_bmp.cpp | 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() [all …]
|
D | grfmt_sunras.cpp | 105 m_bpp = m_strm.GetDWord(); in ReadHeader() 106 int palSize = 3*(1 << m_bpp); in ReadHeader() 114 (m_bpp == 1 || m_bpp == 8 || m_bpp == 24 || m_bpp == 32) && in ReadHeader() 116 (m_type == RAS_BYTE_ENCODED && m_bpp == 8) || m_type == RAS_FORMAT_RGB) && in ReadHeader() 118 m_maptype == RMT_EQUAL_RGB && m_maplength <= palSize && m_bpp <= 8)) in ReadHeader() 141 m_iscolor = IsColorPalette( m_palette, m_bpp ); in ReadHeader() 150 m_iscolor = m_bpp > 8; in ReadHeader() 153 FillGrayPalette( m_palette, m_bpp ); in ReadHeader() 182 int src_pitch = ((m_width*m_bpp + 7)/8 + 1) & -2; in ReadData() 197 CvtPaletteToGray( m_palette, gray_palette, 1 << m_bpp ); in ReadData() [all …]
|
D | grfmt_pxm.cpp | 157 case '1': case '4': m_bpp = 1; break; in ReadHeader() 158 case '2': case '5': m_bpp = 8; break; in ReadHeader() 159 case '3': case '6': m_bpp = 24; break; in ReadHeader() 164 m_iscolor = m_bpp > 8; in ReadHeader() 169 m_maxval = m_bpp == 1 ? 1 : ReadNumber( m_strm, INT_MAX ); in ReadHeader() 205 int src_pitch = (m_width*m_bpp*m_bit_depth/8 + 7)/8; in ReadData() 224 gray_palette[i] = (uchar)((i*255/m_maxval)^(m_bpp == 1 ? 255 : 0)); in ReadData() 227 FillGrayPalette( palette, m_bpp==1 ? 1 : 8 , m_bpp == 1 ); in ReadData() 234 switch( m_bpp ) in ReadData() 306 if( m_bpp == 8 ) // image has one channel in ReadData()
|
D | grfmt_tiff.cpp | 372 m_bpp = 1; in ReadHeader() 434 m_bpp = bpp_arr[0]; in ReadHeader() 504 switch( m_bpp ) in ReadHeader() 509 FillGrayPalette( m_palette, m_bpp, photometric == 0 ); in ReadHeader() 517 photometric == 3 && pal_length == (1 << m_bpp)) && in ReadHeader() 522 FillGrayPalette( m_palette, m_bpp, photometric == 0 ); in ReadHeader() 527 m_iscolor = IsColorPalette( m_palette, m_bpp ); in ReadHeader() 535 m_bpp = 8*channels; in ReadHeader() 566 int src_pitch = (m_width*m_bpp + 7)/8; in ReadData() 576 if( m_bpp <= 8 ) in ReadData() [all …]
|
D | grfmt_bmp.h | 72 int m_bpp; variable
|
D | grfmt_pxm.h | 65 int m_bpp; variable
|
D | grfmt_sunras.h | 78 int m_bpp; variable
|
D | grfmt_tiff.h | 128 int m_bpp; variable
|