summaryrefslogtreecommitdiff
path: root/core/include/fxcodec/fx_codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/include/fxcodec/fx_codec.h')
-rw-r--r--core/include/fxcodec/fx_codec.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/core/include/fxcodec/fx_codec.h b/core/include/fxcodec/fx_codec.h
index 796fbf0c11..0cacbde24d 100644
--- a/core/include/fxcodec/fx_codec.h
+++ b/core/include/fxcodec/fx_codec.h
@@ -7,6 +7,8 @@
#ifndef CORE_INCLUDE_FXCODEC_FX_CODEC_H_
#define CORE_INCLUDE_FXCODEC_FX_CODEC_H_
+#include <vector>
+
#include "../../../third_party/base/nonstd_unique_ptr.h"
#include "../fxcrt/fx_basic.h"
#include "../fxcrt/fx_coordinates.h"
@@ -80,6 +82,7 @@ class ICodec_BasicModule {
int nComps,
int bpc) = 0;
};
+
class ICodec_ScanlineDecoder {
public:
virtual ~ICodec_ScanlineDecoder() {}
@@ -88,7 +91,7 @@ class ICodec_ScanlineDecoder {
virtual void DownScale(int dest_width, int dest_height) = 0;
- virtual uint8_t* GetScanline(int line) = 0;
+ virtual const uint8_t* GetScanline(int line) = 0;
virtual FX_BOOL SkipToScanline(int line, IFX_Pause* pPause) = 0;
@@ -104,6 +107,7 @@ class ICodec_ScanlineDecoder {
virtual void ClearImageData() = 0;
};
+
class ICodec_FlateModule {
public:
virtual ~ICodec_FlateModule() {}
@@ -228,10 +232,10 @@ class ICodec_JpxModule {
FX_DWORD* height,
FX_DWORD* components) = 0;
- virtual FX_BOOL Decode(CJPX_Decoder* pDecoder,
- uint8_t* dest_data,
- int pitch,
- uint8_t* offsets) = 0;
+ virtual bool Decode(CJPX_Decoder* pDecoder,
+ uint8_t* dest_data,
+ int pitch,
+ const std::vector<uint8_t>& offsets) = 0;
virtual void DestroyDecoder(CJPX_Decoder* pDecoder) = 0;
};