diff options
author | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
commit | 9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch) | |
tree | c97037f398d714665aefccb6eb54d0969ad7030c /core/include/fxcodec/fx_codec_provider.h | |
parent | 780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff) | |
download | pdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz |
XFA: clang-format all pdfium code.
No behavior change.
Generated by:
find . -name '*.cpp' -o -name '*.h' | \
grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \
xargs ../../buildtools/mac/clang-format -i
Then manually merged https://codereview.chromium.org/1269223002/
See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion.
BUG=none
Diffstat (limited to 'core/include/fxcodec/fx_codec_provider.h')
-rw-r--r-- | core/include/fxcodec/fx_codec_provider.h | 73 |
1 files changed, 45 insertions, 28 deletions
diff --git a/core/include/fxcodec/fx_codec_provider.h b/core/include/fxcodec/fx_codec_provider.h index a465fe2460..bd4db44c89 100644 --- a/core/include/fxcodec/fx_codec_provider.h +++ b/core/include/fxcodec/fx_codec_provider.h @@ -11,50 +11,67 @@ class CFX_DIBAttribute; -class IFX_JpegProvider -{ -public: - virtual void Release() = 0; +class IFX_JpegProvider { + public: + virtual void Release() = 0; - virtual void* CreateDecoder(const uint8_t* src_buf, FX_DWORD src_size, int width, int height, int nComps, FX_BOOL ColorTransform) = 0; + virtual void* CreateDecoder(const uint8_t* src_buf, + FX_DWORD src_size, + int width, + int height, + int nComps, + FX_BOOL ColorTransform) = 0; + virtual void DestroyDecoder(void* pDecoder) = 0; - virtual void DestroyDecoder(void* pDecoder) = 0; + virtual void DownScale(void* pDecoder, int dest_width, int dest_height) = 0; - virtual void DownScale(void* pDecoder, int dest_width, int dest_height) = 0; + virtual FX_BOOL Rewind(void* pDecoder) = 0; - virtual FX_BOOL Rewind(void* pDecoder) = 0; + virtual uint8_t* GetNextLine(void* pDecoder) = 0; - virtual uint8_t* GetNextLine(void* pDecoder) = 0; + virtual FX_DWORD GetSrcOffset(void* pDecoder) = 0; - virtual FX_DWORD GetSrcOffset(void* pDecoder) = 0; + virtual FX_BOOL LoadInfo(const uint8_t* src_buf, + FX_DWORD src_size, + int& width, + int& height, + int& num_components, + int& bits_per_components, + FX_BOOL& color_transform, + uint8_t** icc_buf_ptr = NULL, + FX_DWORD* icc_length = NULL) = 0; + virtual FX_BOOL Encode(const class CFX_DIBSource* pSource, + uint8_t*& dest_buf, + FX_STRSIZE& dest_size, + int quality = 75, + const uint8_t* icc_buf = NULL, + FX_DWORD icc_length = 0) = 0; - virtual FX_BOOL LoadInfo(const uint8_t* src_buf, FX_DWORD src_size, int& width, int& height, - int& num_components, int& bits_per_components, FX_BOOL& color_transform, - uint8_t** icc_buf_ptr = NULL, FX_DWORD* icc_length = NULL) = 0; + virtual void* Start() = 0; - virtual FX_BOOL Encode(const class CFX_DIBSource* pSource, uint8_t*& dest_buf, FX_STRSIZE& dest_size, int quality = 75, - const uint8_t* icc_buf = NULL, FX_DWORD icc_length = 0) = 0; + virtual void Finish(void* pContext) = 0; - virtual void* Start() = 0; + virtual void Input(void* pContext, + const uint8_t* src_buf, + FX_DWORD src_size) = 0; - virtual void Finish(void* pContext) = 0; + virtual int ReadHeader(void* pContext, + int* width, + int* height, + int* nComps, + CFX_DIBAttribute* pAttribute = NULL) = 0; - virtual void Input(void* pContext, const uint8_t* src_buf, FX_DWORD src_size) = 0; + virtual int StartScanline(void* pContext, int down_scale) = 0; - virtual int ReadHeader(void* pContext, int* width, int* height, int* nComps, CFX_DIBAttribute* pAttribute = NULL) = 0; + virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) = 0; - virtual int StartScanline(void* pContext, int down_scale) = 0; + virtual FX_DWORD GetAvailInput(void* pContext, + uint8_t** avail_buf_ptr = NULL) = 0; - - virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) = 0; - - - virtual FX_DWORD GetAvailInput(void* pContext, uint8_t** avail_buf_ptr = NULL) = 0; - -protected: - ~IFX_JpegProvider() { } + protected: + ~IFX_JpegProvider() {} }; #endif // CORE_INCLUDE_FXCODEC_FX_CODEC_PROVIDER_H_ |