~ubuntu-branches/ubuntu/oneiric/libmng/oneiric

« back to all changes in this revision

Viewing changes to libmng_objects.h

  • Committer: Bazaar Package Importer
  • Author(s): Shiju p. Nair
  • Date: 2006-04-07 09:49:11 UTC
  • mfrom: (0.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060407094911-ay3179o63gvlh4ll
Tags: 1.0.9-1
* New upstream release. (closes: #303968, #271979)
* Patch from Aurelien Jarno <aurel32@debian.org> to support GNU/kFreeBSD.
  Closes: #314696)
* Patch from Christopher Bodenstein <cb@physicman.net> to support
  hurd-i386. (closes: #361103)
* README.Debian provide information on what options are compiled in to
  libmng.(closes: #174523)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ************************************************************************** */
2
 
/* *             For conditions of distribution and use,                    * */
3
 
/* *                see copyright notice in libmng.h                        * */
4
 
/* ************************************************************************** */
5
 
/* *                                                                        * */
6
 
/* * project   : libmng                                                     * */
7
 
/* * file      : libmng_objects.h          copyright (c) 2000-2004 G.Juyn   * */
8
 
/* * version   : 1.0.7                                                      * */
9
 
/* *                                                                        * */
10
 
/* * purpose   : Internal object structures (definition)                    * */
11
 
/* *                                                                        * */
12
 
/* * author    : G.Juyn                                                     * */
13
 
/* *                                                                        * */
14
 
/* * comment   : Definition of the internal object structures               * */
15
 
/* *                                                                        * */
16
 
/* * changes   : 0.5.1 - 05/08/2000 - G.Juyn                                * */
17
 
/* *             - changed strict-ANSI stuff                                * */
18
 
/* *                                                                        * */
19
 
/* *             0.5.2 - 05/23/2000 - G.Juyn                                * */
20
 
/* *             - changed inclusion to DISPLAY_PROCS                       * */
21
 
/* *             0.5.2 - 05/24/2000 - G.Juyn                                * */
22
 
/* *             - added global color-chunks for animations                 * */
23
 
/* *             - added global PLTE,tRNS,bKGD chunks for animation         * */
24
 
/* *             - added SAVE & SEEK animation objects                      * */
25
 
/* *             0.5.2 - 05/29/2000 - G.Juyn                                * */
26
 
/* *             - added framenr/layernr/playtime to object header          * */
27
 
/* *             0.5.2 - 05/30/2000 - G.Juyn                                * */
28
 
/* *             - added ani-objects for delta-image processing             * */
29
 
/* *             - added compression/filter/interlace fields to             * */
30
 
/* *               object-buffer for delta-image processing                 * */
31
 
/* *                                                                        * */
32
 
/* *             0.5.3 - 06/17/2000 - G.Juyn                                * */
33
 
/* *             - changed definition of aTRNSentries                       * */
34
 
/* *             0.5.3 - 06/22/2000 - G.Juyn                                * */
35
 
/* *             - added definition for PPLT animation-processing           * */
36
 
/* *                                                                        * */
37
 
/* *             0.9.2 - 08/05/2000 - G.Juyn                                * */
38
 
/* *             - changed file-prefixes                                    * */
39
 
/* *                                                                        * */
40
 
/* *             0.9.3 - 08/26/2000 - G.Juyn                                * */
41
 
/* *             - added MAGN chunk                                         * */
42
 
/* *             0.9.3 - 09/10/2000 - G.Juyn                                * */
43
 
/* *             - fixed DEFI behavior                                      * */
44
 
/* *             0.9.3 - 10/16/2000 - G.Juyn                                * */
45
 
/* *             - added support for delta-JNG                              * */
46
 
/* *             0.9.3 - 10/17/2000 - G.Juyn                                * */
47
 
/* *             - added valid-flag to stored objects for read() / display()* */
48
 
/* *             0.9.3 - 10/19/2000 - G.Juyn                                * */
49
 
/* *             - added storage for pixel-/alpha-sampledepth for delta's   * */
50
 
/* *                                                                        * */
51
 
/* *             1.0.5 - 09/13/2002 - G.Juyn                                * */
52
 
/* *             - fixed read/write of MAGN chunk                           * */
53
 
/* *             1.0.5 - 09/15/2002 - G.Juyn                                * */
54
 
/* *             - added event handling for dynamic MNG                     * */
55
 
/* *             1.0.5 - 09/20/2002 - G.Juyn                                * */
56
 
/* *             - added support for PAST                                   * */
57
 
/* *             1.0.5 - 09/23/2002 - G.Juyn                                * */
58
 
/* *             - added in-memory color-correction of abstract images      * */
59
 
/* *             1.0.5 - 10/07/2002 - G.Juyn                                * */
60
 
/* *             - fixed DISC support                                       * */
61
 
/* *                                                                        * */
62
 
/* *             1.0.6 - 10/07/2003 - G.R-P                                 * */
63
 
/* *             - added SKIPCHUNK conditionals                             * */
64
 
/* *                                                                        * */
65
 
/* *             1.0.7 - 03/24/2004 - G.R-P                                 * */
66
 
/* *             - added more SKIPCHUNK conditionals                        * */
67
 
/* *                                                                        * */
68
 
/* ************************************************************************** */
69
 
 
70
 
#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
71
 
#pragma option -A                      /* force ANSI-C */
72
 
#endif
73
 
 
74
 
#ifndef _libmng_objects_h_
75
 
#define _libmng_objects_h_
76
 
 
77
 
/* ************************************************************************** */
78
 
 
79
 
#ifdef MNG_INCLUDE_DISPLAY_PROCS
80
 
 
81
 
/* ************************************************************************** */
82
 
 
83
 
typedef mng_retcode (*mng_cleanupobject) (mng_datap    pData,
84
 
                                          mng_objectp  pHeader);
85
 
 
86
 
typedef mng_retcode (*mng_processobject) (mng_datap    pData,
87
 
                                          mng_objectp  pHeader);
88
 
 
89
 
/* ************************************************************************** */
90
 
 
91
 
typedef struct {
92
 
           mng_cleanupobject fCleanup;
93
 
           mng_processobject fProcess;
94
 
           mng_objectp       pNext;              /* for double-linked list */
95
 
           mng_objectp       pPrev;
96
 
           mng_uint32        iFramenr;
97
 
           mng_uint32        iLayernr;
98
 
           mng_uint32        iPlaytime;
99
 
        } mng_object_header;
100
 
typedef mng_object_header * mng_object_headerp;
101
 
 
102
 
/* ************************************************************************** */
103
 
 
104
 
typedef struct {                                 /* MNG specification "object-buffer" */
105
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
106
 
           mng_uint32        iRefcount;          /* reference counter */
107
 
           mng_bool          bFrozen;            /* frozen flag */
108
 
           mng_bool          bConcrete;          /* concrete flag */
109
 
           mng_bool          bViewable;          /* viewable flag */
110
 
           mng_uint32        iWidth;             /* image specifics */
111
 
           mng_uint32        iHeight;
112
 
           mng_uint8         iBitdepth;
113
 
           mng_uint8         iColortype;
114
 
           mng_uint8         iCompression;
115
 
           mng_uint8         iFilter;
116
 
           mng_uint8         iInterlace;
117
 
 
118
 
           mng_bool          bCorrected;         /* indicates if an abstract image
119
 
                                                    has already been color-corrected */
120
 
           
121
 
           mng_uint8         iAlphabitdepth;     /* used only for JNG images */
122
 
           mng_uint8         iJHDRcompression;
123
 
           mng_uint8         iJHDRinterlace;
124
 
 
125
 
           mng_uint8         iPixelsampledepth;  /* used with delta-images */
126
 
           mng_uint8         iAlphasampledepth;
127
 
 
128
 
           mng_bool          bHasPLTE;           /* PLTE chunk present */
129
 
           mng_bool          bHasTRNS;           /* tRNS chunk present */
130
 
           mng_bool          bHasGAMA;           /* gAMA chunk present */
131
 
           mng_bool          bHasCHRM;           /* cHRM chunk present */
132
 
           mng_bool          bHasSRGB;           /* sRGB chunk present */
133
 
           mng_bool          bHasICCP;           /* iCCP chunk present */
134
 
           mng_bool          bHasBKGD;           /* bKGD chunk present */
135
 
 
136
 
           mng_uint32        iPLTEcount;         /* PLTE fields */
137
 
           mng_rgbpaltab     aPLTEentries;
138
 
 
139
 
           mng_uint16        iTRNSgray;          /* tRNS fields */
140
 
           mng_uint16        iTRNSred;
141
 
           mng_uint16        iTRNSgreen;
142
 
           mng_uint16        iTRNSblue;
143
 
           mng_uint32        iTRNScount;
144
 
           mng_uint8arr      aTRNSentries;
145
 
 
146
 
           mng_uint32        iGamma;             /* gAMA fields */
147
 
 
148
 
           mng_uint32        iWhitepointx;       /* cHRM fields */
149
 
           mng_uint32        iWhitepointy;
150
 
           mng_uint32        iPrimaryredx;
151
 
           mng_uint32        iPrimaryredy;
152
 
           mng_uint32        iPrimarygreenx;
153
 
           mng_uint32        iPrimarygreeny;
154
 
           mng_uint32        iPrimarybluex;
155
 
           mng_uint32        iPrimarybluey;
156
 
 
157
 
           mng_uint8         iRenderingintent;   /* sRGB fields */
158
 
 
159
 
           mng_uint32        iProfilesize;       /* iCCP fields */
160
 
           mng_ptr           pProfile;
161
 
 
162
 
           mng_uint8         iBKGDindex;         /* bKGD fields */
163
 
           mng_uint16        iBKGDgray;
164
 
           mng_uint16        iBKGDred;
165
 
           mng_uint16        iBKGDgreen;
166
 
           mng_uint16        iBKGDblue;
167
 
 
168
 
           mng_uint32        iSamplesize;        /* size of a sample */
169
 
           mng_uint32        iRowsize;           /* size of a row of samples */
170
 
           mng_uint32        iImgdatasize;       /* size of the sample data buffer */
171
 
           mng_uint8p        pImgdata;           /* actual sample data buffer */
172
 
 
173
 
         } mng_imagedata;
174
 
typedef mng_imagedata * mng_imagedatap;
175
 
 
176
 
/* ************************************************************************** */
177
 
 
178
 
typedef struct {                                 /* MNG specification "object" */
179
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
180
 
           mng_uint16        iId;                /* object-id */
181
 
           mng_bool          bFrozen;            /* frozen flag */
182
 
           mng_bool          bVisible;           /* potential visibility flag */
183
 
           mng_bool          bViewable;          /* viewable flag */
184
 
           mng_bool          bValid;             /* marks invalid when only reading */
185
 
           mng_int32         iPosx;              /* location fields */
186
 
           mng_int32         iPosy;
187
 
           mng_bool          bClipped;           /* clipping fields */
188
 
           mng_int32         iClipl;
189
 
           mng_int32         iClipr;
190
 
           mng_int32         iClipt;
191
 
           mng_int32         iClipb;
192
 
#ifndef MNG_SKIPCHUNK_MAGN
193
 
           mng_uint8         iMAGN_MethodX;      /* magnification (MAGN) */
194
 
           mng_uint8         iMAGN_MethodY;
195
 
           mng_uint16        iMAGN_MX;
196
 
           mng_uint16        iMAGN_MY;
197
 
           mng_uint16        iMAGN_ML;
198
 
           mng_uint16        iMAGN_MR;
199
 
           mng_uint16        iMAGN_MT;
200
 
           mng_uint16        iMAGN_MB;
201
 
#endif
202
 
#ifndef MNG_SKIPCHUNK_PAST
203
 
           mng_int32         iPastx;             /* target x/y from previous PAST */
204
 
           mng_int32         iPasty;
205
 
#endif
206
 
           mng_imagedatap    pImgbuf;            /* the image-data buffer */
207
 
        } mng_image;
208
 
typedef mng_image * mng_imagep;
209
 
 
210
 
/* ************************************************************************** */
211
 
 
212
 
                                                 /* "on-the-fly" image (= object 0) */       
213
 
typedef mng_image mng_ani_image;                 /* let's (ab)use the general "object" */
214
 
typedef mng_ani_image * mng_ani_imagep;          /* that's actualy crucial, so don't change it! */
215
 
 
216
 
/* ************************************************************************** */
217
 
 
218
 
typedef struct {                                 /* global PLTE object */
219
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
220
 
           mng_uint32        iEntrycount;
221
 
           mng_rgbpaltab     aEntries;
222
 
        } mng_ani_plte;
223
 
typedef mng_ani_plte * mng_ani_pltep;
224
 
 
225
 
/* ************************************************************************** */
226
 
 
227
 
typedef struct {                                 /* global tRNS object */
228
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
229
 
           mng_uint32        iRawlen;
230
 
           mng_uint8arr      aRawdata;
231
 
        } mng_ani_trns;
232
 
typedef mng_ani_trns * mng_ani_trnsp;
233
 
 
234
 
/* ************************************************************************** */
235
 
 
236
 
typedef struct {                                 /* global gAMA object */
237
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
238
 
           mng_bool          bEmpty;
239
 
           mng_uint32        iGamma;
240
 
        } mng_ani_gama;
241
 
typedef mng_ani_gama * mng_ani_gamap;
242
 
 
243
 
/* ************************************************************************** */
244
 
 
245
 
#ifndef MNG_SKIPCHUNK_cHRM
246
 
typedef struct {                                 /* global cHRM object */
247
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
248
 
           mng_bool          bEmpty;
249
 
           mng_uint32        iWhitepointx;
250
 
           mng_uint32        iWhitepointy;
251
 
           mng_uint32        iRedx;
252
 
           mng_uint32        iRedy;
253
 
           mng_uint32        iGreenx;
254
 
           mng_uint32        iGreeny;
255
 
           mng_uint32        iBluex;
256
 
           mng_uint32        iBluey;
257
 
        } mng_ani_chrm;
258
 
typedef mng_ani_chrm * mng_ani_chrmp;
259
 
#endif
260
 
 
261
 
/* ************************************************************************** */
262
 
 
263
 
typedef struct {                                 /* global sRGB object */
264
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
265
 
           mng_bool          bEmpty;
266
 
           mng_uint8         iRenderingintent;
267
 
        } mng_ani_srgb;
268
 
typedef mng_ani_srgb * mng_ani_srgbp;
269
 
 
270
 
/* ************************************************************************** */
271
 
 
272
 
#ifndef MNG_SKIPCHUNK_iCCP
273
 
typedef struct {                                 /* global iCCP object */
274
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
275
 
           mng_bool          bEmpty;
276
 
           mng_uint32        iProfilesize;
277
 
           mng_ptr           pProfile;
278
 
        } mng_ani_iccp;
279
 
typedef mng_ani_iccp * mng_ani_iccpp;
280
 
#endif
281
 
 
282
 
/* ************************************************************************** */
283
 
 
284
 
typedef struct {                                 /* global bKGD object */
285
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
286
 
           mng_uint16        iRed;
287
 
           mng_uint16        iGreen;
288
 
           mng_uint16        iBlue;
289
 
        } mng_ani_bkgd;
290
 
typedef mng_ani_bkgd * mng_ani_bkgdp;
291
 
 
292
 
/* ************************************************************************** */
293
 
 
294
 
typedef struct {                                 /* LOOP object */
295
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
296
 
           mng_uint8         iLevel;
297
 
           mng_uint32        iRepeatcount;
298
 
           mng_uint8         iTermcond;
299
 
           mng_uint32        iItermin;
300
 
           mng_uint32        iItermax;
301
 
           mng_uint32        iCount;
302
 
           mng_uint32p       pSignals;
303
 
 
304
 
           mng_uint32        iRunningcount;      /* running counter */
305
 
        } mng_ani_loop;
306
 
typedef mng_ani_loop * mng_ani_loopp;
307
 
 
308
 
/* ************************************************************************** */
309
 
 
310
 
typedef struct {                                 /* ENDL object */
311
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
312
 
           mng_uint8         iLevel;
313
 
 
314
 
           mng_ani_loopp     pLOOP;              /* matching LOOP */
315
 
        } mng_ani_endl;
316
 
typedef mng_ani_endl * mng_ani_endlp;
317
 
 
318
 
/* ************************************************************************** */
319
 
 
320
 
typedef struct {                                 /* DEFI object */
321
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
322
 
           mng_uint16        iId;                
323
 
           mng_bool          bHasdonotshow;
324
 
           mng_uint8         iDonotshow;
325
 
           mng_bool          bHasconcrete;
326
 
           mng_uint8         iConcrete;
327
 
           mng_bool          bHasloca;           
328
 
           mng_int32         iLocax;
329
 
           mng_int32         iLocay;
330
 
           mng_bool          bHasclip;
331
 
           mng_int32         iClipl;
332
 
           mng_int32         iClipr;
333
 
           mng_int32         iClipt;
334
 
           mng_int32         iClipb;
335
 
        } mng_ani_defi;
336
 
typedef mng_ani_defi * mng_ani_defip;
337
 
 
338
 
/* ************************************************************************** */
339
 
 
340
 
typedef struct {                                 /* BASI object */
341
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
342
 
           mng_uint16        iRed;               
343
 
           mng_uint16        iGreen;             
344
 
           mng_uint16        iBlue;              
345
 
           mng_bool          bHasalpha;             
346
 
           mng_uint16        iAlpha;
347
 
           mng_uint8         iViewable;
348
 
        } mng_ani_basi;
349
 
typedef mng_ani_basi * mng_ani_basip;
350
 
 
351
 
/* ************************************************************************** */
352
 
 
353
 
typedef struct {                                 /* CLON object */
354
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
355
 
           mng_uint16        iCloneid;
356
 
           mng_uint16        iSourceid;
357
 
           mng_uint8         iClonetype;
358
 
           mng_bool          bHasdonotshow;
359
 
           mng_uint8         iDonotshow;
360
 
           mng_uint8         iConcrete;
361
 
           mng_bool          bHasloca;
362
 
           mng_uint8         iLocatype;
363
 
           mng_int32         iLocax;
364
 
           mng_int32         iLocay;
365
 
        } mng_ani_clon;
366
 
typedef mng_ani_clon * mng_ani_clonp;
367
 
 
368
 
/* ************************************************************************** */
369
 
 
370
 
typedef struct {                                 /* BACK object */
371
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
372
 
           mng_uint16        iRed;
373
 
           mng_uint16        iGreen;
374
 
           mng_uint16        iBlue;
375
 
           mng_uint8         iMandatory;
376
 
           mng_uint16        iImageid;
377
 
           mng_uint8         iTile;
378
 
        } mng_ani_back;
379
 
typedef mng_ani_back * mng_ani_backp;
380
 
 
381
 
/* ************************************************************************** */
382
 
 
383
 
typedef struct {                                 /* FRAM object */
384
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
385
 
           mng_uint8         iFramemode;
386
 
           mng_uint8         iChangedelay;
387
 
           mng_uint32        iDelay;
388
 
           mng_uint8         iChangetimeout;
389
 
           mng_uint32        iTimeout;
390
 
           mng_uint8         iChangeclipping;
391
 
           mng_uint8         iCliptype;
392
 
           mng_int32         iClipl;
393
 
           mng_int32         iClipr;
394
 
           mng_int32         iClipt;
395
 
           mng_int32         iClipb;
396
 
        } mng_ani_fram;
397
 
typedef mng_ani_fram * mng_ani_framp;
398
 
 
399
 
/* ************************************************************************** */
400
 
 
401
 
typedef struct {                                 /* MOVE object */
402
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
403
 
           mng_uint16        iFirstid;           
404
 
           mng_uint16        iLastid;            
405
 
           mng_uint8         iType;              
406
 
           mng_int32         iLocax;             
407
 
           mng_int32         iLocay;
408
 
        } mng_ani_move;
409
 
typedef mng_ani_move * mng_ani_movep;
410
 
 
411
 
/* ************************************************************************** */
412
 
 
413
 
typedef struct {                                 /* CLIP object */
414
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
415
 
           mng_uint16        iFirstid;           
416
 
           mng_uint16        iLastid;            
417
 
           mng_uint8         iType;              
418
 
           mng_int32         iClipl;             
419
 
           mng_int32         iClipr;             
420
 
           mng_int32         iClipt;             
421
 
           mng_int32         iClipb;
422
 
        } mng_ani_clip;
423
 
typedef mng_ani_clip * mng_ani_clipp;
424
 
 
425
 
/* ************************************************************************** */
426
 
 
427
 
typedef struct {                                 /* SHOW object */
428
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
429
 
           mng_uint16        iFirstid;           
430
 
           mng_uint16        iLastid;            
431
 
           mng_uint8         iMode;
432
 
        } mng_ani_show;
433
 
typedef mng_ani_show * mng_ani_showp;
434
 
 
435
 
/* ************************************************************************** */
436
 
 
437
 
typedef struct {                                 /* TERM object */
438
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
439
 
           mng_uint8         iTermaction;        
440
 
           mng_uint8         iIteraction;        
441
 
           mng_uint32        iDelay;             
442
 
           mng_uint32        iItermax;
443
 
        } mng_ani_term;
444
 
typedef mng_ani_term * mng_ani_termp;
445
 
 
446
 
/* ************************************************************************** */
447
 
 
448
 
typedef struct {                                 /* SAVE object */
449
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
450
 
        } mng_ani_save;
451
 
typedef mng_ani_save * mng_ani_savep;
452
 
 
453
 
/* ************************************************************************** */
454
 
 
455
 
typedef struct {                                 /* SEEK object */
456
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
457
 
           mng_uint32        iSegmentnamesize;
458
 
           mng_pchar         zSegmentname;
459
 
        } mng_ani_seek;
460
 
typedef mng_ani_seek * mng_ani_seekp;
461
 
 
462
 
/* ************************************************************************** */
463
 
#ifndef MNG_NO_DELTA_PNG
464
 
typedef struct {                                 /* DHDR object */
465
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
466
 
           mng_uint16        iObjectid;
467
 
           mng_uint8         iImagetype;
468
 
           mng_uint8         iDeltatype;
469
 
           mng_uint32        iBlockwidth;
470
 
           mng_uint32        iBlockheight;
471
 
           mng_uint32        iBlockx;
472
 
           mng_uint32        iBlocky;
473
 
        } mng_ani_dhdr;
474
 
typedef mng_ani_dhdr * mng_ani_dhdrp;
475
 
 
476
 
/* ************************************************************************** */
477
 
 
478
 
typedef struct {                                 /* PROM object */
479
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
480
 
           mng_uint8         iBitdepth;
481
 
           mng_uint8         iColortype;
482
 
           mng_uint8         iFilltype;
483
 
        } mng_ani_prom;
484
 
typedef mng_ani_prom * mng_ani_promp;
485
 
 
486
 
/* ************************************************************************** */
487
 
 
488
 
typedef struct {                                 /* IPNG object */
489
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
490
 
        } mng_ani_ipng;
491
 
typedef mng_ani_ipng * mng_ani_ipngp;
492
 
 
493
 
/* ************************************************************************** */
494
 
 
495
 
typedef struct {                                 /* IJNG object */
496
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
497
 
        } mng_ani_ijng;
498
 
typedef mng_ani_ijng * mng_ani_ijngp;
499
 
 
500
 
/* ************************************************************************** */
501
 
 
502
 
typedef struct {                                 /* PPLT object */
503
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
504
 
           mng_uint8         iType;
505
 
           mng_uint32        iCount;
506
 
           mng_rgbpaltab     aIndexentries;
507
 
           mng_uint8arr      aAlphaentries;
508
 
           mng_uint8arr      aUsedentries;
509
 
        } mng_ani_pplt;
510
 
typedef mng_ani_pplt * mng_ani_ppltp;
511
 
#endif
512
 
 
513
 
/* ************************************************************************** */
514
 
 
515
 
#ifndef MNG_SKIPCHUNK_MAGN
516
 
typedef struct {                                 /* MAGN object */
517
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
518
 
           mng_uint16        iFirstid;
519
 
           mng_uint16        iLastid;
520
 
           mng_uint8         iMethodX;
521
 
           mng_uint16        iMX;
522
 
           mng_uint16        iMY;
523
 
           mng_uint16        iML;
524
 
           mng_uint16        iMR;
525
 
           mng_uint16        iMT;
526
 
           mng_uint16        iMB;
527
 
           mng_uint8         iMethodY;
528
 
        } mng_ani_magn;
529
 
typedef mng_ani_magn * mng_ani_magnp;
530
 
#endif
531
 
 
532
 
/* ************************************************************************** */
533
 
 
534
 
#ifndef MNG_SKIPCHUNK_PAST
535
 
typedef struct {                                 /* PAST object */
536
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
537
 
           mng_uint16        iTargetid;
538
 
           mng_uint8         iTargettype;
539
 
           mng_int32         iTargetx;
540
 
           mng_int32         iTargety;
541
 
           mng_uint32        iCount;
542
 
           mng_ptr           pSources;
543
 
        } mng_ani_past;
544
 
typedef mng_ani_past * mng_ani_pastp;
545
 
#endif
546
 
 
547
 
/* ************************************************************************** */
548
 
 
549
 
#ifndef MNG_SKIPCHUNK_DISC
550
 
typedef struct {                                 /* DISC object */
551
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
552
 
           mng_uint32        iCount;
553
 
           mng_uint16p       pIds;
554
 
        } mng_ani_disc;
555
 
typedef mng_ani_disc * mng_ani_discp;
556
 
#endif
557
 
 
558
 
/* ************************************************************************** */
559
 
 
560
 
#ifdef MNG_SUPPORT_DYNAMICMNG
561
 
typedef struct {                                 /* event object */
562
 
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
563
 
           mng_uint8         iEventtype;
564
 
           mng_uint8         iMasktype;
565
 
           mng_int32         iLeft;
566
 
           mng_int32         iRight;
567
 
           mng_int32         iTop;
568
 
           mng_int32         iBottom;
569
 
           mng_uint16        iObjectid;
570
 
           mng_uint8         iIndex;
571
 
           mng_uint32        iSegmentnamesize;
572
 
           mng_pchar         zSegmentname;
573
 
 
574
 
           mng_ani_seekp     pSEEK;              /* SEEK ani object */
575
 
           mng_int32         iLastx;             /* last X/Y coordinates */
576
 
           mng_int32         iLasty;
577
 
        } mng_event;
578
 
typedef mng_event * mng_eventp;
579
 
#endif
580
 
 
581
 
/* ************************************************************************** */
582
 
 
583
 
#endif /* MNG_INCLUDE_DISPLAY_PROCS */
584
 
 
585
 
/* ************************************************************************** */
586
 
 
587
 
#endif /* _libmng_objects_h_ */
588
 
 
589
 
/* ************************************************************************** */
590
 
/* * end of file                                                            * */
591
 
/* ************************************************************************** */
 
1
/* ************************************************************************** */
 
2
/* *             For conditions of distribution and use,                    * */
 
3
/* *                see copyright notice in libmng.h                        * */
 
4
/* ************************************************************************** */
 
5
/* *                                                                        * */
 
6
/* * project   : libmng                                                     * */
 
7
/* * file      : libmng_objects.h          copyright (c) 2000-2004 G.Juyn   * */
 
8
/* * version   : 1.0.9                                                      * */
 
9
/* *                                                                        * */
 
10
/* * purpose   : Internal object structures (definition)                    * */
 
11
/* *                                                                        * */
 
12
/* * author    : G.Juyn                                                     * */
 
13
/* *                                                                        * */
 
14
/* * comment   : Definition of the internal object structures               * */
 
15
/* *                                                                        * */
 
16
/* * changes   : 0.5.1 - 05/08/2000 - G.Juyn                                * */
 
17
/* *             - changed strict-ANSI stuff                                * */
 
18
/* *                                                                        * */
 
19
/* *             0.5.2 - 05/23/2000 - G.Juyn                                * */
 
20
/* *             - changed inclusion to DISPLAY_PROCS                       * */
 
21
/* *             0.5.2 - 05/24/2000 - G.Juyn                                * */
 
22
/* *             - added global color-chunks for animations                 * */
 
23
/* *             - added global PLTE,tRNS,bKGD chunks for animation         * */
 
24
/* *             - added SAVE & SEEK animation objects                      * */
 
25
/* *             0.5.2 - 05/29/2000 - G.Juyn                                * */
 
26
/* *             - added framenr/layernr/playtime to object header          * */
 
27
/* *             0.5.2 - 05/30/2000 - G.Juyn                                * */
 
28
/* *             - added ani-objects for delta-image processing             * */
 
29
/* *             - added compression/filter/interlace fields to             * */
 
30
/* *               object-buffer for delta-image processing                 * */
 
31
/* *                                                                        * */
 
32
/* *             0.5.3 - 06/17/2000 - G.Juyn                                * */
 
33
/* *             - changed definition of aTRNSentries                       * */
 
34
/* *             0.5.3 - 06/22/2000 - G.Juyn                                * */
 
35
/* *             - added definition for PPLT animation-processing           * */
 
36
/* *                                                                        * */
 
37
/* *             0.9.2 - 08/05/2000 - G.Juyn                                * */
 
38
/* *             - changed file-prefixes                                    * */
 
39
/* *                                                                        * */
 
40
/* *             0.9.3 - 08/26/2000 - G.Juyn                                * */
 
41
/* *             - added MAGN chunk                                         * */
 
42
/* *             0.9.3 - 09/10/2000 - G.Juyn                                * */
 
43
/* *             - fixed DEFI behavior                                      * */
 
44
/* *             0.9.3 - 10/16/2000 - G.Juyn                                * */
 
45
/* *             - added support for delta-JNG                              * */
 
46
/* *             0.9.3 - 10/17/2000 - G.Juyn                                * */
 
47
/* *             - added valid-flag to stored objects for read() / display()* */
 
48
/* *             0.9.3 - 10/19/2000 - G.Juyn                                * */
 
49
/* *             - added storage for pixel-/alpha-sampledepth for delta's   * */
 
50
/* *                                                                        * */
 
51
/* *             1.0.5 - 09/13/2002 - G.Juyn                                * */
 
52
/* *             - fixed read/write of MAGN chunk                           * */
 
53
/* *             1.0.5 - 09/15/2002 - G.Juyn                                * */
 
54
/* *             - added event handling for dynamic MNG                     * */
 
55
/* *             1.0.5 - 09/20/2002 - G.Juyn                                * */
 
56
/* *             - added support for PAST                                   * */
 
57
/* *             1.0.5 - 09/23/2002 - G.Juyn                                * */
 
58
/* *             - added in-memory color-correction of abstract images      * */
 
59
/* *             1.0.5 - 10/07/2002 - G.Juyn                                * */
 
60
/* *             - fixed DISC support                                       * */
 
61
/* *                                                                        * */
 
62
/* *             1.0.6 - 10/07/2003 - G.R-P                                 * */
 
63
/* *             - added SKIPCHUNK conditionals                             * */
 
64
/* *                                                                        * */
 
65
/* *             1.0.7 - 03/24/2004 - G.R-P                                 * */
 
66
/* *             - added more SKIPCHUNK conditionals                        * */
 
67
/* *                                                                        * */
 
68
/* *             1.0.9 - 12/05/2004 - G.Juyn                                * */
 
69
/* *             - added conditional MNG_OPTIMIZE_OBJCLEANUP                * */
 
70
/* *                                                                        * */
 
71
/* ************************************************************************** */
 
72
 
 
73
#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
 
74
#pragma option -A                      /* force ANSI-C */
 
75
#endif
 
76
 
 
77
#ifndef _libmng_objects_h_
 
78
#define _libmng_objects_h_
 
79
 
 
80
/* ************************************************************************** */
 
81
 
 
82
#ifdef MNG_INCLUDE_DISPLAY_PROCS
 
83
 
 
84
/* ************************************************************************** */
 
85
 
 
86
typedef mng_retcode (*mng_cleanupobject) (mng_datap    pData,
 
87
                                          mng_objectp  pHeader);
 
88
 
 
89
typedef mng_retcode (*mng_processobject) (mng_datap    pData,
 
90
                                          mng_objectp  pHeader);
 
91
 
 
92
/* ************************************************************************** */
 
93
 
 
94
typedef struct {
 
95
           mng_cleanupobject fCleanup;
 
96
           mng_processobject fProcess;
 
97
           mng_objectp       pNext;              /* for double-linked list */
 
98
           mng_objectp       pPrev;
 
99
           mng_uint32        iFramenr;
 
100
           mng_uint32        iLayernr;
 
101
           mng_uint32        iPlaytime;
 
102
#ifdef MNG_OPTIMIZE_OBJCLEANUP
 
103
           mng_size_t        iObjsize;                    
 
104
#endif
 
105
        } mng_object_header;
 
106
typedef mng_object_header * mng_object_headerp;
 
107
 
 
108
/* ************************************************************************** */
 
109
 
 
110
typedef struct {                                 /* MNG specification "object-buffer" */
 
111
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
112
           mng_uint32        iRefcount;          /* reference counter */
 
113
           mng_bool          bFrozen;            /* frozen flag */
 
114
           mng_bool          bConcrete;          /* concrete flag */
 
115
           mng_bool          bViewable;          /* viewable flag */
 
116
           mng_uint32        iWidth;             /* image specifics */
 
117
           mng_uint32        iHeight;
 
118
           mng_uint8         iBitdepth;
 
119
           mng_uint8         iColortype;
 
120
           mng_uint8         iCompression;
 
121
           mng_uint8         iFilter;
 
122
           mng_uint8         iInterlace;
 
123
 
 
124
           mng_bool          bCorrected;         /* indicates if an abstract image
 
125
                                                    has already been color-corrected */
 
126
           
 
127
           mng_uint8         iAlphabitdepth;     /* used only for JNG images */
 
128
           mng_uint8         iJHDRcompression;
 
129
           mng_uint8         iJHDRinterlace;
 
130
 
 
131
           mng_uint8         iPixelsampledepth;  /* used with delta-images */
 
132
           mng_uint8         iAlphasampledepth;
 
133
 
 
134
           mng_bool          bHasPLTE;           /* PLTE chunk present */
 
135
           mng_bool          bHasTRNS;           /* tRNS chunk present */
 
136
           mng_bool          bHasGAMA;           /* gAMA chunk present */
 
137
           mng_bool          bHasCHRM;           /* cHRM chunk present */
 
138
           mng_bool          bHasSRGB;           /* sRGB chunk present */
 
139
           mng_bool          bHasICCP;           /* iCCP chunk present */
 
140
           mng_bool          bHasBKGD;           /* bKGD chunk present */
 
141
 
 
142
           mng_uint32        iPLTEcount;         /* PLTE fields */
 
143
           mng_rgbpaltab     aPLTEentries;
 
144
 
 
145
           mng_uint16        iTRNSgray;          /* tRNS fields */
 
146
           mng_uint16        iTRNSred;
 
147
           mng_uint16        iTRNSgreen;
 
148
           mng_uint16        iTRNSblue;
 
149
           mng_uint32        iTRNScount;
 
150
           mng_uint8arr      aTRNSentries;
 
151
 
 
152
           mng_uint32        iGamma;             /* gAMA fields */
 
153
 
 
154
           mng_uint32        iWhitepointx;       /* cHRM fields */
 
155
           mng_uint32        iWhitepointy;
 
156
           mng_uint32        iPrimaryredx;
 
157
           mng_uint32        iPrimaryredy;
 
158
           mng_uint32        iPrimarygreenx;
 
159
           mng_uint32        iPrimarygreeny;
 
160
           mng_uint32        iPrimarybluex;
 
161
           mng_uint32        iPrimarybluey;
 
162
 
 
163
           mng_uint8         iRenderingintent;   /* sRGB fields */
 
164
 
 
165
           mng_uint32        iProfilesize;       /* iCCP fields */
 
166
           mng_ptr           pProfile;
 
167
 
 
168
           mng_uint8         iBKGDindex;         /* bKGD fields */
 
169
           mng_uint16        iBKGDgray;
 
170
           mng_uint16        iBKGDred;
 
171
           mng_uint16        iBKGDgreen;
 
172
           mng_uint16        iBKGDblue;
 
173
 
 
174
           mng_uint32        iSamplesize;        /* size of a sample */
 
175
           mng_uint32        iRowsize;           /* size of a row of samples */
 
176
           mng_uint32        iImgdatasize;       /* size of the sample data buffer */
 
177
           mng_uint8p        pImgdata;           /* actual sample data buffer */
 
178
 
 
179
         } mng_imagedata;
 
180
typedef mng_imagedata * mng_imagedatap;
 
181
 
 
182
/* ************************************************************************** */
 
183
 
 
184
typedef struct {                                 /* MNG specification "object" */
 
185
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
186
           mng_uint16        iId;                /* object-id */
 
187
           mng_bool          bFrozen;            /* frozen flag */
 
188
           mng_bool          bVisible;           /* potential visibility flag */
 
189
           mng_bool          bViewable;          /* viewable flag */
 
190
           mng_bool          bValid;             /* marks invalid when only reading */
 
191
           mng_int32         iPosx;              /* location fields */
 
192
           mng_int32         iPosy;
 
193
           mng_bool          bClipped;           /* clipping fields */
 
194
           mng_int32         iClipl;
 
195
           mng_int32         iClipr;
 
196
           mng_int32         iClipt;
 
197
           mng_int32         iClipb;
 
198
#ifndef MNG_SKIPCHUNK_MAGN
 
199
           mng_uint8         iMAGN_MethodX;      /* magnification (MAGN) */
 
200
           mng_uint8         iMAGN_MethodY;
 
201
           mng_uint16        iMAGN_MX;
 
202
           mng_uint16        iMAGN_MY;
 
203
           mng_uint16        iMAGN_ML;
 
204
           mng_uint16        iMAGN_MR;
 
205
           mng_uint16        iMAGN_MT;
 
206
           mng_uint16        iMAGN_MB;
 
207
#endif
 
208
#ifndef MNG_SKIPCHUNK_PAST
 
209
           mng_int32         iPastx;             /* target x/y from previous PAST */
 
210
           mng_int32         iPasty;
 
211
#endif
 
212
           mng_imagedatap    pImgbuf;            /* the image-data buffer */
 
213
        } mng_image;
 
214
typedef mng_image * mng_imagep;
 
215
 
 
216
/* ************************************************************************** */
 
217
 
 
218
                                                 /* "on-the-fly" image (= object 0) */       
 
219
typedef mng_image mng_ani_image;                 /* let's (ab)use the general "object" */
 
220
typedef mng_ani_image * mng_ani_imagep;          /* that's actualy crucial, so don't change it! */
 
221
 
 
222
/* ************************************************************************** */
 
223
 
 
224
typedef struct {                                 /* global PLTE object */
 
225
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
226
           mng_uint32        iEntrycount;
 
227
           mng_rgbpaltab     aEntries;
 
228
        } mng_ani_plte;
 
229
typedef mng_ani_plte * mng_ani_pltep;
 
230
 
 
231
/* ************************************************************************** */
 
232
 
 
233
typedef struct {                                 /* global tRNS object */
 
234
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
235
           mng_uint32        iRawlen;
 
236
           mng_uint8arr      aRawdata;
 
237
        } mng_ani_trns;
 
238
typedef mng_ani_trns * mng_ani_trnsp;
 
239
 
 
240
/* ************************************************************************** */
 
241
 
 
242
typedef struct {                                 /* global gAMA object */
 
243
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
244
           mng_bool          bEmpty;
 
245
           mng_uint32        iGamma;
 
246
        } mng_ani_gama;
 
247
typedef mng_ani_gama * mng_ani_gamap;
 
248
 
 
249
/* ************************************************************************** */
 
250
 
 
251
#ifndef MNG_SKIPCHUNK_cHRM
 
252
typedef struct {                                 /* global cHRM object */
 
253
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
254
           mng_bool          bEmpty;
 
255
           mng_uint32        iWhitepointx;
 
256
           mng_uint32        iWhitepointy;
 
257
           mng_uint32        iRedx;
 
258
           mng_uint32        iRedy;
 
259
           mng_uint32        iGreenx;
 
260
           mng_uint32        iGreeny;
 
261
           mng_uint32        iBluex;
 
262
           mng_uint32        iBluey;
 
263
        } mng_ani_chrm;
 
264
typedef mng_ani_chrm * mng_ani_chrmp;
 
265
#endif
 
266
 
 
267
/* ************************************************************************** */
 
268
 
 
269
typedef struct {                                 /* global sRGB object */
 
270
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
271
           mng_bool          bEmpty;
 
272
           mng_uint8         iRenderingintent;
 
273
        } mng_ani_srgb;
 
274
typedef mng_ani_srgb * mng_ani_srgbp;
 
275
 
 
276
/* ************************************************************************** */
 
277
 
 
278
#ifndef MNG_SKIPCHUNK_iCCP
 
279
typedef struct {                                 /* global iCCP object */
 
280
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
281
           mng_bool          bEmpty;
 
282
           mng_uint32        iProfilesize;
 
283
           mng_ptr           pProfile;
 
284
        } mng_ani_iccp;
 
285
typedef mng_ani_iccp * mng_ani_iccpp;
 
286
#endif
 
287
 
 
288
/* ************************************************************************** */
 
289
 
 
290
typedef struct {                                 /* global bKGD object */
 
291
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
292
           mng_uint16        iRed;
 
293
           mng_uint16        iGreen;
 
294
           mng_uint16        iBlue;
 
295
        } mng_ani_bkgd;
 
296
typedef mng_ani_bkgd * mng_ani_bkgdp;
 
297
 
 
298
/* ************************************************************************** */
 
299
 
 
300
typedef struct {                                 /* LOOP object */
 
301
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
302
           mng_uint8         iLevel;
 
303
           mng_uint32        iRepeatcount;
 
304
           mng_uint8         iTermcond;
 
305
           mng_uint32        iItermin;
 
306
           mng_uint32        iItermax;
 
307
           mng_uint32        iCount;
 
308
           mng_uint32p       pSignals;
 
309
 
 
310
           mng_uint32        iRunningcount;      /* running counter */
 
311
        } mng_ani_loop;
 
312
typedef mng_ani_loop * mng_ani_loopp;
 
313
 
 
314
/* ************************************************************************** */
 
315
 
 
316
typedef struct {                                 /* ENDL object */
 
317
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
318
           mng_uint8         iLevel;
 
319
 
 
320
           mng_ani_loopp     pLOOP;              /* matching LOOP */
 
321
        } mng_ani_endl;
 
322
typedef mng_ani_endl * mng_ani_endlp;
 
323
 
 
324
/* ************************************************************************** */
 
325
 
 
326
typedef struct {                                 /* DEFI object */
 
327
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
328
           mng_uint16        iId;                
 
329
           mng_bool          bHasdonotshow;
 
330
           mng_uint8         iDonotshow;
 
331
           mng_bool          bHasconcrete;
 
332
           mng_uint8         iConcrete;
 
333
           mng_bool          bHasloca;           
 
334
           mng_int32         iLocax;
 
335
           mng_int32         iLocay;
 
336
           mng_bool          bHasclip;
 
337
           mng_int32         iClipl;
 
338
           mng_int32         iClipr;
 
339
           mng_int32         iClipt;
 
340
           mng_int32         iClipb;
 
341
        } mng_ani_defi;
 
342
typedef mng_ani_defi * mng_ani_defip;
 
343
 
 
344
/* ************************************************************************** */
 
345
 
 
346
typedef struct {                                 /* BASI object */
 
347
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
348
           mng_uint16        iRed;               
 
349
           mng_uint16        iGreen;             
 
350
           mng_uint16        iBlue;              
 
351
           mng_bool          bHasalpha;             
 
352
           mng_uint16        iAlpha;
 
353
           mng_uint8         iViewable;
 
354
        } mng_ani_basi;
 
355
typedef mng_ani_basi * mng_ani_basip;
 
356
 
 
357
/* ************************************************************************** */
 
358
 
 
359
typedef struct {                                 /* CLON object */
 
360
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
361
           mng_uint16        iCloneid;
 
362
           mng_uint16        iSourceid;
 
363
           mng_uint8         iClonetype;
 
364
           mng_bool          bHasdonotshow;
 
365
           mng_uint8         iDonotshow;
 
366
           mng_uint8         iConcrete;
 
367
           mng_bool          bHasloca;
 
368
           mng_uint8         iLocatype;
 
369
           mng_int32         iLocax;
 
370
           mng_int32         iLocay;
 
371
        } mng_ani_clon;
 
372
typedef mng_ani_clon * mng_ani_clonp;
 
373
 
 
374
/* ************************************************************************** */
 
375
 
 
376
typedef struct {                                 /* BACK object */
 
377
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
378
           mng_uint16        iRed;
 
379
           mng_uint16        iGreen;
 
380
           mng_uint16        iBlue;
 
381
           mng_uint8         iMandatory;
 
382
           mng_uint16        iImageid;
 
383
           mng_uint8         iTile;
 
384
        } mng_ani_back;
 
385
typedef mng_ani_back * mng_ani_backp;
 
386
 
 
387
/* ************************************************************************** */
 
388
 
 
389
typedef struct {                                 /* FRAM object */
 
390
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
391
           mng_uint8         iFramemode;
 
392
           mng_uint8         iChangedelay;
 
393
           mng_uint32        iDelay;
 
394
           mng_uint8         iChangetimeout;
 
395
           mng_uint32        iTimeout;
 
396
           mng_uint8         iChangeclipping;
 
397
           mng_uint8         iCliptype;
 
398
           mng_int32         iClipl;
 
399
           mng_int32         iClipr;
 
400
           mng_int32         iClipt;
 
401
           mng_int32         iClipb;
 
402
        } mng_ani_fram;
 
403
typedef mng_ani_fram * mng_ani_framp;
 
404
 
 
405
/* ************************************************************************** */
 
406
 
 
407
typedef struct {                                 /* MOVE object */
 
408
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
409
           mng_uint16        iFirstid;           
 
410
           mng_uint16        iLastid;            
 
411
           mng_uint8         iType;              
 
412
           mng_int32         iLocax;             
 
413
           mng_int32         iLocay;
 
414
        } mng_ani_move;
 
415
typedef mng_ani_move * mng_ani_movep;
 
416
 
 
417
/* ************************************************************************** */
 
418
 
 
419
typedef struct {                                 /* CLIP object */
 
420
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
421
           mng_uint16        iFirstid;           
 
422
           mng_uint16        iLastid;            
 
423
           mng_uint8         iType;              
 
424
           mng_int32         iClipl;             
 
425
           mng_int32         iClipr;             
 
426
           mng_int32         iClipt;             
 
427
           mng_int32         iClipb;
 
428
        } mng_ani_clip;
 
429
typedef mng_ani_clip * mng_ani_clipp;
 
430
 
 
431
/* ************************************************************************** */
 
432
 
 
433
typedef struct {                                 /* SHOW object */
 
434
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
435
           mng_uint16        iFirstid;           
 
436
           mng_uint16        iLastid;            
 
437
           mng_uint8         iMode;
 
438
        } mng_ani_show;
 
439
typedef mng_ani_show * mng_ani_showp;
 
440
 
 
441
/* ************************************************************************** */
 
442
 
 
443
typedef struct {                                 /* TERM object */
 
444
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
445
           mng_uint8         iTermaction;        
 
446
           mng_uint8         iIteraction;        
 
447
           mng_uint32        iDelay;             
 
448
           mng_uint32        iItermax;
 
449
        } mng_ani_term;
 
450
typedef mng_ani_term * mng_ani_termp;
 
451
 
 
452
/* ************************************************************************** */
 
453
 
 
454
typedef struct {                                 /* SAVE object */
 
455
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
456
        } mng_ani_save;
 
457
typedef mng_ani_save * mng_ani_savep;
 
458
 
 
459
/* ************************************************************************** */
 
460
 
 
461
typedef struct {                                 /* SEEK object */
 
462
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
463
           mng_uint32        iSegmentnamesize;
 
464
           mng_pchar         zSegmentname;
 
465
        } mng_ani_seek;
 
466
typedef mng_ani_seek * mng_ani_seekp;
 
467
 
 
468
/* ************************************************************************** */
 
469
#ifndef MNG_NO_DELTA_PNG
 
470
typedef struct {                                 /* DHDR object */
 
471
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
472
           mng_uint16        iObjectid;
 
473
           mng_uint8         iImagetype;
 
474
           mng_uint8         iDeltatype;
 
475
           mng_uint32        iBlockwidth;
 
476
           mng_uint32        iBlockheight;
 
477
           mng_uint32        iBlockx;
 
478
           mng_uint32        iBlocky;
 
479
        } mng_ani_dhdr;
 
480
typedef mng_ani_dhdr * mng_ani_dhdrp;
 
481
 
 
482
/* ************************************************************************** */
 
483
 
 
484
typedef struct {                                 /* PROM object */
 
485
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
486
           mng_uint8         iBitdepth;
 
487
           mng_uint8         iColortype;
 
488
           mng_uint8         iFilltype;
 
489
        } mng_ani_prom;
 
490
typedef mng_ani_prom * mng_ani_promp;
 
491
 
 
492
/* ************************************************************************** */
 
493
 
 
494
typedef struct {                                 /* IPNG object */
 
495
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
496
        } mng_ani_ipng;
 
497
typedef mng_ani_ipng * mng_ani_ipngp;
 
498
 
 
499
/* ************************************************************************** */
 
500
 
 
501
typedef struct {                                 /* IJNG object */
 
502
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
503
        } mng_ani_ijng;
 
504
typedef mng_ani_ijng * mng_ani_ijngp;
 
505
 
 
506
/* ************************************************************************** */
 
507
 
 
508
typedef struct {                                 /* PPLT object */
 
509
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
510
           mng_uint8         iType;
 
511
           mng_uint32        iCount;
 
512
           mng_rgbpaltab     aIndexentries;
 
513
           mng_uint8arr      aAlphaentries;
 
514
           mng_uint8arr      aUsedentries;
 
515
        } mng_ani_pplt;
 
516
typedef mng_ani_pplt * mng_ani_ppltp;
 
517
#endif
 
518
 
 
519
/* ************************************************************************** */
 
520
 
 
521
#ifndef MNG_SKIPCHUNK_MAGN
 
522
typedef struct {                                 /* MAGN object */
 
523
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
524
           mng_uint16        iFirstid;
 
525
           mng_uint16        iLastid;
 
526
           mng_uint8         iMethodX;
 
527
           mng_uint16        iMX;
 
528
           mng_uint16        iMY;
 
529
           mng_uint16        iML;
 
530
           mng_uint16        iMR;
 
531
           mng_uint16        iMT;
 
532
           mng_uint16        iMB;
 
533
           mng_uint8         iMethodY;
 
534
        } mng_ani_magn;
 
535
typedef mng_ani_magn * mng_ani_magnp;
 
536
#endif
 
537
 
 
538
/* ************************************************************************** */
 
539
 
 
540
#ifndef MNG_SKIPCHUNK_PAST
 
541
typedef struct {                                 /* PAST object */
 
542
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
543
           mng_uint16        iTargetid;
 
544
           mng_uint8         iTargettype;
 
545
           mng_int32         iTargetx;
 
546
           mng_int32         iTargety;
 
547
           mng_uint32        iCount;
 
548
           mng_ptr           pSources;
 
549
        } mng_ani_past;
 
550
typedef mng_ani_past * mng_ani_pastp;
 
551
#endif
 
552
 
 
553
/* ************************************************************************** */
 
554
 
 
555
#ifndef MNG_SKIPCHUNK_DISC
 
556
typedef struct {                                 /* DISC object */
 
557
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
558
           mng_uint32        iCount;
 
559
           mng_uint16p       pIds;
 
560
        } mng_ani_disc;
 
561
typedef mng_ani_disc * mng_ani_discp;
 
562
#endif
 
563
 
 
564
/* ************************************************************************** */
 
565
 
 
566
#ifdef MNG_SUPPORT_DYNAMICMNG
 
567
typedef struct {                                 /* event object */
 
568
           mng_object_header sHeader;            /* default header (DO NOT REMOVE) */
 
569
           mng_uint8         iEventtype;
 
570
           mng_uint8         iMasktype;
 
571
           mng_int32         iLeft;
 
572
           mng_int32         iRight;
 
573
           mng_int32         iTop;
 
574
           mng_int32         iBottom;
 
575
           mng_uint16        iObjectid;
 
576
           mng_uint8         iIndex;
 
577
           mng_uint32        iSegmentnamesize;
 
578
           mng_pchar         zSegmentname;
 
579
 
 
580
           mng_ani_seekp     pSEEK;              /* SEEK ani object */
 
581
           mng_int32         iLastx;             /* last X/Y coordinates */
 
582
           mng_int32         iLasty;
 
583
        } mng_event;
 
584
typedef mng_event * mng_eventp;
 
585
#endif
 
586
 
 
587
/* ************************************************************************** */
 
588
 
 
589
#endif /* MNG_INCLUDE_DISPLAY_PROCS */
 
590
 
 
591
/* ************************************************************************** */
 
592
 
 
593
#endif /* _libmng_objects_h_ */
 
594
 
 
595
/* ************************************************************************** */
 
596
/* * end of file                                                            * */
 
597
/* ************************************************************************** */