| 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_FXCODEC_CODEC_CODEC_INT_H_ | 7 #ifndef CORE_FXCODEC_CODEC_CODEC_INT_H_ |
| 8 #define CORE_FXCODEC_CODEC_CODEC_INT_H_ | 8 #define CORE_FXCODEC_CODEC_CODEC_INT_H_ |
| 9 | 9 |
| 10 #include <limits.h> | 10 #include <limits.h> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 int nComps, | 40 int nComps, |
| 41 int bpc) override; | 41 int bpc) override; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class CCodec_ScanlineDecoder : public ICodec_ScanlineDecoder { | 44 class CCodec_ScanlineDecoder : public ICodec_ScanlineDecoder { |
| 45 public: | 45 public: |
| 46 CCodec_ScanlineDecoder(); | 46 CCodec_ScanlineDecoder(); |
| 47 ~CCodec_ScanlineDecoder() override; | 47 ~CCodec_ScanlineDecoder() override; |
| 48 | 48 |
| 49 // ICodec_ScanlineDecoder | 49 // ICodec_ScanlineDecoder |
| 50 FX_DWORD GetSrcOffset() override { return -1; } | |
| 51 void DownScale(int dest_width, int dest_height) override; | 50 void DownScale(int dest_width, int dest_height) override; |
| 52 const uint8_t* GetScanline(int line) override; | 51 const uint8_t* GetScanline(int line) override; |
| 53 FX_BOOL SkipToScanline(int line, IFX_Pause* pPause) override; | 52 FX_BOOL SkipToScanline(int line, IFX_Pause* pPause) override; |
| 54 int GetWidth() override { return m_OutputWidth; } | 53 int GetWidth() override { return m_OutputWidth; } |
| 55 int GetHeight() override { return m_OutputHeight; } | 54 int GetHeight() override { return m_OutputHeight; } |
| 56 int CountComps() override { return m_nComps; } | 55 int CountComps() override { return m_nComps; } |
| 57 int GetBPC() override { return m_bpc; } | 56 int GetBPC() override { return m_bpc; } |
| 58 FX_BOOL IsColorTransformed() override { return m_bColorTransformed; } | 57 FX_BOOL IsColorTransformed() override { return m_bColorTransformed; } |
| 59 void ClearImageData() override { m_pDataCache.reset(); } | 58 void ClearImageData() override { m_pDataCache.reset(); } |
| 60 | 59 |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, | 418 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, |
| 420 OPJ_SIZE_T nb_bytes, | 419 OPJ_SIZE_T nb_bytes, |
| 421 void* p_user_data); | 420 void* p_user_data); |
| 422 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, | 421 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, |
| 423 OPJ_SIZE_T nb_bytes, | 422 OPJ_SIZE_T nb_bytes, |
| 424 void* p_user_data); | 423 void* p_user_data); |
| 425 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); | 424 OPJ_OFF_T opj_skip_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); |
| 426 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); | 425 OPJ_BOOL opj_seek_from_memory(OPJ_OFF_T nb_bytes, void* p_user_data); |
| 427 | 426 |
| 428 #endif // CORE_FXCODEC_CODEC_CODEC_INT_H_ | 427 #endif // CORE_FXCODEC_CODEC_CODEC_INT_H_ |
| OLD | NEW |