📄 gif_data.h
字号:
#define RIGHT_SHIFT(x,shft) ((x) >> (shft))
#define METHODDEF static /* a function called through method pointers */
#define LOCAL static /* a function used only in its module */
#define GLOBAL /* a function referenced thru EXTERNs */
#ifdef __cplusplus
#define EXTERN extern "C" /* a reference to a GLOBAL function */
#else
#define EXTERN extern /* a reference to a GLOBAL function */
#endif
/* Here is the pseudo-keyword for declaring pointers that must be "far"
* on 80x86 machines. Most of the specialized coding for 80x86 is handled
* by just saying "FAR *" where such a pointer is needed. In a few places
* explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol.
*/
#ifdef NEED_FAR_POINTERS
#define FAR far
#else
#define FAR
#endif
/* Data structures for images containing either samples or coefficients. */
/* Note that the topmost (leftmost) index is always color component. */
/* On 80x86 machines, the image arrays are too big for near pointers, */
/* but the pointer arrays can fit in near memory. */
typedef JSAMPLE FAR *JSAMPROW; /* ptr to one image row of pixel samples. */
typedef JSAMPROW *JSAMPARRAY; /* ptr to some rows (a 2-D sample array) */
typedef JSAMPARRAY *JSAMPIMAGE; /* a 3-D sample array: top index is color */
/* Working data for compression */
typedef unsigned int JDIMENSION;
typedef enum {
GIF_UNKNOWN, /* error/unspecified */
GIF_GRAYSCALE, /* monochrome */
GIF_RGB, /* red/green/blue */
GIF_YCbCr, /* Y/Cb/Cr (also known as YUV) */
GIF_CMYK, /* C/M/Y/K */
GIF_YCCK /* Y/Cb/Cr/K */
} GIF_COLOR_SPACE;
struct Decompress_info_struct {
JDIMENSION image_width; /* nominal image width (from SOF marker) */
unsigned int image_height; /* nominal image height */
int num_components; /* # of color components in JPEG image */
GIF_COLOR_SPACE out_color_space; /* colorspace for output */
boolean quantize_colors; /* TRUE=colormapped output wanted */
boolean enable_2pass_quant;
/* the following are ignored if not quantize_colors: */
uchar dither_mode; /* type of color dithering to use */
int desired_number_of_colors; /* max # colors to use in created colormap */
JDIMENSION output_width; /* scaled image width */
JDIMENSION output_height; /* scaled image height */
int out_color_components; /* # of color components in out_color_space */
int output_components; /* # of color components returned */
int actual_number_of_colors; /* number of entries in use */
JSAMPARRAY colormap; /* The color map as a 2-D pixel array */
JSAMPLE * sample_range_limit; /* table for fast range-limiting */
void * cquantize;
};
typedef struct Decompress_info_struct * decompress_info_ptr;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -