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 CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h" | 13 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h" |
14 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" |
15 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" | 15 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" |
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" | 17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" |
18 | 18 |
19 class CPDF_PageObjectHolder; | 19 class CPDF_PageObjectHolder; |
20 class CPDF_PageRenderCache; | 20 class CPDF_PageRenderCache; |
21 class CPDF_RenderStatus; | 21 class CPDF_RenderStatus; |
22 class CFX_GlyphBitmap; | 22 class CFX_GlyphBitmap; |
23 class CFX_ImageTransformer; | 23 class CFX_ImageTransformer; |
24 class CPDF_ImageCacheEntry; | 24 class CPDF_ImageCacheEntry; |
25 class CPDF_ImageLoaderHandle; | 25 class CPDF_ImageLoaderHandle; |
26 class ICodec_ScanlineDecoder; | 26 class CCodec_ScanlineDecoder; |
27 class CPDF_Type3Font; | 27 class CPDF_Type3Font; |
28 class CPDF_Type3Cache; | 28 class CPDF_Type3Cache; |
29 class CPDF_Type3Char; | 29 class CPDF_Type3Char; |
30 class CPDF_TransferFunc; | 30 class CPDF_TransferFunc; |
31 class CPDF_Document; | 31 class CPDF_Document; |
32 class CPDF_Object; | 32 class CPDF_Object; |
33 class CFX_FontCache; | 33 class CFX_FontCache; |
34 class CPDF_Font; | 34 class CPDF_Font; |
35 class CPDF_PageObject; | 35 class CPDF_PageObject; |
36 class CPDF_PathObject; | 36 class CPDF_PathObject; |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 FX_BOOL m_bDefaultDecode; | 598 FX_BOOL m_bDefaultDecode; |
599 FX_BOOL m_bImageMask; | 599 FX_BOOL m_bImageMask; |
600 FX_BOOL m_bDoBpcCheck; | 600 FX_BOOL m_bDoBpcCheck; |
601 FX_BOOL m_bColorKey; | 601 FX_BOOL m_bColorKey; |
602 FX_BOOL m_bHasMask; | 602 FX_BOOL m_bHasMask; |
603 FX_BOOL m_bStdCS; | 603 FX_BOOL m_bStdCS; |
604 DIB_COMP_DATA* m_pCompData; | 604 DIB_COMP_DATA* m_pCompData; |
605 uint8_t* m_pLineBuf; | 605 uint8_t* m_pLineBuf; |
606 uint8_t* m_pMaskedLine; | 606 uint8_t* m_pMaskedLine; |
607 std::unique_ptr<CFX_DIBitmap> m_pCachedBitmap; | 607 std::unique_ptr<CFX_DIBitmap> m_pCachedBitmap; |
608 std::unique_ptr<ICodec_ScanlineDecoder> m_pDecoder; | 608 std::unique_ptr<CCodec_ScanlineDecoder> m_pDecoder; |
609 void* m_pJbig2Context; | 609 void* m_pJbig2Context; |
610 CPDF_DIBSource* m_pMask; | 610 CPDF_DIBSource* m_pMask; |
611 std::unique_ptr<CPDF_StreamAcc> m_pGlobalStream; | 611 std::unique_ptr<CPDF_StreamAcc> m_pGlobalStream; |
612 CPDF_Stream* m_pMaskStream; | 612 CPDF_Stream* m_pMaskStream; |
613 int m_Status; | 613 int m_Status; |
614 }; | 614 }; |
615 | 615 |
616 #define FPDF_HUGE_IMAGE_SIZE 60000000 | 616 #define FPDF_HUGE_IMAGE_SIZE 60000000 |
617 class CPDF_DIBTransferFunc : public CFX_FilteredDIB { | 617 class CPDF_DIBTransferFunc : public CFX_FilteredDIB { |
618 public: | 618 public: |
619 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); | 619 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); |
620 ~CPDF_DIBTransferFunc() override; | 620 ~CPDF_DIBTransferFunc() override; |
621 | 621 |
622 // CFX_FilteredDIB | 622 // CFX_FilteredDIB |
623 FXDIB_Format GetDestFormat() override; | 623 FXDIB_Format GetDestFormat() override; |
624 FX_ARGB* GetDestPalette() override { return NULL; } | 624 FX_ARGB* GetDestPalette() override { return NULL; } |
625 void TranslateScanline(uint8_t* dest_buf, | 625 void TranslateScanline(uint8_t* dest_buf, |
626 const uint8_t* src_buf) const override; | 626 const uint8_t* src_buf) const override; |
627 void TranslateDownSamples(uint8_t* dest_buf, | 627 void TranslateDownSamples(uint8_t* dest_buf, |
628 const uint8_t* src_buf, | 628 const uint8_t* src_buf, |
629 int pixels, | 629 int pixels, |
630 int Bpp) const override; | 630 int Bpp) const override; |
631 | 631 |
632 const uint8_t* m_RampR; | 632 const uint8_t* m_RampR; |
633 const uint8_t* m_RampG; | 633 const uint8_t* m_RampG; |
634 const uint8_t* m_RampB; | 634 const uint8_t* m_RampB; |
635 }; | 635 }; |
636 | 636 |
637 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 637 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
OLD | NEW |