Home
last modified time | relevance | path

Searched refs:pBitmap (Results 1 – 25 of 38) sorted by relevance

12

/external/pdfium/core/fxge/win32/
Dfx_win32_dib.cpp15 const RetainPtr<CFX_DIBitmap>& pBitmap) { in GetBitmapInfo() argument
18 if (pBitmap->GetBPP() == 1 || pBitmap->GetBPP() == 8) { in GetBitmapInfo()
19 len += sizeof(DWORD) * (int)(1 << pBitmap->GetBPP()); in GetBitmapInfo()
24 pbmih->biBitCount = pBitmap->GetBPP(); in GetBitmapInfo()
26 pbmih->biHeight = -(int)pBitmap->GetHeight(); in GetBitmapInfo()
28 pbmih->biWidth = pBitmap->GetWidth(); in GetBitmapInfo()
29 if (pBitmap->GetBPP() == 8) { in GetBitmapInfo()
31 if (pBitmap->GetPalette()) { in GetBitmapInfo()
33 pPalette[i] = pBitmap->GetPalette()[i]; in GetBitmapInfo()
41 if (pBitmap->GetBPP() == 1) { in GetBitmapInfo()
[all …]
Dwin32_int.h41 const RetainPtr<CFX_DIBitmap>& pBitmap,
50 const RetainPtr<CFX_DIBitmap>& pBitmap,
103 bool GdipCreateBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap, void** bitmap);
162 bool GDI_SetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
166 bool GDI_StretchDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
172 bool GDI_StretchBitMask(const RetainPtr<CFX_DIBitmap>& pBitmap,
195 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
198 bool SetDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
204 bool StretchDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
213 bool StartDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
[all …]
Dfx_win32_device.cpp784 RetainPtr<CFX_DIBitmap> pBitmap = pBitmap1->FlipImage(false, true); in GDI_SetDIBits() local
785 if (!pBitmap) in GDI_SetDIBits()
788 if (pBitmap->IsCmykImage() && !pBitmap->ConvertFormat(FXDIB_Rgb)) in GDI_SetDIBits()
792 LPBYTE pBuffer = pBitmap->GetBuffer(); in GDI_SetDIBits()
793 ByteString info = CFX_WindowsDIB::GetBitmapInfo(pBitmap); in GDI_SetDIBits()
796 dst_rect.Intersect(0, 0, pBitmap->GetWidth(), pBitmap->GetHeight()); in GDI_SetDIBits()
803 RetainPtr<CFX_DIBitmap> pBitmap = pBitmap1; in GDI_SetDIBits() local
804 if (pBitmap->IsCmykImage()) { in GDI_SetDIBits()
805 pBitmap = pBitmap->CloneConvert(FXDIB_Rgb); in GDI_SetDIBits()
806 if (!pBitmap) in GDI_SetDIBits()
[all …]
Dfx_win32_print.cpp92 RetainPtr<CFX_DIBitmap> pBitmap = temp.GetBitmap(); in SetDIBits() local
93 if (!pBitmap) in SetDIBits()
96 return GDI_SetDIBits(pBitmap, pSrcRect, left, top); in SetDIBits()
129 RetainPtr<CFX_DIBitmap> pBitmap = temp.GetBitmap(); in StretchDIBits() local
130 if (!pBitmap) in StretchDIBits()
132 return GDI_StretchBitMask(pBitmap, dest_left, dest_top, dest_width, in StretchDIBits()
155 RetainPtr<CFX_DIBitmap> pBitmap = temp.GetBitmap(); in StretchDIBits() local
156 if (!pBitmap) in StretchDIBits()
158 return GDI_StretchDIBits(pBitmap, dest_left, dest_top, dest_width, in StretchDIBits()
442 bool CPSPrinterDriver::SetDIBits(const RetainPtr<CFX_DIBSource>& pBitmap, in SetDIBits() argument
[all …]
Dfx_win32_gdipext.cpp584 const RetainPtr<CFX_DIBitmap>& pBitmap, in OutputImageMask() argument
591 ASSERT(pBitmap->GetBPP() == 1); in OutputImageMask()
594 int src_width = pBitmap->GetWidth(), src_height = pBitmap->GetHeight(); in OutputImageMask()
595 int src_pitch = pBitmap->GetPitch(); in OutputImageMask()
596 uint8_t* scan0 = pBitmap->GetBuffer(); in OutputImageMask()
631 StretchMonoToGray(dest_width, dest_height, pBitmap, &image_clip); in OutputImageMask()
634 pBitmap->StretchTo(dest_width, dest_height, false, &image_clip); in OutputImageMask()
672 const RetainPtr<CFX_DIBitmap>& pBitmap, in OutputImage() argument
681 if (pBitmap->GetBPP() == 1 && (pSrcRect->left % 8)) { in OutputImage()
683 RetainPtr<CFX_DIBitmap> pCloned = pBitmap->Clone(pSrcRect); in OutputImage()
[all …]
Dfx_win32_dwrite.cpp106 CDwGdiTextRenderer(const RetainPtr<CFX_DIBitmap>& pBitmap,
183 bool CDWriteExt::DwCreateRenderingTarget(const RetainPtr<CFX_DIBitmap>& pBitmap, in DwCreateRenderingTarget() argument
185 if (pBitmap->GetFormat() > FXDIB_Argb) { in DwCreateRenderingTarget()
198 nullptr, pBitmap->GetWidth(), pBitmap->GetHeight(), &pBitmapRenderTarget); in DwCreateRenderingTarget()
213 new CDwGdiTextRenderer(pBitmap, pBitmapRenderTarget, pRenderingParams); in DwCreateRenderingTarget()
398 const RetainPtr<CFX_DIBitmap>& pBitmap, in CDwGdiTextRenderer() argument
401 : pBitmap_(pBitmap), in CDwGdiTextRenderer()
Dcfx_psrenderer.h55 bool SetDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
59 bool StretchDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
66 bool DrawDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
/external/pdfium/core/fxge/dib/
Dcfx_imagerenderer.cpp98 RetainPtr<CFX_DIBitmap> pBitmap = m_pTransformer->DetachBitmap(); in Continue() local
99 if (!pBitmap || !pBitmap->GetBuffer()) in Continue()
102 if (pBitmap->IsAlphaMask()) { in Continue()
113 pBitmap->GetWidth(), pBitmap->GetHeight(), pBitmap, m_MaskColor, 0, 0, in Continue()
117 pBitmap->MultiplyAlpha(m_BitmapAlpha); in Continue()
120 pBitmap->GetWidth(), pBitmap->GetHeight(), pBitmap, 0, 0, m_BlendType, in Continue()
Dcfx_bitmapstorer.cpp21 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()
/external/pdfium/core/fxge/
Dcfx_renderdevice.h118 void SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap);
152 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, int left, int top);
153 bool SetDIBits(const RetainPtr<CFX_DIBSource>& pBitmap, int left, int top) { in SetDIBits() argument
154 return SetDIBitsWithBlend(pBitmap, left, top, FXDIB_BLEND_NORMAL); in SetDIBits()
156 bool SetDIBitsWithBlend(const RetainPtr<CFX_DIBSource>& pBitmap,
160 bool StretchDIBits(const RetainPtr<CFX_DIBSource>& pBitmap, in StretchDIBits() argument
165 return StretchDIBitsWithFlagsAndBlend(pBitmap, left, top, dest_width, in StretchDIBits()
168 bool StretchDIBitsWithFlagsAndBlend(const RetainPtr<CFX_DIBSource>& pBitmap,
175 bool SetBitMask(const RetainPtr<CFX_DIBSource>& pBitmap,
179 bool StretchBitMask(const RetainPtr<CFX_DIBSource>& pBitmap,
[all …]
Difx_renderdevicedriver.h63 virtual bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
67 virtual bool SetDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
73 virtual bool StretchDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
82 virtual bool StartDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
104 virtual bool SetBitsWithMask(const RetainPtr<CFX_DIBSource>& pBitmap,
Dcfx_renderdevice.cpp436 void CFX_RenderDevice::SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap) { in SetBitmap() argument
437 m_pBitmap = pBitmap; in SetBitmap()
720 bool CFX_RenderDevice::GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap, in GetDIBits() argument
724 m_pDeviceDriver->GetDIBits(pBitmap, left, top); in GetDIBits()
732 const RetainPtr<CFX_DIBSource>& pBitmap, in SetDIBitsWithBlend() argument
736 ASSERT(!pBitmap->IsAlphaMask()); in SetDIBitsWithBlend()
741 FXSYS_round(left + pBitmap->GetWidth() / fScaleX), in SetDIBitsWithBlend()
742 FXSYS_round(top + pBitmap->GetHeight() / fScaleY)); in SetDIBitsWithBlend()
755 (!pBitmap->HasAlpha() || (m_RenderCaps & FXRC_ALPHA_IMAGE))) { in SetDIBitsWithBlend()
756 return m_pDeviceDriver->SetDIBits(pBitmap, 0, &src_rect, dest_rect.left, in SetDIBitsWithBlend()
[all …]
/external/pdfium/core/fpdfapi/render/
Dcpdf_type3cache.cpp56 int DetectFirstLastScan(const RetainPtr<CFX_DIBitmap>& pBitmap, bool bFirst) { in DetectFirstLastScan() argument
57 int height = pBitmap->GetHeight(); in DetectFirstLastScan()
58 int pitch = pBitmap->GetPitch(); in DetectFirstLastScan()
59 int width = pBitmap->GetWidth(); in DetectFirstLastScan()
60 int bpp = pBitmap->GetBPP(); in DetectFirstLastScan()
63 uint8_t* pBuf = pBitmap->GetBuffer(); in DetectFirstLastScan()
129 RetainPtr<CFX_DIBitmap> pBitmap = pChar->GetBitmap(); in RenderGlyph() local
135 int top_line = DetectFirstLastScan(pBitmap, true); in RenderGlyph()
136 int bottom_line = DetectFirstLastScan(pBitmap, false); in RenderGlyph()
137 if (top_line == 0 && bottom_line == pBitmap->GetHeight() - 1) { in RenderGlyph()
[all …]
Dcpdf_renderstatus.cpp104 void DrawAxialShading(const RetainPtr<CFX_DIBitmap>& pBitmap, in DrawAxialShading() argument
110 ASSERT(pBitmap->GetFormat() == FXDIB_Argb); in DrawAxialShading()
133 int width = pBitmap->GetWidth(); in DrawAxialShading()
134 int height = pBitmap->GetHeight(); in DrawAxialShading()
162 int pitch = pBitmap->GetPitch(); in DrawAxialShading()
165 uint32_t* dib_buf = (uint32_t*)(pBitmap->GetBuffer() + row * pitch); in DrawAxialShading()
189 void DrawRadialShading(const RetainPtr<CFX_DIBitmap>& pBitmap, in DrawRadialShading() argument
195 ASSERT(pBitmap->GetFormat() == FXDIB_Argb); in DrawRadialShading()
247 int width = pBitmap->GetWidth(); in DrawRadialShading()
248 int height = pBitmap->GetHeight(); in DrawRadialShading()
[all …]
Dcpdf_imagecacheentry.cpp32 void CPDF_ImageCacheEntry::Reset(const RetainPtr<CFX_DIBitmap>& pBitmap) { in Reset() argument
34 if (pBitmap) in Reset()
35 m_pCachedBitmap = pBitmap->Clone(nullptr); in Reset()
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp165 void CPDF_Image::SetImage(const RetainPtr<CFX_DIBitmap>& pBitmap) { in SetImage() argument
166 int32_t BitmapWidth = pBitmap->GetWidth(); in SetImage()
167 int32_t BitmapHeight = pBitmap->GetHeight(); in SetImage()
178 const int32_t bpp = pBitmap->GetBPP(); in SetImage()
190 if (!pBitmap->IsAlphaMask()) { in SetImage()
192 ArgbDecode(pBitmap->GetPaletteArgb(0)); in SetImage()
194 ArgbDecode(pBitmap->GetPaletteArgb(1)); in SetImage()
222 int32_t iPalette = pBitmap->GetPaletteSize(); in SetImage()
232 uint32_t argb = pBitmap->GetPaletteArgb(i); in SetImage()
258 if (pBitmap->HasAlpha()) in SetImage()
[all …]
/external/pdfium/core/fxge/apple/
Dfx_quartz_device.cpp26 void* CQuartz2D::createGraphics(const RetainPtr<CFX_DIBitmap>& pBitmap) { in createGraphics() argument
27 if (!pBitmap) in createGraphics()
30 switch (pBitmap->GetFormat()) { in createGraphics()
40 pBitmap->GetBuffer(), pBitmap->GetWidth(), pBitmap->GetHeight(), 8, in createGraphics()
41 pBitmap->GetPitch(), colorSpace, bmpInfo); in createGraphics()
/external/pdfium/core/fxge/skia/
Dfx_skia_device.h27 CFX_SkiaDeviceDriver(const RetainPtr<CFX_DIBitmap>& pBitmap,
80 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
86 bool SetDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
93 bool SetBitsWithMask(const RetainPtr<CFX_DIBSource>& pBitmap,
105 bool StretchDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
115 bool StartDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
126 bool DrawBitsWithMask(const RetainPtr<CFX_DIBSource>& pBitmap,
Dfx_skia_device.cpp58 void RgbByteOrderTransferBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap, in RgbByteOrderTransferBitmap() argument
66 if (!pBitmap) in RgbByteOrderTransferBitmap()
69 pBitmap->GetOverlapRect(dest_left, dest_top, width, height, in RgbByteOrderTransferBitmap()
75 int Bpp = pBitmap->GetBPP() / 8; in RgbByteOrderTransferBitmap()
76 FXDIB_Format dest_format = pBitmap->GetFormat(); in RgbByteOrderTransferBitmap()
78 int pitch = pBitmap->GetPitch(); in RgbByteOrderTransferBitmap()
79 uint8_t* buffer = pBitmap->GetBuffer(); in RgbByteOrderTransferBitmap()
1496 const RetainPtr<CFX_DIBitmap>& pBitmap, in CFX_SkiaDeviceDriver() argument
1500 : m_pBitmap(pBitmap), in CFX_SkiaDeviceDriver()
1511 SkASSERT(pBitmap->GetBPP() == 8 || pBitmap->GetBPP() == 32); in CFX_SkiaDeviceDriver()
[all …]
/external/pdfium/core/fxge/agg/
Dfx_agg_driver.cpp38 void RgbByteOrderSetPixel(const RetainPtr<CFX_DIBitmap>& pBitmap, in RgbByteOrderSetPixel() argument
42 if (x < 0 || x >= pBitmap->GetWidth() || y < 0 || y >= pBitmap->GetHeight()) in RgbByteOrderSetPixel()
45 uint8_t* pos = pBitmap->GetBuffer() + y * pBitmap->GetPitch() + in RgbByteOrderSetPixel()
46 x * pBitmap->GetBPP() / 8; in RgbByteOrderSetPixel()
47 if (pBitmap->GetFormat() == FXDIB_Argb) { in RgbByteOrderSetPixel()
58 void RgbByteOrderCompositeRect(const RetainPtr<CFX_DIBitmap>& pBitmap, in RgbByteOrderCompositeRect() argument
69 rect.Intersect(0, 0, pBitmap->GetWidth(), pBitmap->GetHeight()); in RgbByteOrderCompositeRect()
74 int Bpp = pBitmap->GetBPP() / 8; in RgbByteOrderCompositeRect()
76 uint8_t* pBuffer = pBitmap->GetBuffer(); in RgbByteOrderCompositeRect()
80 pBuffer + row * pBitmap->GetPitch() + rect.left * Bpp; in RgbByteOrderCompositeRect()
[all …]
Dfx_agg_driver.h35 CFX_AggDeviceDriver(const RetainPtr<CFX_DIBitmap>& pBitmap,
66 bool GetDIBits(const RetainPtr<CFX_DIBitmap>& pBitmap,
70 bool SetDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
76 bool StretchDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
85 bool StartDIBits(const RetainPtr<CFX_DIBSource>& pBitmap,
/external/pdfium/xfa/fxfa/
Dcxfa_ffwidget.cpp184 RetainPtr<CFX_DIBitmap> pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); in XFA_LoadImageFromBuffer() local
185 pBitmap->Create(pProgressiveDecoder->GetWidth(), in XFA_LoadImageFromBuffer()
187 pBitmap->Clear(0xffffffff); in XFA_LoadImageFromBuffer()
193 pBitmap = nullptr; in XFA_LoadImageFromBuffer()
194 return pBitmap; in XFA_LoadImageFromBuffer()
197 status = pProgressiveDecoder->StartDecode(pBitmap, 0, 0, pBitmap->GetWidth(), in XFA_LoadImageFromBuffer()
198 pBitmap->GetHeight()); in XFA_LoadImageFromBuffer()
200 pBitmap = nullptr; in XFA_LoadImageFromBuffer()
201 return pBitmap; in XFA_LoadImageFromBuffer()
207 pBitmap = nullptr; in XFA_LoadImageFromBuffer()
[all …]
Dcxfa_imagerenderer.cpp99 RetainPtr<CFX_DIBitmap> pBitmap = m_pTransformer->DetachBitmap(); in Continue() local
100 if (!pBitmap) in Continue()
103 if (pBitmap->IsAlphaMask()) { in Continue()
104 m_pDevice->SetBitMask(pBitmap, m_pTransformer->result().left, in Continue()
107 m_pDevice->SetDIBitsWithBlend(pBitmap, m_pTransformer->result().left, in Continue()
/external/pdfium/fpdfsdk/
Dfpdfview.cpp887 RetainPtr<CFX_DIBitmap> pBitmap; in FPDF_RenderPage() local
900 pBitmap = pdfium::MakeRetain<CFX_DIBitmap>(); in FPDF_RenderPage()
901 pBitmap->Create(size_x, size_y, FXDIB_Argb); in FPDF_RenderPage()
902 pBitmap->Clear(0x00ffffff); in FPDF_RenderPage()
905 pDevice->Attach(pBitmap, false, nullptr, false); in FPDF_RenderPage()
929 pBitmap, mask_boxes[i], &bitmap_areas[i]); in FPDF_RenderPage()
963 int pitch = pBitmap->GetPitch(); in FPDF_RenderPage()
966 pDst->CompositeBitmap(0, 0, size_x, size_y, pBitmap, 0, 0, in FPDF_RenderPage()
970 WinDC.SetDIBits(pBitmap, 0, 0); in FPDF_RenderPage()
999 RetainPtr<CFX_DIBitmap> pBitmap(CFXBitmapFromFPDFBitmap(bitmap)); in FPDF_RenderPageBitmap() local
[all …]
Dfpdf_progressive.cpp53 RetainPtr<CFX_DIBitmap> pBitmap(CFXBitmapFromFPDFBitmap(bitmap)); in FPDF_RenderPageBitmap_Start() local
57 pDevice->Attach(pBitmap, !!(flags & FPDF_REVERSE_BYTE_ORDER), nullptr, false); in FPDF_RenderPageBitmap_Start()
65 pBitmap->UnPreMultiply(); in FPDF_RenderPageBitmap_Start()

12