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_PAGEOBJ_H_ | 7 #ifndef _FPDF_PAGEOBJ_H_ |
8 #include "../../../include/fpdfapi/fpdf_pageobj.h" | 8 #include "../../../include/fpdfapi/fpdf_pageobj.h" |
9 #endif | 9 #endif |
10 class CPDF_QuickStretcher; | 10 class CPDF_QuickStretcher; |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 CPDF_ColorSpace* m_pColorSpace; | 428 CPDF_ColorSpace* m_pColorSpace; |
429 FX_DWORD m_Family, m_bpc, m_bpc_orig, m_nComponents, m_Gr
oupFamily; | 429 FX_DWORD m_Family, m_bpc, m_bpc_orig, m_nComponents, m_Gr
oupFamily; |
430 FX_BOOL m_bLoadMask; | 430 FX_BOOL m_bLoadMask; |
431 FX_BOOL m_bDefaultDecode, m_bImageMask, m_bColor
Key; | 431 FX_BOOL m_bDefaultDecode, m_bImageMask, m_bColor
Key; |
432 DIB_COMP_DATA* m_pCompData; | 432 DIB_COMP_DATA* m_pCompData; |
433 FX_LPBYTE m_pLineBuf; | 433 FX_LPBYTE m_pLineBuf; |
434 FX_LPBYTE m_pMaskedLine; | 434 FX_LPBYTE m_pMaskedLine; |
435 CFX_DIBitmap* m_pCachedBitmap; | 435 CFX_DIBitmap* m_pCachedBitmap; |
436 ICodec_ScanlineDecoder* m_pDecoder; | 436 ICodec_ScanlineDecoder* m_pDecoder; |
437 }; | 437 }; |
438 #ifdef _FPDFAPI_MINI_ | |
439 #define FPDF_HUGE_IMAGE_SIZE 3000000 | |
440 #else | |
441 #define FPDF_HUGE_IMAGE_SIZE 60000000 | 438 #define FPDF_HUGE_IMAGE_SIZE 60000000 |
442 #endif | |
443 class CPDF_DIBTransferFunc : public CFX_FilteredDIB | 439 class CPDF_DIBTransferFunc : public CFX_FilteredDIB |
444 { | 440 { |
445 public: | 441 public: |
446 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); | 442 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); |
447 virtual FXDIB_Format GetDestFormat(); | 443 virtual FXDIB_Format GetDestFormat(); |
448 virtual FX_ARGB* GetDestPalette() | 444 virtual FX_ARGB* GetDestPalette() |
449 { | 445 { |
450 return NULL; | 446 return NULL; |
451 } | 447 } |
452 virtual void TranslateScanline(FX_LPBYTE dest_buf, FX
_LPCBYTE src_buf) const; | 448 virtual void TranslateScanline(FX_LPBYTE dest_buf, FX
_LPCBYTE src_buf) const; |
453 virtual void TranslateDownSamples(FX_LPBYTE dest_buf,
FX_LPCBYTE src_buf, int pixels, int Bpp) const; | 449 virtual void TranslateDownSamples(FX_LPBYTE dest_buf,
FX_LPCBYTE src_buf, int pixels, int Bpp) const; |
454 FX_LPCBYTE m_RampR; | 450 FX_LPCBYTE m_RampR; |
455 FX_LPCBYTE m_RampG; | 451 FX_LPCBYTE m_RampG; |
456 FX_LPCBYTE m_RampB; | 452 FX_LPCBYTE m_RampB; |
457 }; | 453 }; |
458 struct _CPDF_UniqueKeyGen { | 454 struct _CPDF_UniqueKeyGen { |
459 void Generate(int count, ...); | 455 void Generate(int count, ...); |
460 FX_CHAR m_Key[128]; | 456 FX_CHAR m_Key[128]; |
461 int m_KeyLen; | 457 int m_KeyLen; |
462 }; | 458 }; |
OLD | NEW |