jpeg_dec.h
来自「这是一个JPEG解码器,里面使用了MMX,SSE等汇编指令集」· C头文件 代码 · 共 39 行
H
39 行
// Public include
// the structure returned by JPG_Decode()
typedef struct
{
// width
unsigned width;
// height
unsigned height;
// scan length
unsigned scanlength;
// pointer to RGB data
void* pRGB;
// bits per pixel
unsigned bitsPixel;
// number of components
unsigned Nf;
} JPEGIMAGE;
// prototypes
int __stdcall JPEG_Decode(char* bufIn, int size, JPEGIMAGE** pImg, int options);
void __stdcall JPEG_Free(JPEGIMAGE* pImg);
// error codes
enum
{
// unexpected end of file
JPEG_EOF = 0,
// out of memory
JPEG_OUTOFMEM,
// no error
JPEG_SUCCESS,
// cpu not supported
JPEG_CPUNOTSUPPORTED,
// bad file
JPEG_BADFILE,
// format not supported
JPEG_FORMATNOTSUPPORTED
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?