| 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_INCLUDE_FXGE_FX_GE_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FX_GE_H_ |
| 8 #define CORE_INCLUDE_FXGE_FX_GE_H_ | 8 #define CORE_INCLUDE_FXGE_FX_GE_H_ |
| 9 | 9 |
| 10 #include "fx_dib.h" | 10 #include "fx_dib.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 protected: | 126 protected: |
| 127 | 127 |
| 128 ClipType m_Type; | 128 ClipType m_Type; |
| 129 | 129 |
| 130 FX_RECT m_Box; | 130 FX_RECT m_Box; |
| 131 | 131 |
| 132 CFX_DIBitmapRef m_Mask; | 132 CFX_DIBitmapRef m_Mask; |
| 133 | 133 |
| 134 void IntersectMaskRect(FX_RECT rect, FX_RECT mask_box
, CFX_DIBitmapRef Mask); | 134 void IntersectMaskRect(FX_RECT rect, FX_RECT mask_box
, CFX_DIBitmapRef Mask); |
| 135 }; | 135 }; |
| 136 extern const uint8_t g_GammaRamp[256]; | |
| 137 extern const uint8_t g_GammaInverse[256]; | |
| 138 #define FX_GAMMA(value) (value) | 136 #define FX_GAMMA(value) (value) |
| 139 #define FX_GAMMA_INVERSE(value) (value) | 137 #define FX_GAMMA_INVERSE(value) (value) |
| 140 inline FX_ARGB ArgbGamma(FX_ARGB argb) | 138 inline FX_ARGB ArgbGamma(FX_ARGB argb) |
| 141 { | 139 { |
| 142 return argb; | 140 return argb; |
| 143 } | 141 } |
| 144 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb) | 142 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb) |
| 145 { | 143 { |
| 146 return argb; | 144 return argb; |
| 147 } | 145 } |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); | 721 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); |
| 724 | 722 |
| 725 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); | 723 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); |
| 726 | 724 |
| 727 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); | 725 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); |
| 728 | 726 |
| 729 void WritePSBinary(const uint8_t* data, int len); | 727 void WritePSBinary(const uint8_t* data, int len); |
| 730 }; | 728 }; |
| 731 | 729 |
| 732 #endif // CORE_INCLUDE_FXGE_FX_GE_H_ | 730 #endif // CORE_INCLUDE_FXGE_FX_GE_H_ |
| OLD | NEW |