⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jpeg_dec.h

📁 这是一个JPEG解码器,里面使用了MMX,SSE等汇编指令集
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -