summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/t2.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-08-10 16:49:47 +0200
committerEven Rouault <even.rouault@spatialys.com>2017-08-10 16:49:47 +0200
commit0b4fef6d1901254e41ab74ed681daba477d724c3 (patch)
tree75119bdedc3a63b96b8d82aa3a83fab00c6c7e4b /src/lib/openjp2/t2.h
parenta316f36dfc7cc4217bfce0ac6d23b47f90cf8fd9 (diff)
Propagate event manager down to opj_t2_encode_packet() and use it to emit an error message when the output buffer is too small
Diffstat (limited to 'src/lib/openjp2/t2.h')
-rw-r--r--src/lib/openjp2/t2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/openjp2/t2.h b/src/lib/openjp2/t2.h
index 4013b9db..a1994e82 100644
--- a/src/lib/openjp2/t2.h
+++ b/src/lib/openjp2/t2.h
@@ -76,6 +76,7 @@ Encode the packets of a tile to a destination buffer
@param tppos The position of the tile part flag in the progression order
@param pino FIXME DOC
@param t2_mode If == 0 In Threshold calculation ,If == 1 Final pass
+@param p_manager the user event manager
*/
OPJ_BOOL opj_t2_encode_packets(opj_t2_t* t2,
OPJ_UINT32 tileno,
@@ -88,7 +89,8 @@ OPJ_BOOL opj_t2_encode_packets(opj_t2_t* t2,
OPJ_UINT32 tpnum,
OPJ_INT32 tppos,
OPJ_UINT32 pino,
- J2K_T2_MODE t2_mode);
+ J2K_T2_MODE t2_mode,
+ opj_event_mgr_t *p_manager);
/**
Decode the packets of a tile from a source buffer