PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/src/FreeImage/Source/LibMNG/libmng_chunk_descr.h

https://bitbucket.org/cabalistic/ogredeps/
C++ Header | 146 lines | 91 code | 22 blank | 33 comment | 2 complexity | 0cc8dd59341e06cc64b0f8ea69c91e13 MD5 | raw file
  1/* ************************************************************************** */
  2/* *             For conditions of distribution and use,                    * */
  3/* *                see copyright notice in libmng.h                        * */
  4/* ************************************************************************** */
  5/* *                                                                        * */
  6/* * project   : libmng                                                     * */
  7/* * file      : libmng_chunk_descr.h      copyright (c) 2007 G.Juyn        * */
  8/* * version   : 1.0.10                                                     * */
  9/* *                                                                        * */
 10/* * purpose   : Chunk descriptor functions (implementation)                * */
 11/* *                                                                        * */
 12/* * author    : G.Juyn                                                     * */
 13/* *                                                                        * */
 14/* * comment   : definition of the chunk- anf field-descriptor routines     * */
 15/* *                                                                        * */
 16/* * changes   : 1.0.9 - 12/06/2004 - G.Juyn                                * */
 17/* *             - added conditional MNG_OPTIMIZE_CHUNKREADER               * */
 18/* *                                                                        * */
 19/* *             1.0.10 - 04/08/2007 - G.Juyn                               * */
 20/* *             - added support for mPNG proposal                          * */
 21/* *             1.0.10 - 04/12/2007 - G.Juyn                               * */
 22/* *             - added support for ANG proposal                           * */
 23/* *                                                                        * */
 24/* ************************************************************************** */
 25
 26#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
 27#pragma option -A                      /* force ANSI-C */
 28#endif
 29
 30#ifndef _libmng_chunk_descr_h_
 31#define _libmng_chunk_descr_h_
 32
 33/* ************************************************************************** */
 34
 35#ifdef MNG_OPTIMIZE_CHUNKREADER
 36#if defined(MNG_INCLUDE_READ_PROCS) || defined(MNG_INCLUDE_WRITE_PROCS)
 37
 38/* ************************************************************************** */
 39
 40void mng_get_chunkheader (mng_chunkid       iChunkname,
 41                          mng_chunk_headerp pResult);
 42
 43/* ************************************************************************** */
 44
 45#define MNG_F_SPECIALFUNC(n) mng_retcode n (mng_datap   pData,    \
 46                                            mng_chunkp  pChunk,   \
 47                                            mng_uint32* piRawlen, \
 48                                            mng_uint8p* ppRawdata)
 49
 50MNG_F_SPECIALFUNC (mng_debunk_plte) ;
 51MNG_F_SPECIALFUNC (mng_debunk_trns) ;
 52MNG_F_SPECIALFUNC (mng_deflate_itxt) ;
 53MNG_F_SPECIALFUNC (mng_splt_entries) ;
 54MNG_F_SPECIALFUNC (mng_hist_entries) ;
 55
 56MNG_F_SPECIALFUNC (mng_debunk_loop) ;
 57MNG_F_SPECIALFUNC (mng_debunk_past) ;
 58MNG_F_SPECIALFUNC (mng_disc_entries) ;
 59MNG_F_SPECIALFUNC (mng_fram_remainder) ;
 60MNG_F_SPECIALFUNC (mng_save_entries) ;
 61MNG_F_SPECIALFUNC (mng_pplt_entries) ;
 62MNG_F_SPECIALFUNC (mng_drop_entries) ;
 63MNG_F_SPECIALFUNC (mng_ordr_entries) ;
 64MNG_F_SPECIALFUNC (mng_debunk_magn) ;
 65MNG_F_SPECIALFUNC (mng_evnt_entries) ;
 66MNG_F_SPECIALFUNC (mng_adat_tiles) ;
 67
 68/* ************************************************************************** */
 69
 70#define MNG_C_SPECIALFUNC(n) mng_retcode n (mng_datap  pData,   \
 71                                            mng_chunkp pChunk)
 72
 73MNG_C_SPECIALFUNC (mng_special_ihdr) ;
 74MNG_C_SPECIALFUNC (mng_special_plte) ;
 75MNG_C_SPECIALFUNC (mng_special_idat) ;
 76MNG_C_SPECIALFUNC (mng_special_iend) ;
 77MNG_C_SPECIALFUNC (mng_special_trns) ;
 78MNG_C_SPECIALFUNC (mng_special_gama) ;
 79MNG_C_SPECIALFUNC (mng_special_chrm) ;
 80MNG_C_SPECIALFUNC (mng_special_srgb) ;
 81MNG_C_SPECIALFUNC (mng_special_iccp) ;
 82MNG_C_SPECIALFUNC (mng_special_text) ;
 83MNG_C_SPECIALFUNC (mng_special_ztxt) ;
 84MNG_C_SPECIALFUNC (mng_special_itxt) ;
 85MNG_C_SPECIALFUNC (mng_special_bkgd) ;
 86MNG_C_SPECIALFUNC (mng_special_phys) ;
 87MNG_C_SPECIALFUNC (mng_special_sbit) ;
 88MNG_C_SPECIALFUNC (mng_special_splt) ;
 89MNG_C_SPECIALFUNC (mng_special_hist) ;
 90MNG_C_SPECIALFUNC (mng_special_time) ;
 91
 92MNG_C_SPECIALFUNC (mng_special_jhdr) ;
 93MNG_C_SPECIALFUNC (mng_special_jdaa) ;
 94MNG_C_SPECIALFUNC (mng_special_jdat) ;
 95MNG_C_SPECIALFUNC (mng_special_jsep) ;
 96
 97MNG_C_SPECIALFUNC (mng_special_mhdr) ;
 98MNG_C_SPECIALFUNC (mng_special_mend) ;
 99MNG_C_SPECIALFUNC (mng_special_loop) ;
100MNG_C_SPECIALFUNC (mng_special_endl) ;
101MNG_C_SPECIALFUNC (mng_special_defi) ;
102MNG_C_SPECIALFUNC (mng_special_basi) ;
103MNG_C_SPECIALFUNC (mng_special_clon) ;
104MNG_C_SPECIALFUNC (mng_special_past) ;
105MNG_C_SPECIALFUNC (mng_special_disc) ;
106MNG_C_SPECIALFUNC (mng_special_back) ;
107MNG_C_SPECIALFUNC (mng_special_fram) ;
108MNG_C_SPECIALFUNC (mng_special_move) ;
109MNG_C_SPECIALFUNC (mng_special_clip) ;
110MNG_C_SPECIALFUNC (mng_special_show) ;
111MNG_C_SPECIALFUNC (mng_special_term) ;
112MNG_C_SPECIALFUNC (mng_special_save) ;
113MNG_C_SPECIALFUNC (mng_special_seek) ;
114MNG_C_SPECIALFUNC (mng_special_expi) ;
115MNG_C_SPECIALFUNC (mng_special_fpri) ;
116MNG_C_SPECIALFUNC (mng_special_need) ;
117MNG_C_SPECIALFUNC (mng_special_phyg) ;
118
119MNG_C_SPECIALFUNC (mng_special_dhdr) ;
120MNG_C_SPECIALFUNC (mng_special_prom) ;
121MNG_C_SPECIALFUNC (mng_special_ipng) ;
122MNG_C_SPECIALFUNC (mng_special_pplt) ;
123MNG_C_SPECIALFUNC (mng_special_ijng) ;
124MNG_C_SPECIALFUNC (mng_special_drop) ;
125MNG_C_SPECIALFUNC (mng_special_dbyk) ;
126MNG_C_SPECIALFUNC (mng_special_ordr) ;
127
128MNG_C_SPECIALFUNC (mng_special_magn) ;
129MNG_C_SPECIALFUNC (mng_special_evnt) ;
130MNG_C_SPECIALFUNC (mng_special_mpng) ;
131MNG_C_SPECIALFUNC (mng_special_ahdr) ;
132MNG_C_SPECIALFUNC (mng_special_adat) ;
133MNG_C_SPECIALFUNC (mng_special_unknown) ;
134
135/* ************************************************************************** */
136
137#endif /* MNG_INCLUDE_READ_PROCS) || MNG_INCLUDE_WRITE_PROCS */
138#endif /* MNG_OPTIMIZE_CHUNKREADER */
139
140/* ************************************************************************** */
141
142#endif /* _libmng_chunk_descr_h_ */
143
144/* ************************************************************************** */
145/* * end of file                                                            * */
146/* ************************************************************************** */