| 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_FAXMODULE_H_ | 7 #ifndef CORE_FXCODEC_CODEC_CCODEC_FAXMODULE_H_ |
| 8 #define CORE_FXCODEC_CODEC_CCODEC_FAXMODULE_H_ | 8 #define CORE_FXCODEC_CODEC_CCODEC_FAXMODULE_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fxcrt/fx_memory.h" |
| 12 #include "core/fxcrt/fx_system.h" | 13 #include "core/fxcrt/fx_system.h" |
| 13 | 14 |
| 14 class CCodec_ScanlineDecoder; | 15 class CCodec_ScanlineDecoder; |
| 15 | 16 |
| 16 class CCodec_FaxModule { | 17 class CCodec_FaxModule { |
| 17 public: | 18 public: |
| 18 std::unique_ptr<CCodec_ScanlineDecoder> CreateDecoder(const uint8_t* src_buf, | 19 std::unique_ptr<CCodec_ScanlineDecoder> CreateDecoder(const uint8_t* src_buf, |
| 19 uint32_t src_size, | 20 uint32_t src_size, |
| 20 int width, | 21 int width, |
| 21 int height, | 22 int height, |
| 22 int K, | 23 int K, |
| 23 bool EndOfLine, | 24 bool EndOfLine, |
| 24 bool EncodedByteAlign, | 25 bool EncodedByteAlign, |
| 25 bool BlackIs1, | 26 bool BlackIs1, |
| 26 int Columns, | 27 int Columns, |
| 27 int Rows); | 28 int Rows); |
| 29 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ |
| 30 static void FaxEncode(const uint8_t* src_buf, |
| 31 int width, |
| 32 int height, |
| 33 int pitch, |
| 34 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, |
| 35 uint32_t* dest_size); |
| 36 #endif |
| 28 }; | 37 }; |
| 29 | 38 |
| 30 #endif // CORE_FXCODEC_CODEC_CCODEC_FAXMODULE_H_ | 39 #endif // CORE_FXCODEC_CODEC_CCODEC_FAXMODULE_H_ |
| OLD | NEW |