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

📄 libmng_chunk_xs.c

📁 Linux下的基于X11的图形开发环境。
💻 C
📖 第 1 页 / 共 5 页
字号:
  MNG_COPY (*aEntries, pChunk->aEntries, sizeof (mng_uint16arr))#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_HIST, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_time (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint16 *iYear,                                        mng_uint8  *iMonth,                                        mng_uint8  *iDay,                                        mng_uint8  *iHour,                                        mng_uint8  *iMinute,                                        mng_uint8  *iSecond){  mng_datap pData;  mng_timep pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_TIME, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_timep)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_tIME)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iYear   = pChunk->iYear;            /* fill the fields */   *iMonth  = pChunk->iMonth;  *iDay    = pChunk->iDay;  *iHour   = pChunk->iHour;  *iMinute = pChunk->iMinute;  *iSecond = pChunk->iSecond;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_TIME, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_mhdr (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint32 *iWidth,                                        mng_uint32 *iHeight,                                        mng_uint32 *iTicks,                                        mng_uint32 *iLayercount,                                        mng_uint32 *iFramecount,                                        mng_uint32 *iPlaytime,                                        mng_uint32 *iSimplicity){  mng_datap pData;  mng_mhdrp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_MHDR, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_mhdrp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_MHDR)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iWidth      = pChunk->iWidth;       /* fill the fields */     *iHeight     = pChunk->iHeight;  *iTicks      = pChunk->iTicks;  *iLayercount = pChunk->iLayercount;  *iFramecount = pChunk->iFramecount;  *iPlaytime   = pChunk->iPlaytime;  *iSimplicity = pChunk->iSimplicity;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_MHDR, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_loop (mng_handle  hHandle,                                        mng_handle  hChunk,                                        mng_uint8   *iLevel,                                        mng_uint32  *iRepeat,                                        mng_uint8   *iTermination,                                        mng_uint32  *iItermin,                                        mng_uint32  *iItermax,                                        mng_uint32  *iCount,                                        mng_uint32p *pSignals){  mng_datap pData;  mng_loopp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_LOOP, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_loopp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_LOOP)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iLevel       = pChunk->iLevel;      /* fill teh fields */  *iRepeat      = pChunk->iRepeat;  *iTermination = pChunk->iTermination;  *iItermin     = pChunk->iItermin;  *iItermax     = pChunk->iItermax;  *iCount       = pChunk->iCount;  *pSignals     = pChunk->pSignals;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_LOOP, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_endl (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint8  *iLevel){  mng_datap pData;  mng_endlp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_ENDL, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_endlp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_ENDL)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iLevel = pChunk->iLevel;            /* fill the field */#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_ENDL, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_defi (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint16 *iObjectid,                                        mng_uint8  *iDonotshow,                                        mng_uint8  *iConcrete,                                        mng_bool   *bHasloca,                                        mng_int32  *iXlocation,                                        mng_int32  *iYlocation,                                        mng_bool   *bHasclip,                                        mng_int32  *iLeftcb,                                        mng_int32  *iRightcb,                                        mng_int32  *iTopcb,                                        mng_int32  *iBottomcb){  mng_datap pData;  mng_defip pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_DEFI, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_defip)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_DEFI)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iObjectid  = pChunk->iObjectid;     /* fill the fields */  *iDonotshow = pChunk->iDonotshow;  *iConcrete  = pChunk->iConcrete;  *bHasloca   = pChunk->bHasloca;  *iXlocation = pChunk->iXlocation;  *iYlocation = pChunk->iYlocation;  *bHasclip   = pChunk->bHasclip;  *iLeftcb    = pChunk->iLeftcb;  *iRightcb   = pChunk->iRightcb;  *iTopcb     = pChunk->iTopcb;  *iBottomcb  = pChunk->iBottomcb;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_DEFI, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_basi (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint32 *iWidth,                                        mng_uint32 *iHeight,                                        mng_uint8  *iBitdepth,                                        mng_uint8  *iColortype,                                        mng_uint8  *iCompression,                                        mng_uint8  *iFilter,                                        mng_uint8  *iInterlace,                                        mng_uint16 *iRed,                                        mng_uint16 *iGreen,                                        mng_uint16 *iBlue,                                        mng_uint16 *iAlpha,                                        mng_uint8  *iViewable){  mng_datap pData;  mng_basip pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_BASI, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_basip)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_BASI)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iWidth       = pChunk->iWidth;      /* fill the fields */  *iHeight      = pChunk->iHeight;  *iBitdepth    = pChunk->iBitdepth;  *iColortype   = pChunk->iColortype;  *iCompression = pChunk->iCompression;  *iFilter      = pChunk->iFilter;  *iInterlace   = pChunk->iInterlace;  *iRed         = pChunk->iRed;  *iGreen       = pChunk->iGreen;  *iBlue        = pChunk->iBlue;  *iAlpha       = pChunk->iAlpha;  *iViewable    = pChunk->iViewable;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_BASI, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_clon (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint16 *iSourceid,                                        mng_uint16 *iCloneid,                                        mng_uint8  *iClonetype,                                        mng_uint8  *iDonotshow,                                        mng_uint8  *iConcrete,                                        mng_bool   *bHasloca,                                        mng_uint8  *iLocationtype,                                        mng_int32  *iLocationx,                                        mng_int32  *iLocationy){  mng_datap pData;  mng_clonp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_CLON, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_clonp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_CLON)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iSourceid     = pChunk->iSourceid;  /* fill the fields */    *iCloneid      = pChunk->iCloneid;  *iClonetype    = pChunk->iClonetype;  *iDonotshow    = pChunk->iDonotshow;  *iConcrete     = pChunk->iConcrete;  *bHasloca      = pChunk->bHasloca;  *iLocationtype = pChunk->iLocationtype;  *iLocationx    = pChunk->iLocationx;  *iLocationy    = pChunk->iLocationy;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_CLON, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_past (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint16 *iDestid,                                        mng_uint8  *iTargettype,                                        mng_int32  *iTargetx,                                        mng_int32  *iTargety,                                        mng_uint32 *iCount){  mng_datap pData;  mng_pastp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_PAST, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_pastp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_PAST)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iDestid     = pChunk->iDestid;       /* fill the fields */  *iTargettype = pChunk->iTargettype;  *iTargetx    = pChunk->iTargetx;  *iTargety    = pChunk->iTargety;  *iCount      = pChunk->iCount;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_PAST, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_past_src (mng_handle hHandle,                                            mng_handle hChunk,                                            mng_uint32 iEntry,                                            mng_uint16 *iSourceid,                                            mng_uint8  *iComposition,                                            mng_uint8  *iOrientation,                                            mng_uint8  *iOffsettype,                                            mng_int32  *iOffsetx,                                            mng_int32  *iOffsety,                                            mng_uint8  *iBoundarytype,                                            mng_int32  *iBoundaryl,

⌨️ 快捷键说明

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