jpeg_dec.inc

来自「这是一个JPEG解码器,里面使用了MMX,SSE等汇编指令集」· INC 代码 · 共 37 行

INC
37
字号
;// Public include

OPTION NOKEYWORD: <width>

;// the structure returned by JPG_Decode()
JPEGIMAGE STRUCT 4
    ;// width
    width dword ?
    ;// height
    height dword ?
    ;// scan length
    scanlength dword ?
    ;// pointer to RGB data
    pRGB dword ?
    ;// bits per pixel
    bitsPixel dword ?
    ;// number of components
    Nf dword ?
JPEGIMAGE ENDS

;// prototypes
JPEG_Decode PROTO STDCALL bufIn:dword, sizIn:dword, pBmp:dword, options:dword
JPEG_Free PROTO STDCALL img:dword

;// error codes
;// unexpected end of file
JPEG_EOF = 0
;// out of memory
JPEG_OUTOFMEM = 1
;// no error
JPEG_SUCCESS = 2
;// cpu not supported
JPEG_CPUNOTSUPPORTED = 3
;// bad file
JPEG_BADFILE = 4
;// format not supported
JPEG_FORMATNOTSUPPORTED = 5

⌨️ 快捷键说明

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