Home
last modified time | relevance | path

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

123

/external/pdfium/core/src/fxge/win32/
Dfx_win32_dib.cpp15 CFX_ByteString CFX_WindowsDIB::GetBitmapInfo(const 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 …]
Dfx_win32_device.cpp530 CFX_DIBitmap* pBitmap = pBitmap1->FlipImage(FALSE, TRUE); in GDI_SetDIBits() local
531 if (!pBitmap) { in GDI_SetDIBits()
534 if ((pBitmap->IsCmykImage() || pIccTransform) && in GDI_SetDIBits()
535 !pBitmap->ConvertFormat(FXDIB_Rgb, pIccTransform)) { in GDI_SetDIBits()
539 LPBYTE pBuffer = pBitmap->GetBuffer(); in GDI_SetDIBits()
540 CFX_ByteString info = CFX_WindowsDIB::GetBitmapInfo(pBitmap); in GDI_SetDIBits()
543 dst_rect.Intersect(0, 0, pBitmap->GetWidth(), pBitmap->GetHeight()); in GDI_SetDIBits()
549 delete pBitmap; in GDI_SetDIBits()
551 CFX_DIBitmap* pBitmap = (CFX_DIBitmap*)pBitmap1; in GDI_SetDIBits() local
552 if ((pBitmap->IsCmykImage() || pIccTransform) && in GDI_SetDIBits()
[all …]
Dwin32_int.h21 const CFX_DIBitmap* pBitmap,
30 const CFX_DIBitmap* pBitmap,
83 FX_BOOL GdipCreateBitmap(CFX_DIBitmap* pBitmap, void** bitmap);
155 FX_BOOL GDI_SetDIBits(const CFX_DIBitmap* pBitmap,
160 FX_BOOL GDI_StretchDIBits(const CFX_DIBitmap* pBitmap,
167 FX_BOOL GDI_StretchBitMask(const CFX_DIBitmap* pBitmap,
188 virtual FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap,
193 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
201 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap,
212 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, in StartDIBits() argument
[all …]
Dfx_win32_gdipext.cpp518 const CFX_DIBitmap* pBitmap, in OutputImageMask() argument
525 ASSERT(pBitmap->GetBPP() == 1); in OutputImageMask()
528 int src_width = pBitmap->GetWidth(), src_height = pBitmap->GetHeight(); in OutputImageMask()
529 int src_pitch = pBitmap->GetPitch(); in OutputImageMask()
530 uint8_t* scan0 = pBitmap->GetBuffer(); in OutputImageMask()
565 _StretchMonoToGray(dest_width, dest_height, pBitmap, &image_clip); in OutputImageMask()
568 pBitmap->StretchTo(dest_width, dest_height, FALSE, &image_clip); in OutputImageMask()
603 const CFX_DIBitmap* pBitmap, in OutputImage() argument
612 if (pBitmap->GetBPP() == 1 && (pSrcRect->left % 8)) { in OutputImage()
614 CFX_DIBitmap* pCloned = pBitmap->Clone(pSrcRect); in OutputImage()
[all …]
Dfx_win32_print.cpp58 CFX_DIBitmap* pBitmap = temp; in SetDIBits() local
59 if (!pBitmap) { in SetDIBits()
62 return GDI_SetDIBits(pBitmap, pSrcRect, left, top, pIccTransform); in SetDIBits()
101 CFX_DIBitmap* pBitmap = temp; in StretchDIBits() local
102 if (!pBitmap) { in StretchDIBits()
105 return GDI_StretchBitMask(pBitmap, dest_left, dest_top, dest_width, in StretchDIBits()
131 CFX_DIBitmap* pBitmap = temp; in StretchDIBits() local
132 if (!pBitmap) { in StretchDIBits()
135 return GDI_StretchDIBits(pBitmap, dest_left, dest_top, dest_width, in StretchDIBits()
411 FX_BOOL CPSPrinterDriver::SetDIBits(const CFX_DIBSource* pBitmap, in SetDIBits() argument
[all …]
Dfx_win32_dwrite.cpp94 CDwGdiTextRenderer(CFX_DIBitmap* pBitmap,
165 FX_BOOL CDWriteExt::DwCreateRenderingTarget(CFX_DIBitmap* pBitmap, in DwCreateRenderingTarget() argument
167 if (pBitmap->GetFormat() > FXDIB_Argb) { in DwCreateRenderingTarget()
180 NULL, pBitmap->GetWidth(), pBitmap->GetHeight(), &pBitmapRenderTarget); in DwCreateRenderingTarget()
195 new CDwGdiTextRenderer(pBitmap, pBitmapRenderTarget, pRenderingParams); in DwCreateRenderingTarget()
362 CFX_DIBitmap* pBitmap, in CDwGdiTextRenderer() argument
365 : pBitmap_(pBitmap), in CDwGdiTextRenderer()
/external/pdfium/core/src/fpdfapi/fpdf_edit/
Dfpdf_edit_image.cpp91 const CFX_DIBitmap* pBitmap, in _DCTEncodeBitmap() argument
96 const CFX_DIBitmap* pBitmap, in _JBIG2EncodeBitmap() argument
101 void CPDF_Image::SetImage(const CFX_DIBitmap* pBitmap, in SetImage() argument
107 int32_t BitmapWidth = pBitmap->GetWidth(); in SetImage()
108 int32_t BitmapHeight = pBitmap->GetHeight(); in SetImage()
112 uint8_t* src_buf = pBitmap->GetBuffer(); in SetImage()
113 int32_t src_pitch = pBitmap->GetPitch(); in SetImage()
114 int32_t bpp = pBitmap->GetBPP(); in SetImage()
116 pParam && pParam->pMatteColor && (pBitmap->GetFormat() == FXDIB_Argb); in SetImage()
127 if (!pBitmap->IsAlphaMask()) { in SetImage()
[all …]
/external/pdfium/core/src/fxge/apple/
Dfx_quartz_device.cpp21 void* CQuartz2D::createGraphics(CFX_DIBitmap* pBitmap) { in createGraphics() argument
22 if (!pBitmap) { in createGraphics()
26 switch (pBitmap->GetFormat()) { in createGraphics()
36 pBitmap->GetBuffer(), pBitmap->GetWidth(), pBitmap->GetHeight(), 8, in createGraphics()
37 pBitmap->GetPitch(), colorSpace, bmpInfo); in createGraphics()
121 static CGContextRef createContextWithBitmap(CFX_DIBitmap* pBitmap) { in createContextWithBitmap() argument
122 if (!pBitmap || pBitmap->IsCmykImage() || pBitmap->GetBPP() < 32) { in createContextWithBitmap()
126 if (pBitmap->HasAlpha()) { in createContextWithBitmap()
133 pBitmap->GetBuffer(), pBitmap->GetWidth(), pBitmap->GetHeight(), 8, in createContextWithBitmap()
134 pBitmap->GetPitch(), colorSpace, bitmapInfo); in createContextWithBitmap()
[all …]
Dapple_int.h125 FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap,
131 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
139 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap,
150 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap,
/external/pdfium/core/src/fpdfapi/fpdf_render/
Dfpdf_render_pattern.cpp15 static void DrawAxialShading(CFX_DIBitmap* pBitmap, in DrawAxialShading() argument
22 ASSERT(pBitmap->GetFormat() == FXDIB_Argb); in DrawAxialShading()
43 int width = pBitmap->GetWidth(); in DrawAxialShading()
44 int height = pBitmap->GetHeight(); in DrawAxialShading()
81 int pitch = pBitmap->GetPitch(); in DrawAxialShading()
83 FX_DWORD* dib_buf = (FX_DWORD*)(pBitmap->GetBuffer() + row * pitch); in DrawAxialShading()
106 static void DrawRadialShading(CFX_DIBitmap* pBitmap, in DrawRadialShading() argument
113 ASSERT(pBitmap->GetFormat() == FXDIB_Argb); in DrawRadialShading()
171 int width = pBitmap->GetWidth(); in DrawRadialShading()
172 int height = pBitmap->GetHeight(); in DrawRadialShading()
[all …]
Dfpdf_render_cache.cpp78 CFX_DIBSource*& pBitmap, in GetCachedBitmap() argument
97 pBitmap, pMask, MatteColor, m_pPage->m_pPageResources, bStdCS, in GetCachedBitmap()
149 const CFX_DIBitmap* pBitmap) { in ResetBitmap() argument
153 if (!pBitmap) in ResetBitmap()
161 pEntry->Reset(pBitmap); in ResetBitmap()
180 void CPDF_ImageCacheEntry::Reset(const CFX_DIBitmap* pBitmap) { in Reset() argument
183 if (pBitmap) { in Reset()
184 m_pCachedBitmap = pBitmap->Clone(); in Reset()
203 FX_BOOL CPDF_ImageCacheEntry::GetCachedBitmap(CFX_DIBSource*& pBitmap, in GetCachedBitmap() argument
214 pBitmap = m_pCachedBitmap; in GetCachedBitmap()
[all …]
Dfpdf_render_text.cpp96 static int _DetectFirstLastScan(const CFX_DIBitmap* pBitmap, FX_BOOL bFirst) { in _DetectFirstLastScan() argument
97 int height = pBitmap->GetHeight(), pitch = pBitmap->GetPitch(), in _DetectFirstLastScan()
98 width = pBitmap->GetWidth(); in _DetectFirstLastScan()
99 int bpp = pBitmap->GetBPP(); in _DetectFirstLastScan()
103 uint8_t* pBuf = pBitmap->GetBuffer(); in _DetectFirstLastScan()
130 CFX_DIBitmap* pBitmap = pChar->m_pBitmap; in RenderGlyph() local
140 top_line = _DetectFirstLastScan(pBitmap, TRUE); in RenderGlyph()
141 bottom_line = _DetectFirstLastScan(pBitmap, FALSE); in RenderGlyph()
142 if (top_line == 0 && bottom_line == pBitmap->GetHeight() - 1) { in RenderGlyph()
152 pResBitmap = pBitmap->StretchTo( in RenderGlyph()
[all …]
/external/pdfium/core/src/fxge/ge/
Dfx_ge_device.cpp346 FX_BOOL CFX_RenderDevice::GetDIBits(CFX_DIBitmap* pBitmap, in GetDIBits() argument
353 return m_pDeviceDriver->GetDIBits(pBitmap, left, top, pIccTransform); in GetDIBits()
358 FX_BOOL CFX_RenderDevice::SetDIBits(const CFX_DIBSource* pBitmap, in SetDIBits() argument
363 ASSERT(!pBitmap->IsAlphaMask()); in SetDIBits()
368 FXSYS_round(left + pBitmap->GetWidth() / fScaleX), in SetDIBits()
369 FXSYS_round(top + pBitmap->GetHeight() / fScaleY)); in SetDIBits()
382 (pBitmap->HasAlpha() && !(m_RenderCaps & FXRC_ALPHA_IMAGE))) { in SetDIBits()
399 pBitmap, src_rect.left, src_rect.top, in SetDIBits()
407 return m_pDeviceDriver->SetDIBits(pBitmap, 0, &src_rect, dest_rect.left, in SetDIBits()
411 FX_BOOL CFX_RenderDevice::StretchDIBits(const CFX_DIBSource* pBitmap, in StretchDIBits() argument
[all …]
/external/pdfium/core/include/fxge/
Dfx_ge.h275 void SetBitmap(CFX_DIBitmap* pBitmap) { m_pBitmap = pBitmap; } in SetBitmap() argument
325 FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap,
332 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
338 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap,
347 FX_BOOL SetBitMask(const CFX_DIBSource* pBitmap,
354 FX_BOOL StretchBitMask(const CFX_DIBSource* pBitmap,
364 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap,
435 FX_BOOL Attach(CFX_DIBitmap* pBitmap,
455 FX_BOOL Attach(CFX_DIBitmap* pBitmap,
474 CFX_DIBitmap* pBitmap,
[all …]
/external/pdfium/core/src/fxge/agg/src/
Dfx_agg_driver.cpp187 CFX_DIBitmap* pBitmap, in CreateFxgeDriver() argument
191 return new CFX_AggDeviceDriver(pBitmap, 0, bRgbByteOrder, pOriDevice, in CreateFxgeDriver()
194 CFX_AggDeviceDriver::CFX_AggDeviceDriver(CFX_DIBitmap* pBitmap, in CFX_AggDeviceDriver() argument
199 m_pBitmap = pBitmap; in CFX_AggDeviceDriver()
1288 void RgbByteOrderSetPixel(CFX_DIBitmap* pBitmap, int x, int y, FX_DWORD argb) { in RgbByteOrderSetPixel() argument
1289 if (x < 0 || x >= pBitmap->GetWidth() || y < 0 || y >= pBitmap->GetHeight()) { in RgbByteOrderSetPixel()
1292 uint8_t* pos = (uint8_t*)pBitmap->GetBuffer() + y * pBitmap->GetPitch() + in RgbByteOrderSetPixel()
1293 x * pBitmap->GetBPP() / 8; in RgbByteOrderSetPixel()
1294 if (pBitmap->GetFormat() == FXDIB_Argb) { in RgbByteOrderSetPixel()
1303 void RgbByteOrderCompositeRect(CFX_DIBitmap* pBitmap, in RgbByteOrderCompositeRect() argument
[all …]
/external/pdfium/xfa/include/fxbarcode/
DBC_BarCode.h63 virtual CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e) = 0;
94 virtual CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e) = 0;
117 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
135 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
155 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
172 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
189 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
206 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
223 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
238 CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e);
[all …]
/external/pdfium/core/src/fxge/skia/
Dfx_skia_device.h11 CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap,
76 virtual FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap,
84 virtual FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
92 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap,
103 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap,
Dfx_skia_device.cpp261 CFX_SkiaDeviceDriver::CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap, in CFX_SkiaDeviceDriver() argument
266 m_pAggDriver = new CFX_AggDeviceDriver(pBitmap, dither_bits, bRgbByteOrder, in CFX_SkiaDeviceDriver()
532 FX_BOOL CFX_SkiaDeviceDriver::GetDIBits(CFX_DIBitmap* pBitmap, in GetDIBits() argument
537 return m_pAggDriver->GetDIBits(pBitmap, left, top, pIccTransform, bDEdge); in GetDIBits()
540 FX_BOOL CFX_SkiaDeviceDriver::SetDIBits(const CFX_DIBSource* pBitmap, in SetDIBits() argument
548 return m_pAggDriver->SetDIBits(pBitmap, argb, pSrcRect, left, top, blend_type, in SetDIBits()
592 FX_BOOL CFX_SkiaDevice::Attach(CFX_DIBitmap* pBitmap, in Attach() argument
597 if (!pBitmap) in Attach()
599 SetBitmap(pBitmap); in Attach()
601 pBitmap, dither_bits, bRgbByteOrder, pOriDevice, bGroupKnockout); in Attach()
[all …]
/external/pdfium/core/src/fxge/agg/include/
Dfx_agg_driver.h29 CFX_AggDeviceDriver(CFX_DIBitmap* pBitmap,
79 FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap,
85 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
93 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap,
104 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap,
/external/pdfium/xfa/src/fxbarcode/
DBC_BarCode.cpp249 CFX_WideString CBC_Code39::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { in Decode() argument
250 CBC_BufferedImageLuminanceSource source(pBitmap); in Decode()
352 CFX_WideString CBC_Codabar::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { in Decode() argument
353 CBC_BufferedImageLuminanceSource source(pBitmap); in Decode()
429 CFX_WideString CBC_Code128::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { in Decode() argument
430 CBC_BufferedImageLuminanceSource source(pBitmap); in Decode()
512 CFX_WideString CBC_EAN8::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { in Decode() argument
513 CBC_BufferedImageLuminanceSource source(pBitmap); in Decode()
596 CFX_WideString CBC_EAN13::Decode(CFX_DIBitmap* pBitmap, int32_t& e) { in Decode() argument
597 CBC_BufferedImageLuminanceSource source(pBitmap); in Decode()
[all …]
/external/pdfium/xfa/src/fdp/src/fde/
Dfde_gedevice.cpp30 IFDE_RenderDevice* IFDE_RenderDevice::Create(CFX_DIBitmap* pBitmap, in Create() argument
32 if (pBitmap == NULL) { in Create()
36 pDevice->Attach(pBitmap, 0, bRgbByteOrder); in Create()
473 const CFX_DIBitmap* pBitmap, in WrapTexture() argument
500 pFlip[0][0] = pBitmap; in WrapTexture()
501 pFlip[0][1] = bFlipX ? pBitmap->FlipImage(TRUE, FALSE) : pBitmap; in WrapTexture()
502 pFlip[1][0] = bFlipY ? pBitmap->FlipImage(FALSE, TRUE) : pBitmap; in WrapTexture()
504 (bFlipX || bFlipY) ? pBitmap->FlipImage(bFlipX, bFlipY) : pBitmap; in WrapTexture()
506 for (int32_t j = rect.top; j < rect.bottom; j += pBitmap->GetHeight()) { in WrapTexture()
509 for (int32_t i = rect.left; i < rect.right; i += pBitmap->GetWidth()) { in WrapTexture()
[all …]
/external/pdfium/xfa/src/fwl/src/basewidget/
Dfwl_pictureboximp.cpp61 CFX_DIBitmap* pBitmap = in GetWidgetRect() local
64 if (pBitmap) { in GetWidgetRect()
65 rect.Set(0, 0, (FX_FLOAT)pBitmap->GetWidth(), in GetWidgetRect()
66 (FX_FLOAT)pBitmap->GetHeight()); in GetWidgetRect()
/external/pdfium/xfa/src/fwl/src/core/
Dfwl_widgetmgrimp.cpp392 CFX_DIBitmap* pBitmap = pDevice->GetBitmap(); in SetWidgetRect_Native() local
393 if (pBitmap->GetWidth() - rect.width > 1 || in SetWidgetRect_Native()
394 pBitmap->GetHeight() - rect.height > 1) { in SetWidgetRect_Native()
1009 static void FWL_WriteBMP(CFX_DIBitmap* pBitmap, const FX_CHAR* filename) { in FWL_WriteBMP() argument
1014 int size = 14 + 40 + pBitmap->GetPitch() * pBitmap->GetHeight(); in FWL_WriteBMP()
1028 buffer[4] = (unsigned char)pBitmap->GetWidth(); in FWL_WriteBMP()
1029 buffer[5] = (unsigned char)(pBitmap->GetWidth() >> 8); in FWL_WriteBMP()
1030 buffer[6] = (unsigned char)(pBitmap->GetWidth() >> 16); in FWL_WriteBMP()
1031 buffer[7] = (unsigned char)(pBitmap->GetWidth() >> 24); in FWL_WriteBMP()
1032 buffer[8] = (unsigned char)(-pBitmap->GetHeight()); in FWL_WriteBMP()
[all …]
/external/pdfium/fpdfsdk/src/
Dfpdfview.cpp536 CFX_DIBitmap* pBitmap = nullptr; in FPDF_RenderPage() local
540 pBitmap = new CFX_DIBitmap; in FPDF_RenderPage()
541 pBitmap->Create(size_x, size_y, FXDIB_Argb); in FPDF_RenderPage()
542 pBitmap->Clear(0x00ffffff); in FPDF_RenderPage()
545 ((CFX_SkiaDevice*)pContext->m_pDevice)->Attach((CFX_DIBitmap*)pBitmap); in FPDF_RenderPage()
548 ((CFX_FxgeDevice*)pContext->m_pDevice)->Attach((CFX_DIBitmap*)pBitmap); in FPDF_RenderPage()
558 if (pBitmap) { in FPDF_RenderPage()
563 int pitch = pBitmap->GetPitch(); in FPDF_RenderPage()
566 pDst->CompositeBitmap(0, 0, size_x, size_y, pBitmap, 0, 0, in FPDF_RenderPage()
571 WinDC.SetDIBits(pBitmap, 0, 0); in FPDF_RenderPage()
[all …]
/external/pdfium/xfa/src/fwl/src/lightwidget/
Dpushbutton.cpp41 FWL_ERR CFWL_PushButton::SetPicture(CFX_DIBitmap* pBitmap) { in SetPicture() argument
42 m_buttonData.m_pBitmap = pBitmap; in SetPicture()

123