summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/mqc.h
diff options
context:
space:
mode:
authorKal Conley <kcconley@gmail.com>2015-12-27 20:14:47 +0100
committerEven Rouault <even.rouault@spatialys.com>2016-05-21 15:18:07 +0200
commit426bf8d337715f7b2e867cb2643128e5c2e3b5bb (patch)
treec875c4770bbb67d6cec830e8df22d2a67f20d7dc /src/lib/openjp2/mqc.h
parentd0babeb6f6cdd1887308137df37bb2b4724a6592 (diff)
Move some MQC functions into a header for speed
Allow these hot functions to be inlined. This boosts decode performance by ~10%.
Diffstat (limited to 'src/lib/openjp2/mqc.h')
-rw-r--r--src/lib/openjp2/mqc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/openjp2/mqc.h b/src/lib/openjp2/mqc.h
index 69a2d460..574c599b 100644
--- a/src/lib/openjp2/mqc.h
+++ b/src/lib/openjp2/mqc.h
@@ -82,6 +82,8 @@ typedef struct opj_mqc {
#endif
} opj_mqc_t;
+#include "mqc_inl.h"
+
/** @name Exported functions */
/*@{*/
/* ----------------------------------------------------------------------- */
@@ -198,7 +200,7 @@ Decode a symbol
@param mqc MQC handle
@return Returns the decoded symbol (0 or 1)
*/
-OPJ_INT32 opj_mqc_decode(opj_mqc_t * const mqc);
+static INLINE OPJ_INT32 opj_mqc_decode(opj_mqc_t * const mqc);
/* ----------------------------------------------------------------------- */
/*@}*/