summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-11-24 13:58:10 -0800
committerBo Xu <bo_xu@foxitsoftware.com>2014-11-24 13:58:10 -0800
commit4643533ca3dabe945fd174caf892a3ccb6cf2fd6 (patch)
tree1931a6d5b29f3fad309eccfa61aa1a78e28d8286 /core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h
parentef619d0562b39f30943cfdc4985a0df233d00e42 (diff)
downloadpdfium-4643533ca3dabe945fd174caf892a3ccb6cf2fd6.tar.xz
Update to openjpeg r2944
BUG=429139,430566,431288 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/758593002
Diffstat (limited to 'core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h')
-rw-r--r--core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h b/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h
index e5be70ed5b..e1d41ed56f 100644
--- a/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h
+++ b/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/t1.h
@@ -103,13 +103,15 @@ typedef struct opj_t1 {
/** RAW component */
opj_raw_t *raw;
- OPJ_INT32 *data;
+ OPJ_INT32 *data;
opj_flag_t *flags;
OPJ_UINT32 w;
OPJ_UINT32 h;
OPJ_UINT32 datasize;
OPJ_UINT32 flagssize;
OPJ_UINT32 flags_stride;
+ OPJ_UINT32 data_stride;
+ OPJ_BOOL encoder;
} opj_t1_t;
#define MACRO_t1_flags(x,y) t1->flags[((x)*(t1->flags_stride))+(y)]
@@ -147,7 +149,7 @@ OPJ_BOOL opj_t1_decode_cblks( opj_t1_t* t1,
* and initializes the look-up tables of the Tier-1 coder/decoder
* @return a new T1 handle if successful, returns NULL otherwise
*/
-opj_t1_t* opj_t1_create(void);
+opj_t1_t* opj_t1_create(OPJ_BOOL isEncoder);
/**
* Destroys a previously created T1 handle