0N/A * reserved comment block 0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright (C) 1991-1997, Thomas G. Lane. 0N/A * This file is part of the Independent JPEG Group's software. 0N/A * For conditions of distribution and use, see the accompanying README file. 0N/A * This file contains initialization logic for the JPEG compressor. 0N/A * This routine is in charge of selecting the modules to be executed and 0N/A * making an initialization call to each one. 0N/A * Logically, this code belongs in jcmaster.c. It's split out because 0N/A * linking this routine implies linking the entire compression library. 0N/A * For a transcoding-only application, we want to be able to use jcmaster.c 0N/A * without linking in the whole library. 0N/A * Master selection of compression modules. 0N/A * This is done once at the start of processing an image. We determine 0N/A * which modules will be used and give them appropriate initialization calls. 0N/A /* Entropy encoding: either Huffman or arithmetic coding. */ 0N/A /* Need a full-image coefficient buffer in any multi-pass mode. */ 0N/A /* We can now tell the memory manager to allocate virtual arrays. */ 0N/A /* Write the datastream header (SOI) immediately. 0N/A * Frame and scan headers are postponed till later. 0N/A * This lets application insert special markers after the SOI.