From 8d94b6687f27e1238f352939434704f75b330c1d Mon Sep 17 00:00:00 2001 From: rbpotter Date: Fri, 6 Jan 2017 08:10:18 -0800 Subject: Revert postscript code removal. Revert CL http://crrev.com/2608663003 in preparation for adding postscript generation to Pdfium. Note postscript generation code will not be called until additional patches land. These patches will also include modifications needed to make this code functional (currently missing a few compression functions). BUG= Review-Url: https://codereview.chromium.org/2615703002 --- core/fxcodec/codec/ccodec_faxmodule.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/fxcodec/codec/ccodec_faxmodule.h') diff --git a/core/fxcodec/codec/ccodec_faxmodule.h b/core/fxcodec/codec/ccodec_faxmodule.h index ce9e97bbe9..92e45e6719 100644 --- a/core/fxcodec/codec/ccodec_faxmodule.h +++ b/core/fxcodec/codec/ccodec_faxmodule.h @@ -9,6 +9,7 @@ #include +#include "core/fxcrt/fx_memory.h" #include "core/fxcrt/fx_system.h" class CCodec_ScanlineDecoder; @@ -25,6 +26,14 @@ class CCodec_FaxModule { bool BlackIs1, int Columns, int Rows); +#if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ + static void FaxEncode(const uint8_t* src_buf, + int width, + int height, + int pitch, + std::unique_ptr* dest_buf, + uint32_t* dest_size); +#endif }; #endif // CORE_FXCODEC_CODEC_CCODEC_FAXMODULE_H_ -- cgit v1.2.3