Lines Matching refs:m_bpc
100 m_bpc = 0;
178 FX_DWORD src_pitch = m_bpc;
179 if (m_bpc != 0 && m_nComponents != 0) {
204 m_bpc = 1;
211 m_bpc = 1;
214 } else if (m_bpc * m_nComponents == 1) {
216 } else if (m_bpc * m_nComponents <= 8) {
221 if (!m_bpc || !m_nComponents) {
266 m_bpc = 1;
269 } else if (m_bpc * m_nComponents == 1) {
271 } else if (m_bpc * m_nComponents <= 8) {
276 if (!m_bpc || !m_nComponents) {
333 FX_DWORD src_pitch = m_bpc;
334 if (m_bpc != 0 && m_nComponents != 0) {
359 m_bpc = 1;
492 m_bpc = m_nComponents = 1;
511 m_bpc = m_pDict->GetInteger(FX_BSTRC("BitsPerComponent"));
525 if (m_bpc == 0) {
528 int max_data = (1 << m_bpc) - 1;
598 m_bpc = bpc;
604 m_pDecoder = FPDFAPI_CreateFlateDecoder(src_data, src_size, m_Width, m_Height, m_nComponents, m_bpc, pParams);
618 m_pDecoder = CPDF_ModuleMgr::Get()->GetCodecModule()->GetBasicModule()->CreateRunLengthDecoder(src_data, src_size, m_Width, m_Height, m_nComponents, m_bpc);
621 int requested_pitch = (m_Width * m_nComponents * m_bpc + 7) / 8;
706 if (m_pColorSpace && m_pColorSpace->GetFamily() == PDFCS_INDEXED && m_bpc < 8) {
707 int scale = 8 - m_bpc;
716 m_bpc = 8;
746 m_bpc = 1;
856 if (m_bpc * m_nComponents > 8) {
862 if (m_bpc * m_nComponents == 1) {
886 if (m_pColorSpace == CPDF_ColorSpace::GetStockCS(PDFCS_DEVICEGRAY) && m_bpc == 8 && m_bDefaultDecode) {
888 int palette_count = 1 << (m_bpc * m_nComponents);
894 int encoded_component = color_data % (1 << m_bpc);
895 color_data /= 1 << m_bpc;
917 FX_DWORD bpc = m_bpc;
948 int max_data = (1 << m_bpc) - 1;
951 if (m_bpc == 16) {
960 } else if (m_bpc == 8) {
992 } else if (m_bpc == 8) {
1002 if (m_bpc == 8) {
1067 FX_DWORD src_pitch = (m_Width * m_bpc * m_nComponents + 7) / 8;
1086 if (m_bpc * m_nComponents == 1) {
1118 if (m_bpc * m_nComponents <= 8) {
1119 if (m_bpc == 8) {
1126 int data = _GetBits8(pSrcLine, src_bit_pos, m_bpc);
1127 color_index |= data << (color * m_bpc);
1128 src_bit_pos += m_bpc;
1155 if (m_nComponents == 3 && m_bpc == 8) {
1196 FX_DWORD src_pitch = (src_width * m_bpc * m_nComponents + 7) / 8;
1207 int orig_Bpp = m_bpc * m_nComponents / 8;
1214 if (m_bpc * m_nComponents == 1) {
1282 } else if (m_bpc * m_nComponents <= 8) {
1283 if (m_bpc < 8) {
1288 int data = _GetBits8(pSrcLine, src_bit_pos, m_bpc);
1289 color_index |= data << (color * m_bpc);
1290 src_bit_pos += m_bpc;
1339 FX_FLOAT orig_Not8Bpp = (FX_FLOAT)m_bpc * (FX_FLOAT)m_nComponents / 8.0f;
1340 FX_FLOAT unit_To8Bpc = 255.0f / ((1 << m_bpc) - 1);
1346 if (m_bpc % 8 == 0) {
1365 if (m_bpc < 8) {
1370 int value = (1 << m_bpc) - 1;
1372 temp[i] = (FX_BYTE)(_GetBits8(pSrcPixel, src_bit_pos, m_bpc) * unit_To8Bpc);
1373 src_bit_pos += m_bpc;
1386 if (m_nComponents == 3 && m_bpc == 8) {