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 #include <vector> | |
12 | 13 |
13 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h" |
14 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" | 15 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" |
15 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" | 16 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" |
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" | 18 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" |
18 | 19 |
19 class CCodec_Jbig2Context; | 20 class CCodec_Jbig2Context; |
20 class CCodec_ScanlineDecoder; | 21 class CCodec_ScanlineDecoder; |
21 class CFX_FontCache; | 22 class CFX_FontCache; |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
611 | 612 |
612 #define FPDF_HUGE_IMAGE_SIZE 60000000 | 613 #define FPDF_HUGE_IMAGE_SIZE 60000000 |
613 class CPDF_DIBTransferFunc : public CFX_FilteredDIB { | 614 class CPDF_DIBTransferFunc : public CFX_FilteredDIB { |
614 public: | 615 public: |
615 explicit CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); | 616 explicit CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); |
616 ~CPDF_DIBTransferFunc() override; | 617 ~CPDF_DIBTransferFunc() override; |
617 | 618 |
618 // CFX_FilteredDIB | 619 // CFX_FilteredDIB |
619 FXDIB_Format GetDestFormat() override; | 620 FXDIB_Format GetDestFormat() override; |
620 FX_ARGB* GetDestPalette() override; | 621 FX_ARGB* GetDestPalette() override; |
621 void TranslateScanline(uint8_t* dest_buf, | 622 void TranslateScanline(std::vector<uint8_t>* dest_buf, |
Lei Zhang
2016/07/20 23:09:19
Can we flip the parameters so the in-param comes b
Wei Li
2016/07/21 16:47:07
Done.
| |
622 const uint8_t* src_buf) const override; | 623 const uint8_t* src_buf) const override; |
623 void TranslateDownSamples(uint8_t* dest_buf, | 624 void TranslateDownSamples(uint8_t* dest_buf, |
624 const uint8_t* src_buf, | 625 const uint8_t* src_buf, |
625 int pixels, | 626 int pixels, |
626 int Bpp) const override; | 627 int Bpp) const override; |
627 | 628 |
628 const uint8_t* m_RampR; | 629 const uint8_t* m_RampR; |
629 const uint8_t* m_RampG; | 630 const uint8_t* m_RampG; |
630 const uint8_t* m_RampB; | 631 const uint8_t* m_RampB; |
631 }; | 632 }; |
632 | 633 |
633 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 634 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
OLD | NEW |