| 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_SRC_FXCODEC_CODEC_CODEC_INT_H_ | 7 #ifndef CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ |
| 8 #define CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ | 8 #define CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ |
| 9 | 9 |
| 10 #include <limits.h> | 10 #include <limits.h> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 int GetHeight() { return m_OutputHeight; } | 55 int GetHeight() { return m_OutputHeight; } |
| 56 | 56 |
| 57 int CountComps() { return m_nComps; } | 57 int CountComps() { return m_nComps; } |
| 58 | 58 |
| 59 int GetBPC() { return m_bpc; } | 59 int GetBPC() { return m_bpc; } |
| 60 | 60 |
| 61 FX_BOOL IsColorTransformed() { return m_bColorTransformed; } | 61 FX_BOOL IsColorTransformed() { return m_bColorTransformed; } |
| 62 | 62 |
| 63 void ClearImageData() { | 63 void ClearImageData() { |
| 64 if (m_pDataCache) { | |
| 65 FX_Free(m_pDataCache); | 64 FX_Free(m_pDataCache); |
| 66 } | |
| 67 m_pDataCache = NULL; | 65 m_pDataCache = NULL; |
| 68 } | 66 } |
| 69 | 67 |
| 70 protected: | 68 protected: |
| 71 int m_OrigWidth; | 69 int m_OrigWidth; |
| 72 | 70 |
| 73 int m_OrigHeight; | 71 int m_OrigHeight; |
| 74 | 72 |
| 75 int m_DownScale; | 73 int m_DownScale; |
| 76 | 74 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, | 361 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, |
| 364 OPJ_SIZE_T nb_bytes, | 362 OPJ_SIZE_T nb_bytes, |
| 365 void* p_user_data); | 363 void* p_user_data); |
| 366 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, | 364 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, |
| 367 OPJ_SIZE_T nb_bytes, | 365 OPJ_SIZE_T nb_bytes, |
| 368 void* p_user_data); | 366 void* p_user_data); |
| 369 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); | 367 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); |
| 370 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); | 368 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); |
| 371 | 369 |
| 372 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ | 370 #endif // CORE_SRC_FXCODEC_CODEC_CODEC_INT_H_ |
| OLD | NEW |