Path: blob/master/thirdparty/libjpeg-turbo/src/jcmaster.h
9904 views
/*1* jcmaster.h2*3* This file was part of the Independent JPEG Group's software:4* Copyright (C) 1991-1995, Thomas G. Lane.5* libjpeg-turbo Modifications:6* Copyright (C) 2016, D. R. Commander.7* For conditions of distribution and use, see the accompanying README.ijg8* file.9*10* This file contains master control structure for the JPEG compressor.11*/1213/* Private state */1415typedef enum {16main_pass, /* input data, also do first output step */17huff_opt_pass, /* Huffman code optimization pass */18output_pass /* data output pass */19} c_pass_type;2021typedef struct {22struct jpeg_comp_master pub; /* public fields */2324c_pass_type pass_type; /* the type of the current pass */2526int pass_number; /* # of passes completed */27int total_passes; /* total # of passes needed */2829int scan_number; /* current index in scan_info[] */3031/*32* This is here so we can add libjpeg-turbo version/build information to the33* global string table without introducing a new global symbol. Adding this34* information to the global string table allows one to examine a binary35* object and determine which version of libjpeg-turbo it was built from or36* linked against.37*/38const char *jpeg_version;3940} my_comp_master;4142typedef my_comp_master *my_master_ptr;434445