equal
deleted
inserted
replaced
39 jinit_c_prep_controller(cinfo, FALSE /* never need full buffer here */); |
39 jinit_c_prep_controller(cinfo, FALSE /* never need full buffer here */); |
40 } |
40 } |
41 /* Forward DCT */ |
41 /* Forward DCT */ |
42 jinit_forward_dct(cinfo); |
42 jinit_forward_dct(cinfo); |
43 /* Entropy encoding: either Huffman or arithmetic coding. */ |
43 /* Entropy encoding: either Huffman or arithmetic coding. */ |
44 if (cinfo->arith_code) { |
44 if (cinfo->arith_code) |
45 ERREXIT(cinfo, JERR_ARITH_NOTIMPL); |
45 jinit_arith_encoder(cinfo); |
46 } else { |
46 else { |
47 if (cinfo->progressive_mode) { |
47 jinit_huff_encoder(cinfo); |
48 #ifdef C_PROGRESSIVE_SUPPORTED |
|
49 jinit_phuff_encoder(cinfo); |
|
50 #else |
|
51 ERREXIT(cinfo, JERR_NOT_COMPILED); |
|
52 #endif |
|
53 } else |
|
54 jinit_huff_encoder(cinfo); |
|
55 } |
48 } |
56 |
49 |
57 /* Need a full-image coefficient buffer in any multi-pass mode. */ |
50 /* Need a full-image coefficient buffer in any multi-pass mode. */ |
58 jinit_c_coef_controller(cinfo, |
51 jinit_c_coef_controller(cinfo, |
59 (boolean) (cinfo->num_scans > 1 || cinfo->optimize_coding)); |
52 (boolean) (cinfo->num_scans > 1 || cinfo->optimize_coding)); |