Home
last modified time | relevance | path

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

/external/pdfium/core/fxge/dib/
Dcfx_dibitmap.cpp594 *pos = FXRGB2GRAY(FXARGB_R(color), FXARGB_G(color), FXARGB_B(color)); in SetPixel()
700 int gray = FXRGB2GRAY(FXARGB_R(m_pPalette.get()[i]), in ConvertRGBColorScale()
714 int gray = FXRGB2GRAY(scanline[2], scanline[1], scanline[0]); in ConvertRGBColorScale()
727 int gray = FXRGB2GRAY(scanline[2], scanline[1], scanline[0]); in ConvertRGBColorScale()
761 int gray = 255 - FXRGB2GRAY(r, g, b); in ConvertCMYKColorScale()
780 *scanline++ = 255 - FXRGB2GRAY(r, g, b); in ConvertCMYKColorScale()
793 int gray = 255 - FXRGB2GRAY(r, g, b); in ConvertCMYKColorScale()
1010 gray = FXRGB2GRAY(r, g, b); in CompositeRect()
1012 gray = (uint8_t)FXRGB2GRAY((int)color_p[2], color_p[1], color_p[0]); in CompositeRect()
Dcfx_dibsource.cpp167 gray[0] = FXRGB2GRAY(reset_r, reset_g, reset_b); in ConvertBuffer_1bppPlt2Gray()
168 gray[1] = FXRGB2GRAY(set_r, set_g, set_b); in ConvertBuffer_1bppPlt2Gray()
199 gray[i] = FXRGB2GRAY(r, g, b); in ConvertBuffer_8bppPlt2Gray()
203 gray[i] = FXRGB2GRAY(FXARGB_R(src_plt[i]), FXARGB_G(src_plt[i]), in ConvertBuffer_8bppPlt2Gray()
238 *dest_scan++ = FXRGB2GRAY(r, g, b); in ConvertBuffer_RgbOrCmyk2Gray()
248 *dest_scan++ = FXRGB2GRAY(src_scan[2], src_scan[1], src_scan[0]); in ConvertBuffer_RgbOrCmyk2Gray()
Dcfx_scanlinecompositor.cpp220 return FXRGB2GRAY(src_scan[2], src_scan[1], *src_scan); in GetGray()
2886 m_MaskRed = FXRGB2GRAY(r, g, b); in InitSourceMask()
2888 m_MaskRed = FXRGB2GRAY(m_MaskRed, m_MaskGreen, m_MaskBlue); in InitSourceMask()
2927 *gray_pal++ = FXRGB2GRAY(r, g, b); in InitSourcePalette()
2933 FXRGB2GRAY(FXARGB_R(argb), FXARGB_G(argb), FXARGB_B(argb)); in InitSourcePalette()
/external/pdfium/core/fpdfapi/render/
Dcpdf_renderoptions.cpp35 int gray = FXRGB2GRAY(r, g, b); in TranslateColor()
Dcpdf_renderstatus.cpp2684 *dest_pos++ = transfers[FXRGB2GRAY(src_pos[2], src_pos[1], *src_pos)]; in LoadSMask()
/external/pdfium/core/fxge/
Dfx_dib.h109 #define FXRGB2GRAY(r, g, b) (((b)*11 + (g)*59 + (r)*30) / 100) macro
/external/pdfium/core/fxcodec/codec/
Dfx_codec_progress.cpp663 FXRGB2GRAY(FXARGB_R(argb), FXARGB_G(argb), FXARGB_B(argb)); in GifInputRecordPositionBuf()
1520 (uint8_t)FXRGB2GRAY((des_r >> 16), (des_g >> 16), (des_b >> 16)); in ReSampleScanline()
1534 (uint8_t)FXRGB2GRAY((des_r >> 16), (des_g >> 16), (des_b >> 16)); in ReSampleScanline()
1554 (uint8_t)FXRGB2GRAY((des_r >> 16), (des_g >> 16), (des_b >> 16)); in ReSampleScanline()
2317 *des_line++ = FXRGB2GRAY(r, g, b); in TifContinueDecode()
/external/pdfium/core/fxge/agg/
Dfx_agg_driver.cpp909 m_Gray = FXRGB2GRAY(FXARGB_R(color), FXARGB_G(color), FXARGB_B(color)); in Init()