Home
last modified time | relevance | path

Searched refs:dest_scan (Results 1 – 21 of 21) sorted by relevance

/external/pdfium/core/fxge/dib/
Dcfx_scanlinecompositor.cpp152 const uint8_t* dest_scan, in RGB_Blend() argument
160 back.red = dest_scan[2]; in RGB_Blend()
161 back.green = dest_scan[1]; in RGB_Blend()
162 back.blue = dest_scan[0]; in RGB_Blend()
186 void CompositeRow_AlphaToMask(uint8_t* dest_scan, in CompositeRow_AlphaToMask() argument
194 uint8_t back_alpha = *dest_scan; in CompositeRow_AlphaToMask()
196 *dest_scan = src_alpha; in CompositeRow_AlphaToMask()
198 *dest_scan = back_alpha + src_alpha - back_alpha * src_alpha / 255; in CompositeRow_AlphaToMask()
199 ++dest_scan; in CompositeRow_AlphaToMask()
204 void CompositeRow_Rgb2Mask(uint8_t* dest_scan, in CompositeRow_Rgb2Mask() argument
[all …]
Dcfx_dibsource.cpp112 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_1bppMask2Gray() local
113 memset(dest_scan, reset_gray, width); in ConvertBuffer_1bppMask2Gray()
117 *dest_scan = set_gray; in ConvertBuffer_1bppMask2Gray()
118 ++dest_scan; in ConvertBuffer_1bppMask2Gray()
131 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_8bppMask2Gray() local
133 memcpy(dest_scan, src_scan, width); in ConvertBuffer_8bppMask2Gray()
171 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_1bppPlt2Gray() local
172 memset(dest_scan, gray[0], width); in ConvertBuffer_1bppPlt2Gray()
176 *dest_scan = gray[1]; in ConvertBuffer_1bppPlt2Gray()
177 ++dest_scan; in ConvertBuffer_1bppPlt2Gray()
[all …]
Dcfx_dibitmap.cpp203 uint8_t* dest_scan = m_pBuffer.Get() + (dest_top + row) * m_Pitch; in TransferBitmap() local
208 dest_scan[(dest_left + col) / 8] |= 1 in TransferBitmap()
211 dest_scan[(dest_left + col) / 8] &= in TransferBitmap()
219 uint8_t* dest_scan = in TransferBitmap() local
223 memcpy(dest_scan, src_scan, width * Bpp); in TransferBitmap()
431 uint8_t* dest_scan = m_pBuffer.Get() + m_Pitch * row; in MultiplyAlpha() local
436 dest_scan[col] = 0; in MultiplyAlpha()
440 *dest_scan = (*dest_scan) * src_scan[col] / 255; in MultiplyAlpha()
441 dest_scan++; in MultiplyAlpha()
451 uint8_t* dest_scan = m_pBuffer.Get() + m_Pitch * row + 3; in MultiplyAlpha() local
[all …]
Dcstretchengine.cpp369 uint8_t* dest_scan = in ContinueStretchHorz() local
396 *dest_scan++ = static_cast<uint8_t>(dest_a >> 16); in ContinueStretchHorz()
414 *dest_scan++ = static_cast<uint8_t>(dest_a >> 16); in ContinueStretchHorz()
437 *dest_scan++ = static_cast<uint8_t>(dest_r >> 16); in ContinueStretchHorz()
470 *dest_scan++ = static_cast<uint8_t>(dest_b_c >> 16); in ContinueStretchHorz()
471 *dest_scan++ = static_cast<uint8_t>(dest_g_m >> 16); in ContinueStretchHorz()
472 *dest_scan++ = static_cast<uint8_t>(dest_r_y >> 16); in ContinueStretchHorz()
508 *dest_scan++ = static_cast<uint8_t>(dest_b_c >> 16); in ContinueStretchHorz()
509 *dest_scan++ = static_cast<uint8_t>(dest_g_m >> 16); in ContinueStretchHorz()
510 *dest_scan++ = static_cast<uint8_t>(dest_r_y >> 16); in ContinueStretchHorz()
[all …]
Dcfx_bitmapcomposer.cpp71 void CFX_BitmapComposer::DoCompose(uint8_t* dest_scan, in DoCompose() argument
88 m_Compositor.CompositeByteMaskLine(dest_scan, src_scan, dest_width, in DoCompose()
91 m_Compositor.CompositePalBitmapLine(dest_scan, src_scan, 0, dest_width, in DoCompose()
95 m_Compositor.CompositeRgbBitmapLine(dest_scan, src_scan, dest_width, in DoCompose()
115 uint8_t* dest_scan = in ComposeScanline() local
124 DoCompose(dest_scan, scanline, m_DestWidth, clip_scan, scan_extra_alpha, in ComposeScanline()
153 uint8_t* dest_scan = dest_buf; in ComposeScanlineV() local
156 *src_scan++ = dest_scan[j]; in ComposeScanlineV()
157 dest_scan += y_step; in ComposeScanlineV()
187 dest_scan = dest_buf; in ComposeScanlineV()
[all …]
Dcfx_filtereddib.cpp33 uint8_t* dest_scan, in DownSampleScanline() argument
39 m_pSrc->DownSampleScanline(line, dest_scan, dest_bpp, dest_width, bFlipX, in DownSampleScanline()
41 TranslateDownSamples(dest_scan, dest_scan, clip_width, dest_bpp); in DownSampleScanline()
Dcfx_scanlinecompositor.h30 void CompositeRgbBitmapLine(uint8_t* dest_scan,
37 void CompositePalBitmapLine(uint8_t* dest_scan,
45 void CompositeByteMaskLine(uint8_t* dest_scan,
51 void CompositeBitMaskLine(uint8_t* dest_scan,
Dcfx_filtereddib.h39 uint8_t* dest_scan,
Dcfx_bitmapcomposer.h49 void DoCompose(uint8_t* dest_scan,
Dcfx_dibsource.h40 uint8_t* dest_scan,
Dcfx_dibitmap.h35 uint8_t* dest_scan,
/external/pdfium/core/fxge/agg/
Dfx_agg_driver.cpp79 uint8_t* dest_scan = in RgbByteOrderCompositeRect() local
82 uint32_t* scan = reinterpret_cast<uint32_t*>(dest_scan); in RgbByteOrderCompositeRect()
87 *dest_scan++ = src_r; in RgbByteOrderCompositeRect()
88 *dest_scan++ = src_g; in RgbByteOrderCompositeRect()
89 *dest_scan++ = src_b; in RgbByteOrderCompositeRect()
97 uint8_t* dest_scan = pBuffer + row * pBitmap->GetPitch() + rect.left * Bpp; in RgbByteOrderCompositeRect() local
100 uint8_t back_alpha = dest_scan[3]; in RgbByteOrderCompositeRect()
102 FXARGB_SETRGBORDERDIB(dest_scan, in RgbByteOrderCompositeRect()
104 dest_scan += 4; in RgbByteOrderCompositeRect()
109 dest_scan[3] = dest_alpha; in RgbByteOrderCompositeRect()
[all …]
/external/pdfium/core/fpdfapi/render/
Dcpdf_dibsource.cpp847 void CPDF_DIBSource::TranslateScanline24bpp(uint8_t* dest_scan, in TranslateScanline24bpp() argument
862 *dest_scan++ = src_pos[2]; in TranslateScanline24bpp()
863 *dest_scan++ = src_pos[1]; in TranslateScanline24bpp()
864 *dest_scan++ = *src_pos; in TranslateScanline24bpp()
870 *dest_scan++ = src_pos[4]; in TranslateScanline24bpp()
871 *dest_scan++ = src_pos[2]; in TranslateScanline24bpp()
872 *dest_scan++ = *src_pos; in TranslateScanline24bpp()
889 dest_scan[dest_byte_pos] = B * 255 / max_data; in TranslateScanline24bpp()
890 dest_scan[dest_byte_pos + 1] = G * 255 / max_data; in TranslateScanline24bpp()
891 dest_scan[dest_byte_pos + 2] = R * 255 / max_data; in TranslateScanline24bpp()
[all …]
Dcpdf_dibsource.h56 uint8_t* dest_scan,
93 void TranslateScanline24bpp(uint8_t* dest_scan,
100 uint8_t* dest_scan,
109 uint8_t* dest_scan,
118 uint8_t* dest_scan,
Dcpdf_imagerenderer.cpp249 uint8_t* dest_scan = in CalculateDrawImage() local
255 dest_scan += 4; in CalculateDrawImage()
258 int orig = (*dest_scan - matte_b) * 255 / alpha + matte_b; in CalculateDrawImage()
259 *dest_scan++ = pdfium::clamp(orig, 0, 255); in CalculateDrawImage()
260 orig = (*dest_scan - matte_g) * 255 / alpha + matte_g; in CalculateDrawImage()
261 *dest_scan++ = pdfium::clamp(orig, 0, 255); in CalculateDrawImage()
262 orig = (*dest_scan - matte_r) * 255 / alpha + matte_r; in CalculateDrawImage()
263 *dest_scan++ = pdfium::clamp(orig, 0, 255); in CalculateDrawImage()
264 dest_scan++; in CalculateDrawImage()
/external/pdfium/core/fxge/
Dcfx_renderdevice.cpp228 uint8_t* dest_scan = dest_buf + dest_row * dest_pitch + start_col * Bpp; in DrawNormalTextHelper() local
233 Merge(src_scan[2], r, a, &dest_scan[2]); in DrawNormalTextHelper()
234 Merge(src_scan[1], g, a, &dest_scan[1]); in DrawNormalTextHelper()
235 Merge(src_scan[0], b, a, &dest_scan[0]); in DrawNormalTextHelper()
237 MergeGammaAdjustBgr(&src_scan[0], r, g, b, a, &dest_scan[0]); in DrawNormalTextHelper()
239 SetAlpha(has_alpha, dest_scan); in DrawNormalTextHelper()
240 NextPixel(&src_scan, &dest_scan, Bpp); in DrawNormalTextHelper()
245 MergeGammaAdjust(src_scan[1], r, a, &dest_scan[2]); in DrawNormalTextHelper()
246 MergeGammaAdjust(src_scan[0], g, a, &dest_scan[1]); in DrawNormalTextHelper()
248 MergeGammaAdjust(src_scan[-1], b, a, &dest_scan[0]); in DrawNormalTextHelper()
[all …]
Dcfx_cliprgn.cpp60 uint8_t* dest_scan = in IntersectMaskRect() local
65 dest_scan[col - m_Box.left] = src_scan[col - mask_rect.left]; in IntersectMaskRect()
/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpeg.cpp568 uint8_t* dest_scan = line_buf; local
571 dest_scan[0] = src_scan[2];
572 dest_scan[1] = src_scan[1];
573 dest_scan[2] = src_scan[0];
574 dest_scan += 3;
579 *dest_scan++ = ~*src_scan++;
/external/pdfium/core/fxge/win32/
Dcfx_psrenderer.cpp473 uint8_t* dest_scan = output_buf + row * src_pitch; in DrawDIBits() local
476 *dest_scan++ = src_scan[2]; in DrawDIBits()
477 *dest_scan++ = src_scan[1]; in DrawDIBits()
478 *dest_scan++ = *src_scan; in DrawDIBits()
482 memcpy(dest_scan, src_scan, src_pitch); in DrawDIBits()
Dfx_win32_gdipext.cpp556 LPBYTE dest_scan = dest_buf + dest_y * result_pitch; in StretchMonoToGray() local
576 dest_scan[dest_x] = 255 - sum / area_unit; in StretchMonoToGray()
/external/pdfium/core/fxge/skia/
Dfx_skia_device.cpp82 uint8_t* dest_scan = buffer + (dest_top + row) * pitch + dest_left * Bpp; in RgbByteOrderTransferBitmap() local
87 FXARGB_SETDIB(dest_scan, FXARGB_MAKE(src_scan[3], src_scan[0], in RgbByteOrderTransferBitmap()
89 dest_scan += 4; in RgbByteOrderTransferBitmap()
94 *dest_scan++ = src_scan[2]; in RgbByteOrderTransferBitmap()
95 *dest_scan++ = src_scan[1]; in RgbByteOrderTransferBitmap()
96 *dest_scan++ = src_scan[0]; in RgbByteOrderTransferBitmap()
108 uint8_t* dest_scan = dest_buf + row * pitch; in RgbByteOrderTransferBitmap() local
112 *dest_scan++ = src_scan[2]; in RgbByteOrderTransferBitmap()
113 *dest_scan++ = src_scan[1]; in RgbByteOrderTransferBitmap()
114 *dest_scan++ = src_scan[0]; in RgbByteOrderTransferBitmap()
[all …]