summaryrefslogtreecommitdiff
path: root/core/include/fxcodec
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-09-01 15:42:00 -0700
committerLei Zhang <thestig@chromium.org>2015-09-01 15:42:00 -0700
commit097297325e0d3d00556d67885547750a2e9d4b32 (patch)
treec9686a3c0b2fee3363bc247f7b71c191ed2ae6e0 /core/include/fxcodec
parent633f1e436e1cced874a44a797f02c452eb3cf958 (diff)
downloadpdfium-097297325e0d3d00556d67885547750a2e9d4b32.tar.xz
Cleanup dead code in CPDF_DIBSource::LoadJpxBitmap() and friends.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1310603006 .
Diffstat (limited to 'core/include/fxcodec')
-rw-r--r--core/include/fxcodec/fx_codec.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/core/include/fxcodec/fx_codec.h b/core/include/fxcodec/fx_codec.h
index 39fd764ea9..48c1a3086f 100644
--- a/core/include/fxcodec/fx_codec.h
+++ b/core/include/fxcodec/fx_codec.h
@@ -13,6 +13,7 @@
#include "fx_codec_provider.h"
class CFX_DIBSource;
+class CJPX_Decoder;
class ICodec_ScanlineDecoder;
class ICodec_BasicModule;
class ICodec_FaxModule;
@@ -196,28 +197,28 @@ class ICodec_JpegModule {
virtual FX_DWORD GetAvailInput(void* pContext,
uint8_t** avail_buf_ptr = NULL) = 0;
};
+
class ICodec_JpxModule {
public:
virtual ~ICodec_JpxModule() {}
- virtual void* CreateDecoder(const uint8_t* src_buf,
- FX_DWORD src_size,
- FX_BOOL useColorSpace = FALSE) = 0;
+ virtual CJPX_Decoder* CreateDecoder(const uint8_t* src_buf,
+ FX_DWORD src_size,
+ bool use_colorspace) = 0;
- virtual void GetImageInfo(void* ctx,
- FX_DWORD& width,
- FX_DWORD& height,
- FX_DWORD& codestream_nComps,
- FX_DWORD& output_nComps) = 0;
+ virtual void GetImageInfo(CJPX_Decoder* pDecoder,
+ FX_DWORD* width,
+ FX_DWORD* height,
+ FX_DWORD* components) = 0;
- virtual FX_BOOL Decode(void* ctx,
+ virtual FX_BOOL Decode(CJPX_Decoder* pDecoder,
uint8_t* dest_data,
int pitch,
- FX_BOOL bTranslateColor,
uint8_t* offsets) = 0;
- virtual void DestroyDecoder(void* ctx) = 0;
+ virtual void DestroyDecoder(CJPX_Decoder* pDecoder) = 0;
};
+
class ICodec_Jbig2Module {
public:
virtual ~ICodec_Jbig2Module() {}