| 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 #include "core/fxcodec/include/fx_codec.h" |
| 7 #include "core/fxge/include/fx_dib.h" | 8 #include "core/fxge/include/fx_dib.h" |
| 8 #include "core/fxge/include/fx_ge.h" | 9 #include "core/fxge/include/fx_ge.h" |
| 9 #include "core/include/fxcodec/fx_codec.h" | |
| 10 | 10 |
| 11 class CFX_Palette { | 11 class CFX_Palette { |
| 12 public: | 12 public: |
| 13 CFX_Palette(); | 13 CFX_Palette(); |
| 14 ~CFX_Palette(); | 14 ~CFX_Palette(); |
| 15 | 15 |
| 16 FX_BOOL BuildPalette(const CFX_DIBSource* pBitmap); | 16 FX_BOOL BuildPalette(const CFX_DIBSource* pBitmap); |
| 17 uint32_t* GetPalette() const { return m_pPalette; } | 17 uint32_t* GetPalette() const { return m_pPalette; } |
| 18 uint32_t* GetColorLut() const { return m_cLut; } | 18 uint32_t* GetColorLut() const { return m_cLut; } |
| 19 uint32_t* GetAmountLut() const { return m_aLut; } | 19 uint32_t* GetAmountLut() const { return m_aLut; } |
| (...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 if (!m_bExtBuf) { | 1095 if (!m_bExtBuf) { |
| 1096 FX_Free(m_pBuffer); | 1096 FX_Free(m_pBuffer); |
| 1097 } | 1097 } |
| 1098 m_bExtBuf = FALSE; | 1098 m_bExtBuf = FALSE; |
| 1099 m_pBuffer = dest_buf; | 1099 m_pBuffer = dest_buf; |
| 1100 m_bpp = (uint8_t)dest_format; | 1100 m_bpp = (uint8_t)dest_format; |
| 1101 m_AlphaFlag = (uint8_t)(dest_format >> 8); | 1101 m_AlphaFlag = (uint8_t)(dest_format >> 8); |
| 1102 m_Pitch = dest_pitch; | 1102 m_Pitch = dest_pitch; |
| 1103 return TRUE; | 1103 return TRUE; |
| 1104 } | 1104 } |
| OLD | NEW |