summaryrefslogtreecommitdiff
path: root/trunk/jctrans.c
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-11-23 05:49:54 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-11-23 05:49:54 +0000
commitc0b0d27a4200e7be2f880aa38e48a785775a5f28 (patch)
treea2df80779541d7c9d674954ccb96b3e2b5ba857a /trunk/jctrans.c
parent4f072976b4547d7bc1cd08b2d5897f006e2788a9 (diff)
Support arithmetic encoding and decoding
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@299 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/jctrans.c')
-rw-r--r--trunk/jctrans.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/trunk/jctrans.c b/trunk/jctrans.c
index c7956b5..916e872 100644
--- a/trunk/jctrans.c
+++ b/trunk/jctrans.c
@@ -174,7 +174,11 @@ transencode_master_selection (j_compress_ptr cinfo,
/* Entropy encoding: either Huffman or arithmetic coding. */
if (cinfo->arith_code) {
+#ifdef C_ARITH_CODING_SUPPORTED
+ jinit_arith_encoder(cinfo);
+#else
ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
+#endif
} else {
if (cinfo->progressive_mode) {
#ifdef C_PROGRESSIVE_SUPPORTED