| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef _FPDF_DIB_H_ | 7 #ifndef _FPDF_DIB_H_ |
| 8 #define _FPDF_DIB_H_ | 8 #define _FPDF_DIB_H_ |
| 9 #ifndef _FXCRT_EXTENSION_ | 9 #ifndef _FXCRT_EXTENSION_ |
| 10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 395 |
| 396 const CFX_DIBSource* m_pSrc; | 396 const CFX_DIBSource* m_pSrc; |
| 397 | 397 |
| 398 FX_BOOL m_bAutoDropSrc; | 398 FX_BOOL m_bAutoDropSrc; |
| 399 | 399 |
| 400 FX_LPBYTE m_pScanline; | 400 FX_LPBYTE m_pScanline; |
| 401 }; | 401 }; |
| 402 class IFX_ScanlineComposer | 402 class IFX_ScanlineComposer |
| 403 { | 403 { |
| 404 public: | 404 public: |
| 405 virtual ~IFX_ScanlineComposer() { } |
| 405 | 406 |
| 406 virtual void ComposeScanline(int line, FX_LPCBYTE scanline, F
X_LPCBYTE scan_extra_alpha = NULL) = 0; | 407 virtual void ComposeScanline(int line, FX_LPCBYTE scanline, F
X_LPCBYTE scan_extra_alpha = NULL) = 0; |
| 407 | 408 |
| 408 | |
| 409 virtual FX_BOOL SetInfo(int width, int height, FXDIB_Format src_
format, FX_DWORD* pSrcPalette) = 0; | 409 virtual FX_BOOL SetInfo(int width, int height, FXDIB_Format src_
format, FX_DWORD* pSrcPalette) = 0; |
| 410 }; | 410 }; |
| 411 class CFX_ScanlineCompositor : public CFX_Object | 411 class CFX_ScanlineCompositor : public CFX_Object |
| 412 { | 412 { |
| 413 public: | 413 public: |
| 414 | |
| 415 CFX_ScanlineCompositor(); | 414 CFX_ScanlineCompositor(); |
| 416 | 415 |
| 417 ~CFX_ScanlineCompositor(); | 416 ~CFX_ScanlineCompositor(); |
| 418 | 417 |
| 419 FX_BOOL Init(FXDIB_Format dest_format, FXDIB_For
mat src_format, FX_INT32 width, FX_DWORD* pSrcPalette, | 418 FX_BOOL Init(FXDIB_Format dest_format, FXDIB_For
mat src_format, FX_INT32 width, FX_DWORD* pSrcPalette, |
| 420 FX_DWORD mask_color, int blend_type, FX_BOOL bClip,
FX_BOOL bRgbByteOrder = FALSE, int alpha_flag = 0, void* pIccTransform = NULL); | 419 FX_DWORD mask_color, int blend_type, FX_BOOL bClip,
FX_BOOL bRgbByteOrder = FALSE, int alpha_flag = 0, void* pIccTransform = NULL); |
| 421 | 420 |
| 422 | 421 |
| 423 void CompositeRgbBitmapLine(FX_LPBYTE dest_sc
an, FX_LPCBYTE src_scan, int width, FX_LPCBYTE clip_scan, | 422 void CompositeRgbBitmapLine(FX_LPBYTE dest_sc
an, FX_LPCBYTE src_scan, int width, FX_LPCBYTE clip_scan, |
| 424 FX_LPCBYTE src_extra_alpha = NULL, FX_LPBYTE dst_extra_alpha = NULL)
; | 423 FX_LPCBYTE src_extra_alpha = NULL, FX_LPBYTE dst_extra_alpha = NULL)
; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 int m_Status; | 596 int m_Status; |
| 598 int m_DestLeft, m_DestTop; | 597 int m_DestLeft, m_DestTop; |
| 599 FX_RECT m_ClipBox; | 598 FX_RECT m_ClipBox; |
| 600 FX_DWORD m_Flags; | 599 FX_DWORD m_Flags; |
| 601 int m_AlphaFlag; | 600 int m_AlphaFlag; |
| 602 void* m_pIccTransform; | 601 void* m_pIccTransform; |
| 603 FX_BOOL m_bRgbByteOrder; | 602 FX_BOOL m_bRgbByteOrder; |
| 604 int m_BlendType; | 603 int m_BlendType; |
| 605 }; | 604 }; |
| 606 #endif | 605 #endif |
| OLD | NEW |