summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/mqc.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-24 15:38:21 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-24 15:38:48 +0200
commit1c5627ee7406f84cfb40809b7ac31c63342427df (patch)
treeaf950f3432f4983fc45316d35240d3bc0e5fe5bb /src/lib/openjp2/mqc.h
parent1e931fdb3655c64ab60ea5657f79309331a86485 (diff)
T1 encoder: speed-up by aggressive inlining and more cache friendly data organization
~ 9% speed improvement seen on 10980x10980 uint16 image, T36JTT_20160914T074612_B02.tif opj_compress time from 17.2s to 15.8s
Diffstat (limited to 'src/lib/openjp2/mqc.h')
-rw-r--r--src/lib/openjp2/mqc.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/openjp2/mqc.h b/src/lib/openjp2/mqc.h
index 69a2a79d..9850fed0 100644
--- a/src/lib/openjp2/mqc.h
+++ b/src/lib/openjp2/mqc.h
@@ -96,6 +96,8 @@ typedef struct opj_mqc {
OPJ_BYTE backup[OPJ_COMMON_CBLK_DATA_EXTRA];
} opj_mqc_t;
+#define BYPASS_CT_INIT 0xDEADBEEF
+
#include "mqc_inl.h"
/** @name Exported functions */
@@ -135,12 +137,7 @@ Set the current context used for coding/decoding
@param ctxno Number that identifies the context
*/
#define opj_mqc_setcurctx(mqc, ctxno) (mqc)->curctx = &(mqc)->ctxs[(OPJ_UINT32)(ctxno)]
-/**
-Encode a symbol using the MQ-coder
-@param mqc MQC handle
-@param d The symbol to be encoded (0 or 1)
-*/
-void opj_mqc_encode(opj_mqc_t *mqc, OPJ_UINT32 d);
+
/**
Flush the encoder, so that all remaining data is written
@param mqc MQC handle