diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2010-11-23 05:49:54 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2010-11-23 05:49:54 +0000 |
commit | ce86c0f08fad389a2650391433c578f8658e3d3b (patch) | |
tree | f476b2fbe1d911e583101ab04dba1b3da0a0ab42 /jcinit.c | |
parent | a5b8bee7f935e4f2d586bd81e9b6e07886a3712a (diff) |
Support arithmetic encoding and decoding
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@299 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jcinit.c')
-rw-r--r-- | jcinit.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -42,7 +42,11 @@ jinit_compress_master (j_compress_ptr cinfo) jinit_forward_dct(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 |