commondecls.h

来自「常好且全面的jpeg图像压缩算法」· C头文件 代码 · 共 26 行

H
26
字号
#include <stdio.h>#include <stddef.h>#include  <stdlib.h>#define SIZEOF(object)  ((size_t) sizeof(object))typedef unsigned char JSAMPLE;typedef JSAMPLE  *JSAMPROW;  /* ptr to one image row of pixel samples. */typedef JSAMPROW *JSAMPARRAY;   /* ptr to some rows (a 2-D sample array) */typedef long INT32;/* Datatype used for image dimensions.  The JPEG standard only supports * images up to 64K*64K due to 16-bit fields in SOF markers.  Therefore * "unsigned int" is sufficient on all machines.  However, if you need to * handle larger images and you don't mind deviating from the spec, you * can change this datatype. */typedef unsigned int JDIMENSION; /*usigned int is 32 bits*/typedef unsigned char UINT8;/* UINT16 must hold at least the values 0..65535. */typedef unsigned short UINT16;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?