| 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> |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 FX_BOOL m_bImageMask; | 595 FX_BOOL m_bImageMask; |
| 596 FX_BOOL m_bDoBpcCheck; | 596 FX_BOOL m_bDoBpcCheck; |
| 597 FX_BOOL m_bColorKey; | 597 FX_BOOL m_bColorKey; |
| 598 FX_BOOL m_bHasMask; | 598 FX_BOOL m_bHasMask; |
| 599 FX_BOOL m_bStdCS; | 599 FX_BOOL m_bStdCS; |
| 600 DIB_COMP_DATA* m_pCompData; | 600 DIB_COMP_DATA* m_pCompData; |
| 601 uint8_t* m_pLineBuf; | 601 uint8_t* m_pLineBuf; |
| 602 uint8_t* m_pMaskedLine; | 602 uint8_t* m_pMaskedLine; |
| 603 std::unique_ptr<CFX_DIBitmap> m_pCachedBitmap; | 603 std::unique_ptr<CFX_DIBitmap> m_pCachedBitmap; |
| 604 std::unique_ptr<CCodec_ScanlineDecoder> m_pDecoder; | 604 std::unique_ptr<CCodec_ScanlineDecoder> m_pDecoder; |
| 605 CCodec_Jbig2Context* m_pJbig2Context; | |
| 606 CPDF_DIBSource* m_pMask; | 605 CPDF_DIBSource* m_pMask; |
| 607 std::unique_ptr<CPDF_StreamAcc> m_pGlobalStream; | 606 std::unique_ptr<CPDF_StreamAcc> m_pGlobalStream; |
| 607 std::unique_ptr<CCodec_Jbig2Context> m_pJbig2Context; |
| 608 CPDF_Stream* m_pMaskStream; | 608 CPDF_Stream* m_pMaskStream; |
| 609 int m_Status; | 609 int m_Status; |
| 610 }; | 610 }; |
| 611 | 611 |
| 612 #define FPDF_HUGE_IMAGE_SIZE 60000000 | 612 #define FPDF_HUGE_IMAGE_SIZE 60000000 |
| 613 class CPDF_DIBTransferFunc : public CFX_FilteredDIB { | 613 class CPDF_DIBTransferFunc : public CFX_FilteredDIB { |
| 614 public: | 614 public: |
| 615 explicit CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); | 615 explicit CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); |
| 616 ~CPDF_DIBTransferFunc() override; | 616 ~CPDF_DIBTransferFunc() override; |
| 617 | 617 |
| 618 // CFX_FilteredDIB | 618 // CFX_FilteredDIB |
| 619 FXDIB_Format GetDestFormat() override; | 619 FXDIB_Format GetDestFormat() override; |
| 620 FX_ARGB* GetDestPalette() override; | 620 FX_ARGB* GetDestPalette() override; |
| 621 void TranslateScanline(uint8_t* dest_buf, | 621 void TranslateScanline(uint8_t* dest_buf, |
| 622 const uint8_t* src_buf) const override; | 622 const uint8_t* src_buf) const override; |
| 623 void TranslateDownSamples(uint8_t* dest_buf, | 623 void TranslateDownSamples(uint8_t* dest_buf, |
| 624 const uint8_t* src_buf, | 624 const uint8_t* src_buf, |
| 625 int pixels, | 625 int pixels, |
| 626 int Bpp) const override; | 626 int Bpp) const override; |
| 627 | 627 |
| 628 const uint8_t* m_RampR; | 628 const uint8_t* m_RampR; |
| 629 const uint8_t* m_RampG; | 629 const uint8_t* m_RampG; |
| 630 const uint8_t* m_RampB; | 630 const uint8_t* m_RampB; |
| 631 }; | 631 }; |
| 632 | 632 |
| 633 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 633 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| OLD | NEW |