📄 libmng_data.h
字号:
mngjpeg_compp pJPEGcinfo; /* compression structure */ mngjpeg_errorp pJPEGcerr; /* error-manager compress */ mngjpeg_decompp pJPEGdinfo; /* decompression structure (JDAT) */ mngjpeg_errorp pJPEGderr; /* error-manager decompress (JDAT) */ mngjpeg_sourcep pJPEGdsrc; /* source-manager decompress (JDAT) */ mngjpeg_decompp pJPEGdinfo2; /* decompression structure (JDAA) */ mngjpeg_errorp pJPEGderr2; /* error-manager decompress (JDAA) */ mngjpeg_sourcep pJPEGdsrc2; /* source-manager decompress (JDAA) */ mng_uint8p pJPEGbuf; /* buffer for JPEG (de)compression (JDAT) */ mng_uint32 iJPEGbufmax; /* allocated space for buffer (JDAT) */ mng_uint8p pJPEGcurrent; /* current pointer into buffer (JDAT) */ mng_uint32 iJPEGbufremain; /* remaining bytes in buffer (JDAT) */ mng_uint32 iJPEGtoskip; /* bytes to skip on next input-block (JDAT) */ mng_uint8p pJPEGbuf2; /* buffer for JPEG (de)compression (JDAA) */ mng_uint32 iJPEGbufmax2; /* allocated space for buffer (JDAA) */ mng_uint8p pJPEGcurrent2; /* current pointer into buffer (JDAA) */ mng_uint32 iJPEGbufremain2; /* remaining bytes in buffer (JDAA) */ mng_uint32 iJPEGtoskip2; /* bytes to skip on next input-block (JDAA) */ mng_uint8p pJPEGrow; /* buffer for a JPEG row of samples (JDAT) */ mng_uint32 iJPEGrowlen; mng_uint8p pJPEGrow2; /* buffer for a JPEG row of samples (JDAA) */ mng_uint32 iJPEGrowlen2; mng_bool bJPEGcompress; /* indicates "compress" initialized */ mng_bool bJPEGdecompress; /* indicates "decompress" initialized (JDAT) */ mng_bool bJPEGhasheader; /* indicates "readheader" succeeded (JDAT) */ mng_bool bJPEGdecostarted; /* indicates "decompress" started (JDAT) */ mng_bool bJPEGscanstarted; /* indicates "first scan" started (JDAT) */ mng_bool bJPEGscanending; /* indicates "finish_output" suspended (JDAT) */ mng_bool bJPEGprogressive; /* indicates a progressive image (JDAT) */ mng_bool bJPEGdecompress2; /* indicates "decompress" initialized (JDAA) */ mng_bool bJPEGhasheader2; /* indicates "readheader" succeeded (JDAA) */ mng_bool bJPEGdecostarted2; /* indicates "decompress" started (JDAA) */ mng_bool bJPEGscanstarted2; /* indicates "first scan" started (JDAA) */ mng_bool bJPEGprogressive2; /* indicates a progressive image (JDAA) */ mng_fptr fStorerow2; /* internal callback to store an uncompressed/unfiltered row of JPEG-data (JDAT) */ mng_fptr fStorerow3; /* internal callback to store an uncompressed/unfiltered row of JPEG-data (JDAA) */ mng_uint32 iJPEGrow; /* row-number for current JPEG row */ mng_uint32 iJPEGalpharow; /* nr. of rows filled with alpha */ mng_uint32 iJPEGrgbrow; /* nr. of rows filled with 'color'-info */ mng_uint32 iJPEGdisprow; /* nr. of rows already displayed "on-the-fly" */#if defined(MNG_USE_SETJMP) && defined (MNG_INCLUDE_IJG6B) jmp_buf sErrorbuf; /* setjmp/longjmp buffer (error-recovery) */#endif#endif /* MNG_INCLUDE_JNG */#ifndef MNG_USE_ZLIB_CRC mng_uint32 aCRCtable [256]; /* CRC prefab table */ mng_bool bCRCcomputed; /* "has been built" indicator */#endif#ifdef MNG_OPTIMIZE_FOOTPRINT_INIT png_imgtype ePng_imgtype;#endif#if defined(MNG_NO_1_2_4BIT_SUPPORT) || defined(MNG_NO_16BIT_SUPPORT) mng_uint8 iPNGdepth; /* Real input depth */ mng_uint8 iPNGmult;#endif#ifdef MNG_OPTIMIZE_DISPLAYCALLS mng_uint32 iRawlen; /* temp vars for display processing */ mng_uint8p pRawdata;#ifndef MNG_SKIPCHUNK_BASI mng_uint16 iBASIred; mng_uint16 iBASIgreen; mng_uint16 iBASIblue; mng_bool bBASIhasalpha; mng_uint16 iBASIalpha; mng_uint8 iBASIviewable;#endif#ifndef MNG_SKIPCHUNK_CLON mng_uint16 iCLONsourceid; mng_uint16 iCLONcloneid; mng_uint8 iCLONclonetype; mng_bool bCLONhasdonotshow; mng_uint8 iCLONdonotshow; mng_uint8 iCLONconcrete; mng_bool bCLONhasloca; mng_uint8 iCLONlocationtype; mng_int32 iCLONlocationx; mng_int32 iCLONlocationy;#endif#ifndef MNG_SKIPCHUNK_DISC mng_uint32 iDISCcount; mng_uint16p pDISCids;#endif#ifndef MNG_SKIPCHUNK_FRAM mng_uint8 iTempFramemode; mng_uint8 iTempChangedelay; mng_uint32 iTempDelay; mng_uint8 iTempChangetimeout; mng_uint32 iTempTimeout; mng_uint8 iTempChangeclipping; mng_uint8 iTempCliptype; mng_int32 iTempClipl; mng_int32 iTempClipr; mng_int32 iTempClipt; mng_int32 iTempClipb;#endif#ifndef MNG_SKIPCHUNK_MOVE mng_uint16 iMOVEfromid; mng_uint16 iMOVEtoid; mng_uint8 iMOVEmovetype; mng_int32 iMOVEmovex; mng_int32 iMOVEmovey;#endif#ifndef MNG_SKIPCHUNK_CLIP mng_uint16 iCLIPfromid; mng_uint16 iCLIPtoid; mng_uint8 iCLIPcliptype; mng_int32 iCLIPclipl; mng_int32 iCLIPclipr; mng_int32 iCLIPclipt; mng_int32 iCLIPclipb;#endif#ifndef MNG_NO_DELTA_PNG mng_uint16 iDHDRobjectid; mng_uint8 iDHDRimagetype; mng_uint8 iDHDRdeltatype; mng_uint32 iDHDRblockwidth; mng_uint32 iDHDRblockheight; mng_uint32 iDHDRblockx; mng_uint32 iDHDRblocky; mng_uint8 iPROMbitdepth; mng_uint8 iPROMcolortype; mng_uint8 iPROMfilltype; mng_uint8 iPPLTtype; mng_uint32 iPPLTcount; mng_palette8ep paPPLTindexentries; mng_uint8p paPPLTalphaentries; mng_uint8p paPPLTusedentries;#endif#ifndef MNG_SKIPCHUNK_MAGN mng_uint16 iMAGNfirstid; mng_uint16 iMAGNlastid; mng_uint8 iMAGNmethodX; mng_uint16 iMAGNmX; mng_uint16 iMAGNmY; mng_uint16 iMAGNmL; mng_uint16 iMAGNmR; mng_uint16 iMAGNmT; mng_uint16 iMAGNmB; mng_uint8 iMAGNmethodY;#endif#ifndef MNG_SKIPCHUNK_PAST mng_uint16 iPASTtargetid; mng_uint8 iPASTtargettype; mng_int32 iPASTtargetx; mng_int32 iPASTtargety; mng_uint32 iPASTcount; mng_ptr pPASTsources;#endif#endif /* MNG_OPTIMIZE_DISPLAYCALLS */ } mng_data;typedef mng_data * mng_datap;/* ************************************************************************** *//* * * *//* * Internal Callback-Function prototypes * *//* * * *//* ************************************************************************** */typedef mng_retcode(*mng_displayrow) (mng_datap pData);typedef mng_retcode(*mng_restbkgdrow) (mng_datap pData);typedef mng_retcode(*mng_correctrow) (mng_datap pData);typedef mng_retcode(*mng_retrieverow) (mng_datap pData);typedef mng_retcode(*mng_storerow) (mng_datap pData);typedef mng_retcode(*mng_processrow) (mng_datap pData);typedef mng_retcode(*mng_initrowproc) (mng_datap pData);typedef mng_retcode(*mng_differrow) (mng_datap pData);typedef mng_retcode(*mng_scalerow) (mng_datap pData);typedef mng_retcode(*mng_deltarow) (mng_datap pData);typedef mng_retcode(*mng_promoterow) (mng_datap pData);typedef mng_retcode(*mng_fliprow) (mng_datap pData);typedef mng_retcode(*mng_tilerow) (mng_datap pData);typedef mng_uint8 (*mng_bitdepth_8) (mng_uint8 iB);typedef mng_uint16 (*mng_bitdepth_16) (mng_uint8 iB);typedef mng_retcode(*mng_magnify_x) (mng_datap pData, mng_uint16 iMX, mng_uint16 iML, mng_uint16 iMR, mng_uint32 iWidth, mng_uint8p iSrcline, mng_uint8p iDstline);typedef mng_retcode(*mng_magnify_y) (mng_datap pData, mng_int32 iM, mng_int32 iS, mng_uint32 iWidth, mng_uint8p iSrcline1, mng_uint8p iSrcline2, mng_uint8p iDstline);/* ************************************************************************** *//* * * *//* * Routines for swapping byte-order from and to graphic files * *//* * (This code is adapted from the libpng package) * *//* * * *//* ************************************************************************** */#ifndef MNG_BIGENDIAN_SUPPORTEDmng_uint32 mng_get_uint32 (mng_uint8p pBuf);mng_int32 mng_get_int32 (mng_uint8p pBuf);mng_uint16 mng_get_uint16 (mng_uint8p pBuf);void mng_put_uint32 (mng_uint8p pBuf, mng_uint32 i);void mng_put_int32 (mng_uint8p pBuf, mng_int32 i);void mng_put_uint16 (mng_uint8p pBuf, mng_uint16 i);#else /* MNG_BIGENDIAN_SUPPORTED */#define mng_get_uint32(P) *(mng_uint32p)(P)#define mng_get_int32(P) *(mng_int32p)(P)#define mng_get_uint16(P) *(mng_uint16p)(P)#define mng_put_uint32(P,I) *(mng_uint32p)(P) = (I)#define mng_put_int32(P,I) *(mng_int32p)(P) = (I)#define mng_put_uint16(P,I) *(mng_uint16p)(P) = (I)#endif /* MNG_BIGENDIAN_SUPPORTED *//* ************************************************************************** *//* * * *//* * Some handy(?) macro definitions * *//* * * *//* ************************************************************************** */#define MAX_COORD(a, b) (((a) > (b)) ? (a) : (b))#define MIN_COORD(a, b) (((a) < (b)) ? (a) : (b))/* ************************************************************************** */#endif /* _libmng_data_h_ *//* ************************************************************************** *//* * end of file * *//* ************************************************************************** */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -