diff options
author | Nicolas Pena <npm@chromium.org> | 2018-09-21 21:09:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-21 21:09:32 +0000 |
commit | 36f4841d67037ce640273ce357d2d33f3e8567c3 (patch) | |
tree | 69131ec9c480f8b02ca945ced6ff32db07e5eb79 /core/fxcodec/codec/ccodec_faxmodule.h | |
parent | fbea60879c6a8db4604e6e0f23216c6ee5f238df (diff) | |
download | pdfium-36f4841d67037ce640273ce357d2d33f3e8567c3.tar.xz |
Cleanup in CCodec_FaxModule
This CL moves FaxG4Decode to the class where it's implemented. It should
remain there because it calls FaxG4GetRow, declared and used in the cpp
file. Do some ++ cleanup while at it.
This CL also makes CCodec_FaxModule own some methods that were
namespaced since doing so allows removing a bunch of parameters.
Change-Id: I24787f5668c7273b9bdb4009c3d0b29590c5552f
Reviewed-on: https://pdfium-review.googlesource.com/42950
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_faxmodule.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_faxmodule.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/fxcodec/codec/ccodec_faxmodule.h b/core/fxcodec/codec/ccodec_faxmodule.h index 3d546d741a..e43aea370b 100644 --- a/core/fxcodec/codec/ccodec_faxmodule.h +++ b/core/fxcodec/codec/ccodec_faxmodule.h @@ -36,6 +36,15 @@ class CCodec_FaxModule { std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, uint32_t* dest_size); #endif // _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ + + // Return the ending bit position. + static int FaxG4Decode(const uint8_t* src_buf, + uint32_t src_size, + int starting_bitpos, + int width, + int height, + int pitch, + uint8_t* dest_buf); }; #endif // CORE_FXCODEC_CODEC_CCODEC_FAXMODULE_H_ |