| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CCODEC_BASICMODULE_H_ | 7 #ifndef CORE_FXCODEC_CODEC_CCODEC_BASICMODULE_H_ |
| 8 #define CORE_FXCODEC_CODEC_CCODEC_BASICMODULE_H_ | 8 #define CORE_FXCODEC_CODEC_CCODEC_BASICMODULE_H_ |
| 9 | 9 |
| 10 #include <memory> |
| 11 |
| 10 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
| 11 | 13 |
| 12 class CCodec_ScanlineDecoder; | 14 class CCodec_ScanlineDecoder; |
| 13 | 15 |
| 14 class CCodec_BasicModule { | 16 class CCodec_BasicModule { |
| 15 public: | 17 public: |
| 16 CCodec_ScanlineDecoder* CreateRunLengthDecoder(const uint8_t* src_buf, | 18 std::unique_ptr<CCodec_ScanlineDecoder> CreateRunLengthDecoder( |
| 17 uint32_t src_size, | 19 const uint8_t* src_buf, |
| 18 int width, | 20 uint32_t src_size, |
| 19 int height, | 21 int width, |
| 20 int nComps, | 22 int height, |
| 21 int bpc); | 23 int nComps, |
| 24 int bpc); |
| 22 }; | 25 }; |
| 23 | 26 |
| 24 #endif // CORE_FXCODEC_CODEC_CCODEC_BASICMODULE_H_ | 27 #endif // CORE_FXCODEC_CODEC_CCODEC_BASICMODULE_H_ |
| OLD | NEW |