Home
last modified time | relevance | path

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

/external/opencv/otherlibs/highgui/
Dgrfmt_bmp.cpp110 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 …]
Dgrfmt_sunras.cpp105 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 …]
Dgrfmt_pxm.cpp157 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()
Dgrfmt_tiff.cpp372 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 …]
Dgrfmt_bmp.h72 int m_bpp; variable
Dgrfmt_pxm.h65 int m_bpp; variable
Dgrfmt_sunras.h78 int m_bpp; variable
Dgrfmt_tiff.h128 int m_bpp; variable