/external/pdfium/core/fxge/win32/ |
D | fx_win32_dib.cpp | 15 const RetainPtr<CFX_DIBitmap>& pBitmap) { in GetBitmapInfo() argument 17 if (pBitmap->GetBPP() == 1 || pBitmap->GetBPP() == 8) in GetBitmapInfo() 18 len += sizeof(DWORD) * (int)(1 << pBitmap->GetBPP()); in GetBitmapInfo() 27 pbmih->biBitCount = pBitmap->GetBPP(); in GetBitmapInfo() 29 pbmih->biHeight = -(int)pBitmap->GetHeight(); in GetBitmapInfo() 31 pbmih->biWidth = pBitmap->GetWidth(); in GetBitmapInfo() 32 if (pBitmap->GetBPP() == 8) { in GetBitmapInfo() 34 if (pBitmap->GetPalette()) { in GetBitmapInfo() 36 pPalette[i] = pBitmap->GetPalette()[i]; in GetBitmapInfo() 44 if (pBitmap->GetBPP() == 1) { in GetBitmapInfo() [all …]
|
D | win32_int.h | 39 const RetainPtr<CFX_DIBitmap>& pBitmap, 110 bool GDI_SetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, 114 bool GDI_StretchDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, 120 bool GDI_StretchBitMask(const RetainPtr<CFX_DIBitmap>& pBitmap, 145 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, 148 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 154 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 163 bool StartDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 188 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 194 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, [all …]
|
D | fx_win32_device.cpp | 773 RetainPtr<CFX_DIBitmap> pBitmap = pBitmap1->FlipImage(false, true); in GDI_SetDIBits() local 774 if (!pBitmap) in GDI_SetDIBits() 777 if (pBitmap->IsCmykImage() && !pBitmap->ConvertFormat(FXDIB_Rgb)) in GDI_SetDIBits() 780 LPBYTE pBuffer = pBitmap->GetBuffer(); in GDI_SetDIBits() 781 ByteString info = CFX_WindowsDIB::GetBitmapInfo(pBitmap); in GDI_SetDIBits() 784 dst_rect.Intersect(0, 0, pBitmap->GetWidth(), pBitmap->GetHeight()); in GDI_SetDIBits() 793 RetainPtr<CFX_DIBitmap> pBitmap = pBitmap1; in GDI_SetDIBits() local 794 if (pBitmap->IsCmykImage()) { in GDI_SetDIBits() 795 pBitmap = pBitmap->CloneConvert(FXDIB_Rgb); in GDI_SetDIBits() 796 if (!pBitmap) in GDI_SetDIBits() [all …]
|
D | fx_win32_print.cpp | 95 RetainPtr<CFX_DIBitmap> pBitmap = temp.GetBitmap(); in SetDIBits() local 96 if (!pBitmap) in SetDIBits() 99 return GDI_SetDIBits(pBitmap, src_rect, left, top); in SetDIBits() 132 RetainPtr<CFX_DIBitmap> pBitmap = temp.GetBitmap(); in StretchDIBits() local 133 if (!pBitmap) in StretchDIBits() 135 return GDI_StretchBitMask(pBitmap, dest_left, dest_top, dest_width, in StretchDIBits() 158 RetainPtr<CFX_DIBitmap> pBitmap = temp.GetBitmap(); in StretchDIBits() local 159 if (!pBitmap) in StretchDIBits() 161 return GDI_StretchDIBits(pBitmap, dest_left, dest_top, dest_width, in StretchDIBits() 463 bool CPSPrinterDriver::SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, in SetDIBits() argument [all …]
|
D | fx_win32_gdipext.cpp | 317 const RetainPtr<CFX_DIBitmap>& pBitmap, in OutputImage() argument 325 if (pBitmap->GetBPP() == 1 && (pSrcRect->left % 8)) { in OutputImage() 327 RetainPtr<CFX_DIBitmap> pCloned = pBitmap->Clone(pSrcRect); in OutputImage() 334 int src_pitch = pBitmap->GetPitch(); in OutputImage() 335 uint8_t* scan0 = pBitmap->GetBuffer() + pSrcRect->top * src_pitch + in OutputImage() 336 pBitmap->GetBPP() * pSrcRect->left / 8; in OutputImage() 338 switch (pBitmap->GetFormat()) { in OutputImage() 359 pal[i + 2] = pBitmap->GetPaletteArgb(i); in OutputImage() 648 Gdiplus::GpBitmap* pBitmap; member 654 Gdiplus::GpBitmap* pBitmap; in LoadDIBitmap() local [all …]
|
D | cfx_psrenderer.h | 78 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 82 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 89 bool DrawDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
|
/external/pdfium/core/fxge/dib/ |
D | cfx_imagerenderer.cpp | 96 RetainPtr<CFX_DIBitmap> pBitmap = m_pTransformer->DetachBitmap(); in Continue() local 97 if (!pBitmap || !pBitmap->GetBuffer()) in Continue() 100 if (pBitmap->IsAlphaMask()) { in Continue() 105 pBitmap->GetWidth(), pBitmap->GetHeight(), pBitmap, m_MaskColor, 0, 0, in Continue() 109 pBitmap->MultiplyAlpha(m_BitmapAlpha); in Continue() 112 pBitmap->GetWidth(), pBitmap->GetHeight(), pBitmap, 0, 0, in Continue()
|
D | cfx_bitmapstorer.cpp | 21 void CFX_BitmapStorer::Replace(RetainPtr<CFX_DIBitmap>&& pBitmap) { in Replace() argument 22 m_pBitmap = std::move(pBitmap); in Replace() 46 auto pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); in SetInfo() local 47 if (!pBitmap->Create(width, height, src_format)) in SetInfo() 51 pBitmap->SetPalette(pSrcPalette); in SetInfo() 53 m_pBitmap = std::move(pBitmap); in SetInfo()
|
D | cfx_dibitmap_unittest.cpp | 10 auto pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); in TEST() local 11 EXPECT_FALSE(pBitmap->Create(400, 300, FXDIB_Invalid)); in TEST() 13 pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); in TEST() 14 EXPECT_TRUE(pBitmap->Create(400, 300, FXDIB_1bppRgb)); in TEST()
|
/external/pdfium/core/fxge/ |
D | cfx_renderdevice.h | 65 void SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap); 99 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, int left, int top); 100 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, int left, int top) { in SetDIBits() argument 101 return SetDIBitsWithBlend(pBitmap, left, top, BlendMode::kNormal); in SetDIBits() 103 bool SetDIBitsWithBlend(const RetainPtr<CFX_DIBBase>& pBitmap, 107 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, in StretchDIBits() argument 112 return StretchDIBitsWithFlagsAndBlend(pBitmap, left, top, dest_width, in StretchDIBits() 116 bool StretchDIBitsWithFlagsAndBlend(const RetainPtr<CFX_DIBBase>& pBitmap, 123 bool SetBitMask(const RetainPtr<CFX_DIBBase>& pBitmap, 127 bool StretchBitMask(const RetainPtr<CFX_DIBBase>& pBitmap, [all …]
|
D | renderdevicedriver_iface.h | 71 virtual bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, 75 virtual bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 81 virtual bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 90 virtual bool StartDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 112 virtual bool SetBitsWithMask(const RetainPtr<CFX_DIBBase>& pBitmap,
|
D | cfx_renderdevice.cpp | 436 void CFX_RenderDevice::SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap) { in SetBitmap() argument 437 m_pBitmap = pBitmap; in SetBitmap() 714 bool CFX_RenderDevice::GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, in GetDIBits() argument 718 m_pDeviceDriver->GetDIBits(pBitmap, left, top); in GetDIBits() 725 bool CFX_RenderDevice::SetDIBitsWithBlend(const RetainPtr<CFX_DIBBase>& pBitmap, in SetDIBitsWithBlend() argument 729 ASSERT(!pBitmap->IsAlphaMask()); in SetDIBitsWithBlend() 730 FX_RECT dest_rect(left, top, left + pBitmap->GetWidth(), in SetDIBitsWithBlend() 731 top + pBitmap->GetHeight()); in SetDIBitsWithBlend() 740 (!pBitmap->HasAlpha() || (m_RenderCaps & FXRC_ALPHA_IMAGE))) { in SetDIBitsWithBlend() 741 return m_pDeviceDriver->SetDIBits(pBitmap, 0, src_rect, dest_rect.left, in SetDIBitsWithBlend() [all …]
|
D | cfx_defaultrenderdevice.h | 20 bool Attach(const RetainPtr<CFX_DIBitmap>& pBitmap, 34 bool SetBitsWithMask(const RetainPtr<CFX_DIBBase>& pBitmap,
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_type3cache.cpp | 62 int DetectFirstLastScan(const RetainPtr<CFX_DIBitmap>& pBitmap, bool bFirst) { in DetectFirstLastScan() argument 63 int height = pBitmap->GetHeight(); in DetectFirstLastScan() 64 int pitch = pBitmap->GetPitch(); in DetectFirstLastScan() 65 int width = pBitmap->GetWidth(); in DetectFirstLastScan() 66 int bpp = pBitmap->GetBPP(); in DetectFirstLastScan() 69 uint8_t* pBuf = pBitmap->GetBuffer(); in DetectFirstLastScan() 130 RetainPtr<CFX_DIBitmap> pBitmap = pChar->GetBitmap(); in RenderGlyph() local 136 int top_line = DetectFirstLastScan(pBitmap, true); in RenderGlyph() 137 int bottom_line = DetectFirstLastScan(pBitmap, false); in RenderGlyph() 138 if (top_line == 0 && bottom_line == pBitmap->GetHeight() - 1) { in RenderGlyph() [all …]
|
D | cpdf_rendershading.cpp | 86 void DrawAxialShading(const RetainPtr<CFX_DIBitmap>& pBitmap, in DrawAxialShading() argument 92 ASSERT(pBitmap->GetFormat() == FXDIB_Argb); in DrawAxialShading() 117 int width = pBitmap->GetWidth(); in DrawAxialShading() 118 int height = pBitmap->GetHeight(); in DrawAxialShading() 126 int pitch = pBitmap->GetPitch(); in DrawAxialShading() 130 reinterpret_cast<uint32_t*>(pBitmap->GetBuffer() + row * pitch); in DrawAxialShading() 154 void DrawRadialShading(const RetainPtr<CFX_DIBitmap>& pBitmap, in DrawRadialShading() argument 160 ASSERT(pBitmap->GetFormat() == FXDIB_Argb); in DrawRadialShading() 196 int width = pBitmap->GetWidth(); in DrawRadialShading() 197 int height = pBitmap->GetHeight(); in DrawRadialShading() [all …]
|
/external/pdfium/core/fxge/apple/ |
D | fx_quartz_device.cpp | 24 void* CQuartz2D::CreateGraphics(const RetainPtr<CFX_DIBitmap>& pBitmap) { in CreateGraphics() argument 25 if (!pBitmap) in CreateGraphics() 28 switch (pBitmap->GetFormat()) { in CreateGraphics() 38 pBitmap->GetBuffer(), pBitmap->GetWidth(), pBitmap->GetHeight(), 8, in CreateGraphics() 39 pBitmap->GetPitch(), colorSpace, bmpInfo); in CreateGraphics()
|
/external/pdfium/core/fxge/skia/ |
D | fx_skia_device.h | 28 CFX_SkiaDeviceDriver(const RetainPtr<CFX_DIBitmap>& pBitmap, 82 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, 88 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 95 bool SetBitsWithMask(const RetainPtr<CFX_DIBBase>& pBitmap, 107 bool StretchDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 117 bool StartDIBits(const RetainPtr<CFX_DIBBase>& pBitmap, 128 bool DrawBitsWithMask(const RetainPtr<CFX_DIBBase>& pBitmap,
|
D | fx_skia_device.cpp | 65 void RgbByteOrderTransferBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap, in RgbByteOrderTransferBitmap() argument 73 if (!pBitmap) in RgbByteOrderTransferBitmap() 76 if (!pBitmap->GetOverlapRect(dest_left, dest_top, width, height, in RgbByteOrderTransferBitmap() 82 int Bpp = pBitmap->GetBPP() / 8; in RgbByteOrderTransferBitmap() 83 FXDIB_Format dest_format = pBitmap->GetFormat(); in RgbByteOrderTransferBitmap() 85 int pitch = pBitmap->GetPitch(); in RgbByteOrderTransferBitmap() 86 uint8_t* buffer = pBitmap->GetBuffer(); in RgbByteOrderTransferBitmap() 1596 const RetainPtr<CFX_DIBitmap>& pBitmap, in CFX_SkiaDeviceDriver() argument 1600 : m_pBitmap(pBitmap), in CFX_SkiaDeviceDriver() 1611 ASSERT(pBitmap->GetBPP() == 8 || pBitmap->GetBPP() == 32); in CFX_SkiaDeviceDriver() [all …]
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_image.cpp | 167 void CPDF_Image::SetImage(const RetainPtr<CFX_DIBitmap>& pBitmap) { in SetImage() argument 168 int32_t BitmapWidth = pBitmap->GetWidth(); in SetImage() 169 int32_t BitmapHeight = pBitmap->GetHeight(); in SetImage() 175 const int32_t bpp = pBitmap->GetBPP(); in SetImage() 187 if (!pBitmap->IsAlphaMask()) { in SetImage() 189 ArgbDecode(pBitmap->GetPaletteArgb(0)); in SetImage() 191 ArgbDecode(pBitmap->GetPaletteArgb(1)); in SetImage() 222 size_t palette_size = pBitmap->GetPaletteSize(); in SetImage() 233 uint32_t argb = pBitmap->GetPaletteArgb(i); in SetImage() 258 if (pBitmap->HasAlpha()) in SetImage() [all …]
|
/external/pdfium/core/fxge/agg/ |
D | fx_agg_driver.cpp | 49 void RgbByteOrderSetPixel(const RetainPtr<CFX_DIBitmap>& pBitmap, in RgbByteOrderSetPixel() argument 53 if (x < 0 || x >= pBitmap->GetWidth() || y < 0 || y >= pBitmap->GetHeight()) in RgbByteOrderSetPixel() 56 uint8_t* pos = pBitmap->GetBuffer() + y * pBitmap->GetPitch() + in RgbByteOrderSetPixel() 57 x * pBitmap->GetBPP() / 8; in RgbByteOrderSetPixel() 58 if (pBitmap->GetFormat() == FXDIB_Argb) { in RgbByteOrderSetPixel() 69 void RgbByteOrderCompositeRect(const RetainPtr<CFX_DIBitmap>& pBitmap, in RgbByteOrderCompositeRect() argument 80 rect.Intersect(0, 0, pBitmap->GetWidth(), pBitmap->GetHeight()); in RgbByteOrderCompositeRect() 85 int Bpp = pBitmap->GetBPP() / 8; in RgbByteOrderCompositeRect() 87 uint8_t* pBuffer = pBitmap->GetBuffer(); in RgbByteOrderCompositeRect() 91 pBuffer + row * pBitmap->GetPitch() + rect.left * Bpp; in RgbByteOrderCompositeRect() [all …]
|
D | fx_agg_driver.h | 36 CFX_AggDeviceDriver(const RetainPtr<CFX_DIBitmap>& pBitmap, 68 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, 72 bool SetDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
|
/external/pdfium/xfa/fxfa/ |
D | cxfa_ffwidget.cpp | 188 RetainPtr<CFX_DIBitmap> pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); in XFA_LoadImageFromBuffer() local 189 pBitmap->Create(pProgressiveDecoder->GetWidth(), in XFA_LoadImageFromBuffer() 191 pBitmap->Clear(0xffffffff); in XFA_LoadImageFromBuffer() 197 pBitmap = nullptr; in XFA_LoadImageFromBuffer() 198 return pBitmap; in XFA_LoadImageFromBuffer() 201 status = pProgressiveDecoder->StartDecode(pBitmap, 0, 0, pBitmap->GetWidth(), in XFA_LoadImageFromBuffer() 202 pBitmap->GetHeight()); in XFA_LoadImageFromBuffer() 204 pBitmap = nullptr; in XFA_LoadImageFromBuffer() 205 return pBitmap; in XFA_LoadImageFromBuffer() 211 pBitmap = nullptr; in XFA_LoadImageFromBuffer() [all …]
|
D | cxfa_imagerenderer.cpp | 98 RetainPtr<CFX_DIBitmap> pBitmap = m_pTransformer->DetachBitmap(); in Continue() local 99 if (!pBitmap) in Continue() 102 if (pBitmap->IsAlphaMask()) { in Continue() 103 m_pDevice->SetBitMask(pBitmap, m_pTransformer->result().left, in Continue() 106 m_pDevice->SetDIBitsWithBlend(pBitmap, m_pTransformer->result().left, in Continue()
|
/external/pdfium/fpdfsdk/ |
D | fpdf_view.cpp | 503 RetainPtr<CFX_DIBitmap> pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); in FPDF_RenderPage() local 506 pBitmap->Create(size_x, size_y, FXDIB_Argb); in FPDF_RenderPage() 507 pBitmap->Clear(0x00ffffff); in FPDF_RenderPage() 510 pDevice->Attach(pBitmap, false, nullptr, false); in FPDF_RenderPage() 526 memset(pDst->GetBuffer(), -1, pBitmap->GetPitch() * size_y); in FPDF_RenderPage() 527 pDst->CompositeBitmap(0, 0, size_x, size_y, pBitmap, 0, 0, in FPDF_RenderPage() 534 WinDC.SetDIBits(pBitmap, 0, 0); in FPDF_RenderPage() 545 pBitmap, mask_boxes[i], &bitmap_areas[i]); in FPDF_RenderPage() 598 RetainPtr<CFX_DIBitmap> pBitmap(CFXDIBitmapFromFPDFBitmap(bitmap)); in FPDF_RenderPageBitmap() local 599 pDevice->Attach(pBitmap, !!(flags & FPDF_REVERSE_BYTE_ORDER), nullptr, false); in FPDF_RenderPageBitmap() [all …]
|
D | fpdf_progressive.cpp | 64 RetainPtr<CFX_DIBitmap> pBitmap(CFXDIBitmapFromFPDFBitmap(bitmap)); in FPDF_RenderPageBitmap_Start() local 68 pDevice->Attach(pBitmap, !!(flags & FPDF_REVERSE_BYTE_ORDER), nullptr, false); in FPDF_RenderPageBitmap_Start() 77 pBitmap->UnPreMultiply(); in FPDF_RenderPageBitmap_Start()
|