| 1 |
unit libmng; |
| 2 |
|
| 3 |
{****************************************************************************} |
| 4 |
{* *} |
| 5 |
{* COPYRIGHT NOTICE: *} |
| 6 |
{* *} |
| 7 |
{* Copyright (c) 2000-2004 Gerard Juyn ([email protected]) *} |
| 8 |
{* [You may insert additional notices after this sentence if you modify *} |
| 9 |
{* this source] *} |
| 10 |
{* *} |
| 11 |
{* For the purposes of this copyright and license, "Contributing Authors" *} |
| 12 |
{* is defined as the following set of individuals: *} |
| 13 |
{* *} |
| 14 |
{* Gerard Juyn *} |
| 15 |
{* (hopefully some more to come...) *} |
| 16 |
{* *} |
| 17 |
{* The MNG Library is supplied "AS IS". The Contributing Authors *} |
| 18 |
{* disclaim all warranties, expressed or implied, including, without *} |
| 19 |
{* limitation, the warranties of merchantability and of fitness for any *} |
| 20 |
{* purpose. The Contributing Authors assume no liability for direct, *} |
| 21 |
{* indirect, incidental, special, exemplary, or consequential damages, *} |
| 22 |
{* which may result from the use of the MNG Library, even if advised of *} |
| 23 |
{* the possibility of such damage. *} |
| 24 |
{* *} |
| 25 |
{* Permission is hereby granted to use, copy, modify, and distribute this *} |
| 26 |
{* source code, or portions hereof, for any purpose, without fee, subject *} |
| 27 |
{* to the following restrictions: *} |
| 28 |
{* *} |
| 29 |
{* 1. The origin of this source code must not be misrepresented; *} |
| 30 |
{* you must not claim that you wrote the original software. *} |
| 31 |
{* *} |
| 32 |
{* 2. Altered versions must be plainly marked as such and must not be *} |
| 33 |
{* misrepresented as being the original source. *} |
| 34 |
{* *} |
| 35 |
{* 3. This Copyright notice may not be removed or altered from any source *} |
| 36 |
{* or altered source distribution. *} |
| 37 |
{* *} |
| 38 |
{* The Contributing Authors specifically permit, without fee, and *} |
| 39 |
{* encourage the use of this source code as a component to supporting *} |
| 40 |
{* the MNG and JNG file format in commercial products. If you use this *} |
| 41 |
{* source code in a product, acknowledgment would be highly appreciated. *} |
| 42 |
{* *} |
| 43 |
{****************************************************************************} |
| 44 |
{* *} |
| 45 |
{* project : libmng *} |
| 46 |
{* file : libmng.pas copyright (c) 2000-2004 G.Juyn *} |
| 47 |
{* version : 1.0.8 *} |
| 48 |
{* *} |
| 49 |
{* purpose : libmng.dll wrapper unit *} |
| 50 |
{* *} |
| 51 |
{* author : G.Juyn *} |
| 52 |
{* web : http://www.3-t.com *} |
| 53 |
{* email : mailto:info (at) 3-t (dot) com *} |
| 54 |
{* *} |
| 55 |
{* comment : contains the pascal-translation of libmng.h *} |
| 56 |
{* can be used by Delphi programs to access the libmng.dll *} |
| 57 |
{* *} |
| 58 |
{* changes : 0.5.1 - 05/02/2000 - G.Juyn *} |
| 59 |
{* - added this version block *} |
| 60 |
{* 0.5.1 - 05/08/2000 - G.Juyn *} |
| 61 |
{* - changed to stdcall convention *} |
| 62 |
{* 0.5.1 - 05/11/2000 - G.Juyn *} |
| 63 |
{* - changed callback prototypes *} |
| 64 |
{* - added TRUE/FALSE/NULL constants *} |
| 65 |
{* - added setoutputprofile2 & setsrgbprofile2 *} |
| 66 |
{* - added several new types *} |
| 67 |
{* - added chunk-access functions *} |
| 68 |
{* - added new error- & tracecodes *} |
| 69 |
{* *} |
| 70 |
{* 0.5.2 - 05/24/2000 - G.Juyn *} |
| 71 |
{* - removed error- & trace-strings since they are now *} |
| 72 |
{* provided by the library *} |
| 73 |
{* *} |
| 74 |
{* 0.5.3 - 06/21/2000 - G.Juyn *} |
| 75 |
{* - fixed definition of imagetype *} |
| 76 |
{* - added definition of speedtype *} |
| 77 |
{* - added get/set speed parameter *} |
| 78 |
{* - added get imagelevel parameter *} |
| 79 |
{* 0.5.3 - 06/26/2000 - G.Juyn *} |
| 80 |
{* - changed definition of userdata to mng_ptr *} |
| 81 |
{* 0.5.3 - 06/28/2000 - G.Juyn *} |
| 82 |
{* - added mng_size_t definition *} |
| 83 |
{* - changed definition of memory alloc size to mng_size_t *} |
| 84 |
{* 0.5.3 - 06/29/2000 - G.Juyn *} |
| 85 |
{* - changed order of refresh parameters *} |
| 86 |
{* - changed definition of mng_handle *} |
| 87 |
{* *} |
| 88 |
{* 0.9.0 - 06/30/2000 - G.Juyn *} |
| 89 |
{* - changed refresh parameters to 'x,y,width,height' *} |
| 90 |
{* *} |
| 91 |
{* 0.9.1 - 07/08/2000 - G.Juyn *} |
| 92 |
{* - added libmng errorcode constants *} |
| 93 |
{* 0.9.1 - 07/10/2000 - G.Juyn *} |
| 94 |
{* - added new libmng functions *} |
| 95 |
{* 0.9.1 - 07/19/2000 - G.Juyn *} |
| 96 |
{* - fixed several type definitions *} |
| 97 |
{* 0.9.1 - 07/25/2000 - G.Juyn *} |
| 98 |
{* - fixed definition of mng_imgtype *} |
| 99 |
{* *} |
| 100 |
{* 0.9.2 - 08/04/2000 - G.Juyn *} |
| 101 |
{* - fixed in line with libmng.h *} |
| 102 |
{* 0.9.2 - 08/05/2000 - G.Juyn *} |
| 103 |
{* - added function to set simplicity field *} |
| 104 |
{* *} |
| 105 |
{* 0.9.3 - 10/21/2000 - G.Juyn *} |
| 106 |
{* - added several new HLAPI entry points *} |
| 107 |
{* *} |
| 108 |
{* 1.0.5 - 09/16/2002 - G.Juyn *} |
| 109 |
{* - added dynamic MNG features *} |
| 110 |
{* *} |
| 111 |
{* 1.0.8 - 04/12/2004 - G.Juyn *} |
| 112 |
{* - added CRC existence & checking flags *} |
| 113 |
{* - added push mechanisms *} |
| 114 |
{* *} |
| 115 |
{****************************************************************************} |
| 116 |
|
| 117 |
interface |
| 118 |
|
| 119 |
{****************************************************************************} |
| 120 |
|
| 121 |
const MNG_TRUE = TRUE; |
| 122 |
MNG_FALSE = FALSE; |
| 123 |
MNG_NULL = nil; |
| 124 |
|
| 125 |
type mng_uint32 = cardinal; |
| 126 |
mng_int32 = integer; |
| 127 |
mng_uint16 = word; |
| 128 |
mng_int16 = smallint; |
| 129 |
mng_uint8 = byte; |
| 130 |
mng_int8 = shortint; |
| 131 |
mng_bool = boolean; |
| 132 |
mng_ptr = pointer; |
| 133 |
mng_pchar = pchar; |
| 134 |
|
| 135 |
mng_handle = pointer; |
| 136 |
mng_retcode = mng_int32; |
| 137 |
mng_chunkid = mng_uint32; |
| 138 |
|
| 139 |
mng_size_t = cardinal; |
| 140 |
|
| 141 |
mng_imgtype = (mng_it_unknown, mng_it_png, mng_it_mng, mng_it_jng); |
| 142 |
mng_speedtype = (mng_st_normal, mng_st_fast, mng_st_slow, mng_st_slowest); |
| 143 |
|
| 144 |
mng_uint32p = ^mng_uint32; |
| 145 |
mng_uint16p = ^mng_uint16; |
| 146 |
mng_uint8p = ^mng_uint8; |
| 147 |
mng_chunkidp = ^mng_chunkid; |
| 148 |
|
| 149 |
mng_palette8e = packed record { 8-bit palette element } |
| 150 |
iRed : mng_uint8; |
| 151 |
iGreen : mng_uint8; |
| 152 |
iBlue : mng_uint8; |
| 153 |
end; |
| 154 |
|
| 155 |
mng_palette8 = packed array [0 .. 255] of mng_palette8e; |
| 156 |
|
| 157 |
mng_uint8arr = packed array [0 .. 255] of mng_uint8; |
| 158 |
mng_uint8arr4 = packed array [0 .. 3] of mng_uint8; |
| 159 |
mng_uint16arr = packed array [0 .. 255] of mng_uint16; |
| 160 |
mng_uint32arr2 = packed array [0 .. 1] of mng_uint32; |
| 161 |
|
| 162 |
{****************************************************************************} |
| 163 |
|
| 164 |
type mng_memalloc = function ( iLen : mng_size_t) : mng_ptr; stdcall; |
| 165 |
type mng_memfree = procedure ( pPtr : mng_ptr; |
| 166 |
iLen : mng_size_t); stdcall; |
| 167 |
|
| 168 |
type mng_releasedata = procedure ( pUserData : mng_ptr; |
| 169 |
pData : mng_ptr; |
| 170 |
iLength : mng_size_t); stdcall; |
| 171 |
|
| 172 |
type mng_openstream = function ( hHandle : mng_handle) : mng_bool; stdcall; |
| 173 |
type mng_closestream = function ( hHandle : mng_handle) : mng_bool; stdcall; |
| 174 |
|
| 175 |
type mng_readdata = function ( hHandle : mng_handle; |
| 176 |
pBuf : mng_ptr; |
| 177 |
iBuflen : mng_uint32; |
| 178 |
var pRead : mng_uint32) : mng_bool; stdcall; |
| 179 |
|
| 180 |
type mng_writedata = function ( hHandle : mng_handle; |
| 181 |
pBuf : mng_ptr; |
| 182 |
iBuflen : mng_uint32; |
| 183 |
var pWritten : mng_uint32) : mng_bool; stdcall; |
| 184 |
|
| 185 |
type mng_errorproc = function ( hHandle : mng_handle; |
| 186 |
iErrorcode : mng_retcode; |
| 187 |
iSeverity : mng_uint8; |
| 188 |
iChunkname : mng_chunkid; |
| 189 |
iChunkseq : mng_uint32; |
| 190 |
iExtra1 : mng_int32; |
| 191 |
iExtra2 : mng_int32; |
| 192 |
zErrortext : mng_pchar ) : mng_bool; stdcall; |
| 193 |
type mng_traceproc = function ( hHandle : mng_handle; |
| 194 |
iFuncnr : mng_int32; |
| 195 |
iFuncseq : mng_uint32; |
| 196 |
zFuncname : mng_pchar ) : mng_bool; stdcall; |
| 197 |
|
| 198 |
type mng_processheader = function ( hHandle : mng_handle; |
| 199 |
iWidth : mng_uint32; |
| 200 |
iHeight : mng_uint32) : mng_bool; stdcall; |
| 201 |
type mng_processtext = function ( hHandle : mng_handle; |
| 202 |
iType : mng_uint8; |
| 203 |
zKeyword : mng_pchar; |
| 204 |
zText : mng_pchar; |
| 205 |
zLanguage : mng_pchar; |
| 206 |
zTranslation : mng_pchar ) : mng_bool; stdcall; |
| 207 |
|
| 208 |
type mng_processsave = function ( hHandle : mng_handle) : mng_bool; stdcall; |
| 209 |
type mng_processseek = function ( hHandle : mng_handle; |
| 210 |
zName : mng_pchar ) : mng_bool; stdcall; |
| 211 |
|
| 212 |
type mng_processneed = function ( hHandle : mng_handle; |
| 213 |
zKeyword : mng_pchar ) : mng_bool; stdcall; |
| 214 |
|
| 215 |
type mng_processunknown = function ( hHandle : mng_handle; |
| 216 |
iChunkid : mng_chunkid; |
| 217 |
iRawlen : mng_uint32; |
| 218 |
pRawdata : mng_ptr ) : mng_bool; stdcall; |
| 219 |
|
| 220 |
type mng_getcanvasline = function ( hHandle : mng_handle; |
| 221 |
iLinenr : mng_uint32) : mng_ptr; stdcall; |
| 222 |
type mng_getalphaline = function ( hHandle : mng_handle; |
| 223 |
iLinenr : mng_uint32) : mng_ptr; stdcall; |
| 224 |
type mng_getbkgdline = function ( hHandle : mng_handle; |
| 225 |
iLinenr : mng_uint32) : mng_ptr; stdcall; |
| 226 |
type mng_refresh = function ( hHandle : mng_handle; |
| 227 |
iX : mng_uint32; |
| 228 |
iY : mng_uint32; |
| 229 |
iWidth : mng_uint32; |
| 230 |
iHeight : mng_uint32) : mng_bool; stdcall; |
| 231 |
|
| 232 |
type mng_gettickcount = function ( hHandle : mng_handle) : mng_uint32; stdcall; |
| 233 |
type mng_settimer = function ( hHandle : mng_handle; |
| 234 |
iMsecs : mng_uint32) : mng_bool; stdcall; |
| 235 |
|
| 236 |
type mng_processgamma = function ( hHandle : mng_handle; |
| 237 |
iGamma : mng_uint32) : mng_bool; stdcall; |
| 238 |
type mng_processchroma = function ( hHandle : mng_handle; |
| 239 |
iWhitex : mng_uint32; |
| 240 |
iWhitey : mng_uint32; |
| 241 |
iRedx : mng_uint32; |
| 242 |
iRedy : mng_uint32; |
| 243 |
iGreenx : mng_uint32; |
| 244 |
iGreeny : mng_uint32; |
| 245 |
iBluex : mng_uint32; |
| 246 |
iBluey : mng_uint32) : mng_bool; stdcall; |
| 247 |
type mng_processsrgb = function ( hHandle : mng_handle; |
| 248 |
iIntent : mng_uint8 ) : mng_bool; stdcall; |
| 249 |
type mng_processiccp = function ( hHandle : mng_handle; |
| 250 |
iProfilesize : mng_uint32; |
| 251 |
pProfile : mng_ptr ) : mng_bool; stdcall; |
| 252 |
type mng_processarow = function ( hHandle : mng_handle; |
| 253 |
iRowsamples : mng_uint32; |
| 254 |
bIsRGBA16 : mng_bool; |
| 255 |
pRow : mng_ptr ) : mng_bool; stdcall; |
| 256 |
|
| 257 |
type mng_iteratechunk = function ( hHandle : mng_handle; |
| 258 |
hChunk : mng_handle; |
| 259 |
iChunkid : mng_chunkid; |
| 260 |
iChunkseq : mng_uint32) : mng_bool; stdcall; |
| 261 |
|
| 262 |
{****************************************************************************} |
| 263 |
|
| 264 |
function mng_initialize ( pUserdata : mng_ptr; |
| 265 |
fMemalloc : mng_memalloc; |
| 266 |
fMemfree : mng_memfree; |
| 267 |
fTraceproc : mng_traceproc ) : mng_handle; stdcall; |
| 268 |
|
| 269 |
function mng_reset ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 270 |
|
| 271 |
function mng_cleanup (var hHandle : mng_handle ) : mng_retcode; stdcall; |
| 272 |
|
| 273 |
function mng_read ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 274 |
function mng_read_pushdata ( hHandle : mng_handle; |
| 275 |
pData : mng_ptr; |
| 276 |
iLength : mng_uint32; |
| 277 |
bTakeownership : mng_bool ) : mng_retcode; stdcall; |
| 278 |
function mng_read_pushsig ( hHandle : mng_handle; |
| 279 |
eSigtype : mng_imgtype ) : mng_retcode; stdcall; |
| 280 |
function mng_read_pushchunk ( hHandle : mng_handle; |
| 281 |
pData : mng_ptr; |
| 282 |
iLength : mng_uint32; |
| 283 |
bTakeownership : mng_bool ) : mng_retcode; stdcall; |
| 284 |
function mng_read_resume ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 285 |
function mng_write ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 286 |
function mng_create ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 287 |
|
| 288 |
function mng_readdisplay ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 289 |
function mng_display ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 290 |
function mng_display_resume ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 291 |
function mng_display_freeze ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 292 |
function mng_display_reset ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 293 |
function mng_display_goframe ( hHandle : mng_handle; |
| 294 |
iFramenr : mng_uint32 ) : mng_retcode; stdcall; |
| 295 |
function mng_display_golayer ( hHandle : mng_handle; |
| 296 |
iLayernr : mng_uint32 ) : mng_retcode; stdcall; |
| 297 |
function mng_display_gotime ( hHandle : mng_handle; |
| 298 |
iPlaytime : mng_uint32 ) : mng_retcode; stdcall; |
| 299 |
|
| 300 |
function mng_trapevent ( hHandle : mng_handle; |
| 301 |
iEventtype : mng_uint8; |
| 302 |
iX : mng_int32; |
| 303 |
iY : mng_int32 ) : mng_retcode; stdcall; |
| 304 |
|
| 305 |
function mng_getlasterror ( hHandle : mng_handle; |
| 306 |
var iSeverity : mng_uint8; |
| 307 |
var iChunkname : mng_chunkid; |
| 308 |
var iChunkseq : mng_uint32; |
| 309 |
var iExtra1 : mng_int32; |
| 310 |
var iExtra2 : mng_int32; |
| 311 |
var zErrortext : mng_pchar ) : mng_retcode; stdcall; |
| 312 |
|
| 313 |
{****************************************************************************} |
| 314 |
|
| 315 |
function mng_setcb_memalloc ( hHandle : mng_handle; |
| 316 |
fProc : mng_memalloc ) : mng_retcode; stdcall; |
| 317 |
function mng_setcb_memfree ( hHandle : mng_handle; |
| 318 |
fProc : mng_memfree ) : mng_retcode; stdcall; |
| 319 |
function mng_setcb_releasedata ( hHandle : mng_handle; |
| 320 |
fProc : mng_releasedata ) : mng_retcode; stdcall; |
| 321 |
|
| 322 |
function mng_setcb_openstream ( hHandle : mng_handle; |
| 323 |
fProc : mng_openstream ) : mng_retcode; stdcall; |
| 324 |
function mng_setcb_closestream ( hHandle : mng_handle; |
| 325 |
fProc : mng_closestream ) : mng_retcode; stdcall; |
| 326 |
|
| 327 |
function mng_setcb_readdata ( hHandle : mng_handle; |
| 328 |
fProc : mng_readdata ) : mng_retcode; stdcall; |
| 329 |
|
| 330 |
function mng_setcb_writedata ( hHandle : mng_handle; |
| 331 |
fProc : mng_writedata ) : mng_retcode; stdcall; |
| 332 |
|
| 333 |
function mng_setcb_errorproc ( hHandle : mng_handle; |
| 334 |
fProc : mng_errorproc ) : mng_retcode; stdcall; |
| 335 |
function mng_setcb_traceproc ( hHandle : mng_handle; |
| 336 |
fProc : mng_traceproc ) : mng_retcode; stdcall; |
| 337 |
|
| 338 |
function mng_setcb_processheader ( hHandle : mng_handle; |
| 339 |
fProc : mng_processheader) : mng_retcode; stdcall; |
| 340 |
function mng_setcb_processtext ( hHandle : mng_handle; |
| 341 |
fProc : mng_processtext ) : mng_retcode; stdcall; |
| 342 |
|
| 343 |
function mng_setcb_getcanvasline ( hHandle : mng_handle; |
| 344 |
fProc : mng_getcanvasline) : mng_retcode; stdcall; |
| 345 |
function mng_setcb_getalphaline ( hHandle : mng_handle; |
| 346 |
fProc : mng_getalphaline ) : mng_retcode; stdcall; |
| 347 |
function mng_setcb_getbkgdline ( hHandle : mng_handle; |
| 348 |
fProc : mng_getbkgdline ) : mng_retcode; stdcall; |
| 349 |
function mng_setcb_refresh ( hHandle : mng_handle; |
| 350 |
fProc : mng_refresh ) : mng_retcode; stdcall; |
| 351 |
|
| 352 |
function mng_setcb_gettickcount ( hHandle : mng_handle; |
| 353 |
fProc : mng_gettickcount ) : mng_retcode; stdcall; |
| 354 |
function mng_setcb_settimer ( hHandle : mng_handle; |
| 355 |
fProc : mng_settimer ) : mng_retcode; stdcall; |
| 356 |
|
| 357 |
function mng_setcb_processgamma ( hHandle : mng_handle; |
| 358 |
fProc : mng_processgamma ) : mng_retcode; stdcall; |
| 359 |
function mng_setcb_processchroma ( hHandle : mng_handle; |
| 360 |
fProc : mng_processchroma) : mng_retcode; stdcall; |
| 361 |
function mng_setcb_processsrgb ( hHandle : mng_handle; |
| 362 |
fProc : mng_processsrgb ) : mng_retcode; stdcall; |
| 363 |
function mng_setcb_processiccp ( hHandle : mng_handle; |
| 364 |
fProc : mng_processiccp ) : mng_retcode; stdcall; |
| 365 |
function mng_setcb_processarow ( hHandle : mng_handle; |
| 366 |
fProc : mng_processarow ) : mng_retcode; stdcall; |
| 367 |
|
| 368 |
{****************************************************************************} |
| 369 |
|
| 370 |
function mng_getcb_memalloc ( hHandle : mng_handle ) : mng_memalloc; stdcall; |
| 371 |
function mng_getcb_memfree ( hHandle : mng_handle ) : mng_memfree; stdcall; |
| 372 |
function mng_getcb_releasedata ( hHandle : mng_handle ) : mng_releasedata; stdcall; |
| 373 |
|
| 374 |
function mng_getcb_openstream ( hHandle : mng_handle ) : mng_openstream; stdcall; |
| 375 |
function mng_getcb_closestream ( hHandle : mng_handle ) : mng_closestream; stdcall; |
| 376 |
|
| 377 |
function mng_getcb_readdata ( hHandle : mng_handle ) : mng_readdata; stdcall; |
| 378 |
|
| 379 |
function mng_getcb_writedata ( hHandle : mng_handle ) : mng_writedata; stdcall; |
| 380 |
|
| 381 |
function mng_getcb_errorproc ( hHandle : mng_handle ) : mng_errorproc; stdcall; |
| 382 |
function mng_getcb_traceproc ( hHandle : mng_handle ) : mng_traceproc; stdcall; |
| 383 |
|
| 384 |
function mng_getcb_processheader ( hHandle : mng_handle ) : mng_processheader; stdcall; |
| 385 |
function mng_getcb_processtext ( hHandle : mng_handle ) : mng_processtext; stdcall; |
| 386 |
|
| 387 |
function mng_getcb_getcanvasline ( hHandle : mng_handle ) : mng_getcanvasline; stdcall; |
| 388 |
function mng_getcb_getalphaline ( hHandle : mng_handle ) : mng_getalphaline; stdcall; |
| 389 |
function mng_getcb_getbkgdline ( hHandle : mng_handle ) : mng_getbkgdline; stdcall; |
| 390 |
function mng_getcb_refresh ( hHandle : mng_handle ) : mng_refresh; stdcall; |
| 391 |
|
| 392 |
function mng_getcb_gettickcount ( hHandle : mng_handle ) : mng_gettickcount; stdcall; |
| 393 |
function mng_getcb_settimer ( hHandle : mng_handle ) : mng_settimer; stdcall; |
| 394 |
|
| 395 |
function mng_getcb_processgamma ( hHandle : mng_handle ) : mng_processgamma; stdcall; |
| 396 |
function mng_getcb_processchroma ( hHandle : mng_handle ) : mng_processchroma; stdcall; |
| 397 |
function mng_getcb_processsrgb ( hHandle : mng_handle ) : mng_processsrgb; stdcall; |
| 398 |
function mng_getcb_processiccp ( hHandle : mng_handle ) : mng_processiccp; stdcall; |
| 399 |
function mng_getcb_processarow ( hHandle : mng_handle ) : mng_processarow; stdcall; |
| 400 |
|
| 401 |
{****************************************************************************} |
| 402 |
|
| 403 |
function mng_set_userdata ( hHandle : mng_handle; |
| 404 |
pUserdata : mng_ptr ) : mng_retcode; stdcall; |
| 405 |
|
| 406 |
function mng_set_canvasstyle ( hHandle : mng_handle; |
| 407 |
iStyle : mng_uint32 ) : mng_retcode; stdcall; |
| 408 |
function mng_set_bkgdstyle ( hHandle : mng_handle; |
| 409 |
iStyle : mng_uint32 ) : mng_retcode; stdcall; |
| 410 |
|
| 411 |
function mng_set_bgcolor ( hHandle : mng_handle; |
| 412 |
iRed : mng_uint16; |
| 413 |
iGreen : mng_uint16; |
| 414 |
iBlue : mng_uint16 ) : mng_retcode; stdcall; |
| 415 |
|
| 416 |
function mng_set_usebkgd ( hHandle : mng_handle; |
| 417 |
bUseBKGD : mng_bool ) : mng_retcode; stdcall; |
| 418 |
|
| 419 |
function mng_set_storechunks ( hHandle : mng_handle; |
| 420 |
bStorechunks : mng_bool ) : mng_retcode; stdcall; |
| 421 |
|
| 422 |
function mng_set_cacheplayback ( hHandle : mng_handle; |
| 423 |
bCacheplayback : mng_bool ) : mng_retcode; stdcall; |
| 424 |
|
| 425 |
function mng_set_viewgammaint ( hHandle : mng_handle; |
| 426 |
iGamma : mng_uint32 ) : mng_retcode; stdcall; |
| 427 |
function mng_set_displaygammaint ( hHandle : mng_handle; |
| 428 |
iGamma : mng_uint32 ) : mng_retcode; stdcall; |
| 429 |
function mng_set_dfltimggammaint ( hHandle : mng_handle; |
| 430 |
iGamma : mng_uint32 ) : mng_retcode; stdcall; |
| 431 |
|
| 432 |
function mng_set_srgb ( hHandle : mng_handle; |
| 433 |
bIssRGB : mng_bool ) : mng_retcode; stdcall; |
| 434 |
function mng_set_outputprofile ( hHandle : mng_handle; |
| 435 |
zFilename : mng_pchar ) : mng_retcode; stdcall; |
| 436 |
function mng_set_outputprofile2 ( hHandle : mng_handle; |
| 437 |
iProfilesize : mng_uint32; |
| 438 |
pProfile : mng_ptr ) : mng_retcode; stdcall; |
| 439 |
function mng_set_srgbprofile ( hHandle : mng_handle; |
| 440 |
zFilename : mng_pchar ) : mng_retcode; stdcall; |
| 441 |
function mng_set_srgbprofile2 ( hHandle : mng_handle; |
| 442 |
iProfilesize : mng_uint32; |
| 443 |
pProfile : mng_ptr ) : mng_retcode; stdcall; |
| 444 |
|
| 445 |
function mng_set_maxcanvaswidth ( hHandle : mng_handle; |
| 446 |
iMaxwidth : mng_uint32 ) : mng_retcode; stdcall; |
| 447 |
function mng_set_maxcanvasheight ( hHandle : mng_handle; |
| 448 |
iMaxheight : mng_uint32 ) : mng_retcode; stdcall; |
| 449 |
function mng_set_maxcanvassize ( hHandle : mng_handle; |
| 450 |
iMaxwidth : mng_uint32; |
| 451 |
iMaxheight : mng_uint32 ) : mng_retcode; stdcall; |
| 452 |
|
| 453 |
function mng_set_suspensionmode ( hHandle : mng_handle; |
| 454 |
bSuspensionmode : mng_bool ) : mng_retcode; stdcall; |
| 455 |
|
| 456 |
function mng_set_speed ( hHandle : mng_handle; |
| 457 |
iSpeed : mng_speedtype ) : mng_retcode; stdcall; |
| 458 |
|
| 459 |
function mng_set_crcmode ( hHandle : mng_handle; |
| 460 |
iCrcmode : mng_uint32 ) : mng_retcode; stdcall; |
| 461 |
|
| 462 |
{****************************************************************************} |
| 463 |
|
| 464 |
function mng_get_userdata ( hHandle : mng_handle ) : mng_ptr; stdcall; |
| 465 |
|
| 466 |
function mng_get_sigtype ( hHandle : mng_handle ) : mng_imgtype; stdcall; |
| 467 |
function mng_get_imagetype ( hHandle : mng_handle ) : mng_imgtype; stdcall; |
| 468 |
function mng_get_imagewidth ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 469 |
function mng_get_imageheight ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 470 |
function mng_get_ticks ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 471 |
function mng_get_framecount ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 472 |
function mng_get_layercount ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 473 |
function mng_get_playtime ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 474 |
function mng_get_simplicity ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 475 |
|
| 476 |
function mng_get_canvasstyle ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 477 |
function mng_get_bkgdstyle ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 478 |
|
| 479 |
procedure mng_get_bgcolor ( hHandle : mng_handle; |
| 480 |
var iRed : mng_uint16; |
| 481 |
var iGreen : mng_uint16; |
| 482 |
var iBlue : mng_uint16 ); stdcall; |
| 483 |
|
| 484 |
function mng_get_usebkgd ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 485 |
|
| 486 |
function mng_get_storechunks ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 487 |
function mng_get_cacheplayback ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 488 |
|
| 489 |
function mng_get_viewgammaint ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 490 |
function mng_get_displaygammaint ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 491 |
function mng_get_dfltimggammaint ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 492 |
|
| 493 |
function mng_get_srgb ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 494 |
|
| 495 |
function mng_get_maxcanvaswidth ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 496 |
function mng_get_maxcanvasheight ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 497 |
|
| 498 |
function mng_get_suspensionmode ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 499 |
|
| 500 |
function mng_get_speed ( hHandle : mng_handle ) : mng_speedtype; stdcall; |
| 501 |
function mng_get_imagelevel ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 502 |
|
| 503 |
function mng_get_starttime ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 504 |
function mng_get_runtime ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 505 |
function mng_get_currentframe ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 506 |
function mng_get_currentlayer ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 507 |
function mng_get_currentplaytime ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 508 |
function mng_get_totalframes ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 509 |
function mng_get_totallayers ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 510 |
function mng_get_totalplaytime ( hHandle : mng_handle ) : mng_uint32; stdcall; |
| 511 |
|
| 512 |
function mng_status_error ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 513 |
function mng_status_reading ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 514 |
function mng_status_suspendbreak ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 515 |
function mng_status_creating ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 516 |
function mng_status_writing ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 517 |
function mng_status_displaying ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 518 |
function mng_status_running ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 519 |
function mng_status_timerbreak ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 520 |
function mng_status_dynamic ( hHandle : mng_handle ) : mng_bool; stdcall; |
| 521 |
|
| 522 |
{****************************************************************************} |
| 523 |
|
| 524 |
function mng_iterate_chunks ( hHandle : mng_handle; |
| 525 |
iChunkseq : mng_uint32; |
| 526 |
fProc : mng_iteratechunk ) : mng_retcode; stdcall; |
| 527 |
|
| 528 |
{****************************************************************************} |
| 529 |
|
| 530 |
function mng_getchunk_ihdr ( hHandle : mng_handle; |
| 531 |
hChunk : mng_handle; |
| 532 |
var iWidth : mng_uint32; |
| 533 |
var iHeight : mng_uint32; |
| 534 |
var iBitdepth : mng_uint8; |
| 535 |
var iColortype : mng_uint8; |
| 536 |
var iCompression : mng_uint8; |
| 537 |
var iFilter : mng_uint8; |
| 538 |
var iInterlace : mng_uint8 ) : mng_retcode; stdcall; |
| 539 |
|
| 540 |
function mng_getchunk_plte ( hHandle : mng_handle; |
| 541 |
hChunk : mng_handle; |
| 542 |
var iCount : mng_uint32; |
| 543 |
var aPalette : mng_palette8 ) : mng_retcode; stdcall; |
| 544 |
|
| 545 |
function mng_getchunk_idat ( hHandle : mng_handle; |
| 546 |
hChunk : mng_handle; |
| 547 |
var iRawlen : mng_uint32; |
| 548 |
var pRawdata : mng_ptr ) : mng_retcode; stdcall; |
| 549 |
|
| 550 |
function mng_getchunk_trns ( hHandle : mng_handle; |
| 551 |
hChunk : mng_handle; |
| 552 |
var bEmpty : mng_bool; |
| 553 |
var bGlobal : mng_bool; |
| 554 |
var iType : mng_uint8; |
| 555 |
var iCount : mng_uint32; |
| 556 |
var aAlphas : mng_uint8arr; |
| 557 |
var iGray : mng_uint16; |
| 558 |
var iRed : mng_uint16; |
| 559 |
var iGreen : mng_uint16; |
| 560 |
var iBlue : mng_uint16; |
| 561 |
var iRawlen : mng_uint32; |
| 562 |
var aRawdata : mng_uint8arr ) : mng_retcode; stdcall; |
| 563 |
|
| 564 |
function mng_getchunk_gama ( hHandle : mng_handle; |
| 565 |
hChunk : mng_handle; |
| 566 |
var bEmpty : mng_bool; |
| 567 |
var iGamma : mng_uint32 ) : mng_retcode; stdcall; |
| 568 |
|
| 569 |
function mng_getchunk_chrm ( hHandle : mng_handle; |
| 570 |
hChunk : mng_handle; |
| 571 |
var bEmpty : mng_bool; |
| 572 |
var iWhitepointx : mng_uint32; |
| 573 |
var iWhitepointy : mng_uint32; |
| 574 |
var iRedx : mng_uint32; |
| 575 |
var iRedy : mng_uint32; |
| 576 |
var iGreenx : mng_uint32; |
| 577 |
var iGreeny : mng_uint32; |
| 578 |
var iBluex : mng_uint32; |
| 579 |
var iBluey : mng_uint32 ) : mng_retcode; stdcall; |
| 580 |
|
| 581 |
function mng_getchunk_srgb ( hHandle : mng_handle; |
| 582 |
hChunk : mng_handle; |
| 583 |
var bEmpty : mng_bool; |
| 584 |
var iRenderingintent : mng_uint8 ) : mng_retcode; stdcall; |
| 585 |
|
| 586 |
function mng_getchunk_iccp ( hHandle : mng_handle; |
| 587 |
hChunk : mng_handle; |
| 588 |
var bEmpty : mng_bool; |
| 589 |
var iNamesize : mng_uint32; |
| 590 |
var zName : mng_pchar; |
| 591 |
var iCompression : mng_uint8; |
| 592 |
var iProfilesize : mng_uint32; |
| 593 |
var pProfile : mng_ptr ) : mng_retcode; stdcall; |
| 594 |
|
| 595 |
function mng_getchunk_text ( hHandle : mng_handle; |
| 596 |
hChunk : mng_handle; |
| 597 |
var iKeywordsize : mng_uint32; |
| 598 |
var zKeyword : mng_pchar; |
| 599 |
var iTextsize : mng_uint32; |
| 600 |
var zText : mng_pchar ) : mng_retcode; stdcall; |
| 601 |
|
| 602 |
function mng_getchunk_ztxt ( hHandle : mng_handle; |
| 603 |
hChunk : mng_handle; |
| 604 |
var iKeywordsize : mng_uint32; |
| 605 |
var zKeyword : mng_pchar; |
| 606 |
var iCompression : mng_uint8; |
| 607 |
var iTextsize : mng_uint32; |
| 608 |
var zText : mng_pchar ) : mng_retcode; stdcall; |
| 609 |
|
| 610 |
function mng_getchunk_itxt ( hHandle : mng_handle; |
| 611 |
hChunk : mng_handle; |
| 612 |
var iKeywordsize : mng_uint32; |
| 613 |
var zKeyword : mng_pchar; |
| 614 |
var iCompressionflag : mng_uint8; |
| 615 |
var iCompressionmethod : mng_uint8; |
| 616 |
var iLanguagesize : mng_uint32; |
| 617 |
var zLanguage : mng_pchar; |
| 618 |
var iTranslationsize : mng_uint32; |
| 619 |
var zTranslation : mng_pchar; |
| 620 |
var iTextsize : mng_uint32; |
| 621 |
var zText : mng_pchar ) : mng_retcode; stdcall; |
| 622 |
|
| 623 |
function mng_getchunk_bkgd ( hHandle : mng_handle; |
| 624 |
hChunk : mng_handle; |
| 625 |
var bEmpty : mng_bool; |
| 626 |
var iType : mng_uint8; |
| 627 |
var iIndex : mng_uint8; |
| 628 |
var iGray : mng_uint16; |
| 629 |
var iRed : mng_uint16; |
| 630 |
var iGreen : mng_uint16; |
| 631 |
var iBlue : mng_uint16 ) : mng_retcode; stdcall; |
| 632 |
|
| 633 |
function mng_getchunk_phys ( hHandle : mng_handle; |
| 634 |
hChunk : mng_handle; |
| 635 |
var bEmpty : mng_bool; |
| 636 |
var iSizex : mng_uint32; |
| 637 |
var iSizey : mng_uint32; |
| 638 |
var iUnit : mng_uint8 ) : mng_retcode; stdcall; |
| 639 |
|
| 640 |
function mng_getchunk_sbit ( hHandle : mng_handle; |
| 641 |
hChunk : mng_handle; |
| 642 |
var bEmpty : mng_bool; |
| 643 |
var iType : mng_uint8; |
| 644 |
var aBits : mng_uint8arr4) : mng_retcode; stdcall; |
| 645 |
|
| 646 |
function mng_getchunk_splt ( hHandle : mng_handle; |
| 647 |
hChunk : mng_handle; |
| 648 |
var bEmpty : mng_bool; |
| 649 |
var iNamesize : mng_uint32; |
| 650 |
var zName : mng_pchar; |
| 651 |
var iSampledepth : mng_uint8; |
| 652 |
var iEntrycount : mng_uint32; |
| 653 |
var pEntries : mng_ptr ) : mng_retcode; stdcall; |
| 654 |
|
| 655 |
function mng_getchunk_hist ( hHandle : mng_handle; |
| 656 |
hChunk : mng_handle; |
| 657 |
var iEntrycount : mng_uint32; |
| 658 |
var aEntries : mng_uint16arr) : mng_retcode; stdcall; |
| 659 |
|
| 660 |
function mng_getchunk_time ( hHandle : mng_handle; |
| 661 |
hChunk : mng_handle; |
| 662 |
var iYear : mng_uint16; |
| 663 |
var iMonth : mng_uint8; |
| 664 |
var iDay : mng_uint8; |
| 665 |
var iHour : mng_uint8; |
| 666 |
var iMinute : mng_uint8; |
| 667 |
var iSecond : mng_uint8 ) : mng_retcode; stdcall; |
| 668 |
|
| 669 |
function mng_getchunk_mhdr ( hHandle : mng_handle; |
| 670 |
hChunk : mng_handle; |
| 671 |
var iWidth : mng_uint32; |
| 672 |
var iHeight : mng_uint32; |
| 673 |
var iTicks : mng_uint32; |
| 674 |
var iLayercount : mng_uint32; |
| 675 |
var iFramecount : mng_uint32; |
| 676 |
var iPlaytime : mng_uint32; |
| 677 |
var iSimplicity : mng_uint32 ) : mng_retcode; stdcall; |
| 678 |
|
| 679 |
function mng_getchunk_loop ( hHandle : mng_handle; |
| 680 |
hChunk : mng_handle; |
| 681 |
var iLevel : mng_uint8; |
| 682 |
var iRepeat : mng_uint32; |
| 683 |
var iTermination : mng_uint8; |
| 684 |
var iItermin : mng_uint32; |
| 685 |
var iItermax : mng_uint32; |
| 686 |
var iCount : mng_uint32; |
| 687 |
var pSignals : mng_uint32p ) : mng_retcode; stdcall; |
| 688 |
|
| 689 |
function mng_getchunk_endl ( hHandle : mng_handle; |
| 690 |
hChunk : mng_handle; |
| 691 |
var iLevel : mng_uint8 ) : mng_retcode; stdcall; |
| 692 |
|
| 693 |
function mng_getchunk_defi ( hHandle : mng_handle; |
| 694 |
hChunk : mng_handle; |
| 695 |
var iObjectid : mng_uint16; |
| 696 |
var iDonotshow : mng_uint8; |
| 697 |
var iConcrete : mng_uint8; |
| 698 |
var bHasloca : mng_bool; |
| 699 |
var iXlocation : mng_int32; |
| 700 |
var iYlocation : mng_int32; |
| 701 |
var bHasclip : mng_bool; |
| 702 |
var iLeftcb : mng_int32; |
| 703 |
var iRightcb : mng_int32; |
| 704 |
var iTopcb : mng_int32; |
| 705 |
var iBottomcb : mng_int32 ) : mng_retcode; stdcall; |
| 706 |
|
| 707 |
function mng_getchunk_basi ( hHandle : mng_handle; |
| 708 |
hChunk : mng_handle; |
| 709 |
var iWidth : mng_uint32; |
| 710 |
var iHeight : mng_uint32; |
| 711 |
var iBitdepth : mng_uint8; |
| 712 |
var iColortype : mng_uint8; |
| 713 |
var iCompression : mng_uint8; |
| 714 |
var iFilter : mng_uint8; |
| 715 |
var iInterlace : mng_uint8; |
| 716 |
var iRed : mng_uint16; |
| 717 |
var iGreen : mng_uint16; |
| 718 |
var iBlue : mng_uint16; |
| 719 |
var iAlpha : mng_uint16; |
| 720 |
var iViewable : mng_uint8 ) : mng_retcode; stdcall; |
| 721 |
|
| 722 |
function mng_getchunk_clon ( hHandle : mng_handle; |
| 723 |
hChunk : mng_handle; |
| 724 |
var iSourceid : mng_uint16; |
| 725 |
var iCloneid : mng_uint16; |
| 726 |
var iClonetype : mng_uint8; |
| 727 |
var iDonotshow : mng_uint8; |
| 728 |
var iConcrete : mng_uint8; |
| 729 |
var bHasloca : mng_bool; |
| 730 |
var iLocationtype : mng_uint8; |
| 731 |
var iLocationx : mng_int32; |
| 732 |
var iLocationy : mng_int32 ) : mng_retcode; stdcall; |
| 733 |
|
| 734 |
function mng_getchunk_past ( hHandle : mng_handle; |
| 735 |
hChunk : mng_handle; |
| 736 |
var iDestid : mng_uint16; |
| 737 |
var iTargettype : mng_uint8; |
| 738 |
var iTargetx : mng_int32; |
| 739 |
var iTargety : mng_int32; |
| 740 |
var iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 741 |
|
| 742 |
function mng_getchunk_past_src ( hHandle : mng_handle; |
| 743 |
hChunk : mng_handle; |
| 744 |
iEntry : mng_uint32; |
| 745 |
var iSourceid : mng_uint16; |
| 746 |
var iComposition : mng_uint8; |
| 747 |
var iOrientation : mng_uint8; |
| 748 |
var iOffsettype : mng_uint8; |
| 749 |
var iOffsetx : mng_int32; |
| 750 |
var iOffsety : mng_int32; |
| 751 |
var iBoundarytype : mng_uint8; |
| 752 |
var iBoundaryl : mng_int32; |
| 753 |
var iBoundaryr : mng_int32; |
| 754 |
var iBoundaryt : mng_int32; |
| 755 |
var iBoundaryb : mng_int32 ) : mng_retcode; stdcall; |
| 756 |
|
| 757 |
function mng_getchunk_disc ( hHandle : mng_handle; |
| 758 |
hChunk : mng_handle; |
| 759 |
var iCount : mng_uint32; |
| 760 |
var pObjectids : mng_uint16p ) : mng_retcode; stdcall; |
| 761 |
|
| 762 |
function mng_getchunk_back ( hHandle : mng_handle; |
| 763 |
hChunk : mng_handle; |
| 764 |
var iRed : mng_uint16; |
| 765 |
var iGreen : mng_uint16; |
| 766 |
var iBlue : mng_uint16; |
| 767 |
var iMandatory : mng_uint8; |
| 768 |
var iImageid : mng_uint16; |
| 769 |
var iTile : mng_uint8 ) : mng_retcode; stdcall; |
| 770 |
|
| 771 |
function mng_getchunk_fram ( hHandle : mng_handle; |
| 772 |
hChunk : mng_handle; |
| 773 |
var bEmpty : mng_bool; |
| 774 |
var iMode : mng_uint8; |
| 775 |
var iNamesize : mng_uint32; |
| 776 |
var zName : mng_pchar; |
| 777 |
var iChangedelay : mng_uint8; |
| 778 |
var iChangetimeout : mng_uint8; |
| 779 |
var iChangeclipping : mng_uint8; |
| 780 |
var iChangesyncid : mng_uint8; |
| 781 |
var iDelay : mng_uint32; |
| 782 |
var iTimeout : mng_uint32; |
| 783 |
var iBoundarytype : mng_uint8; |
| 784 |
var iBoundaryl : mng_int32; |
| 785 |
var iBoundaryr : mng_int32; |
| 786 |
var iBoundaryt : mng_int32; |
| 787 |
var iBoundaryb : mng_int32; |
| 788 |
var iCount : mng_uint32; |
| 789 |
var pSyncids : mng_uint32p ) : mng_retcode; stdcall; |
| 790 |
|
| 791 |
function mng_getchunk_move ( hHandle : mng_handle; |
| 792 |
hChunk : mng_handle; |
| 793 |
var iFirstid : mng_uint16; |
| 794 |
var iLastid : mng_uint16; |
| 795 |
var iMovetype : mng_uint8; |
| 796 |
var iMovex : mng_int32; |
| 797 |
var iMovey : mng_int32 ) : mng_retcode; stdcall; |
| 798 |
|
| 799 |
function mng_getchunk_clip ( hHandle : mng_handle; |
| 800 |
hChunk : mng_handle; |
| 801 |
var iFirstid : mng_uint16; |
| 802 |
var iLastid : mng_uint16; |
| 803 |
var iCliptype : mng_uint8; |
| 804 |
var iClipl : mng_int32; |
| 805 |
var iClipr : mng_int32; |
| 806 |
var iClipt : mng_int32; |
| 807 |
var iClipb : mng_int32 ) : mng_retcode; stdcall; |
| 808 |
|
| 809 |
function mng_getchunk_show ( hHandle : mng_handle; |
| 810 |
hChunk : mng_handle; |
| 811 |
var bEmpty : mng_bool; |
| 812 |
var iFirstid : mng_uint16; |
| 813 |
var iLastid : mng_uint16; |
| 814 |
var iMode : mng_uint8 ) : mng_retcode; stdcall; |
| 815 |
|
| 816 |
function mng_getchunk_term ( hHandle : mng_handle; |
| 817 |
hChunk : mng_handle; |
| 818 |
var iTermaction : mng_uint8; |
| 819 |
var iIteraction : mng_uint8; |
| 820 |
var iDelay : mng_uint32; |
| 821 |
var iItermax : mng_uint32 ) : mng_retcode; stdcall; |
| 822 |
|
| 823 |
function mng_getchunk_save ( hHandle : mng_handle; |
| 824 |
hChunk : mng_handle; |
| 825 |
var bEmpty : mng_bool; |
| 826 |
var iOffsettype : mng_uint8; |
| 827 |
var iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 828 |
|
| 829 |
function mng_getchunk_save_entry ( hHandle : mng_handle; |
| 830 |
hChunk : mng_handle; |
| 831 |
iEntry : mng_uint32; |
| 832 |
var iEntrytype : mng_uint8; |
| 833 |
var iOffset : mng_uint32arr2; |
| 834 |
var iStarttime : mng_uint32arr2; |
| 835 |
var iLayernr : mng_uint32; |
| 836 |
var iFramenr : mng_uint32; |
| 837 |
var iNamesize : mng_uint32; |
| 838 |
var zName : mng_pchar ) : mng_retcode; stdcall; |
| 839 |
|
| 840 |
function mng_getchunk_seek ( hHandle : mng_handle; |
| 841 |
hChunk : mng_handle; |
| 842 |
var iNamesize : mng_uint32; |
| 843 |
var zName : mng_pchar ) : mng_retcode; stdcall; |
| 844 |
|
| 845 |
function mng_getchunk_expi ( hHandle : mng_handle; |
| 846 |
hChunk : mng_handle; |
| 847 |
var iSnapshotid : mng_uint16; |
| 848 |
var iNamesize : mng_uint32; |
| 849 |
var zName : mng_pchar ) : mng_retcode; stdcall; |
| 850 |
|
| 851 |
function mng_getchunk_fpri ( hHandle : mng_handle; |
| 852 |
hChunk : mng_handle; |
| 853 |
var iDeltatype : mng_uint8; |
| 854 |
var iPriority : mng_uint8 ) : mng_retcode; stdcall; |
| 855 |
|
| 856 |
function mng_getchunk_need ( hHandle : mng_handle; |
| 857 |
hChunk : mng_handle; |
| 858 |
var iKeywordssize : mng_uint32; |
| 859 |
var zKeywords : mng_pchar ) : mng_retcode; stdcall; |
| 860 |
|
| 861 |
function mng_getchunk_phyg ( hHandle : mng_handle; |
| 862 |
hChunk : mng_handle; |
| 863 |
var bEmpty : mng_bool; |
| 864 |
var iSizex : mng_uint32; |
| 865 |
var iSizey : mng_uint32; |
| 866 |
var iUnit : mng_uint8 ) : mng_retcode; stdcall; |
| 867 |
|
| 868 |
function mng_getchunk_jhdr ( hHandle : mng_handle; |
| 869 |
hChunk : mng_handle; |
| 870 |
var iWidth : mng_uint32; |
| 871 |
var iHeight : mng_uint32; |
| 872 |
var iColortype : mng_uint8; |
| 873 |
var iImagesampledepth : mng_uint8; |
| 874 |
var iImagecompression : mng_uint8; |
| 875 |
var iImageinterlace : mng_uint8; |
| 876 |
var iAlphasampledepth : mng_uint8; |
| 877 |
var iAlphacompression : mng_uint8; |
| 878 |
var iAlphafilter : mng_uint8; |
| 879 |
var iAlphainterlace : mng_uint8 ) : mng_retcode; stdcall; |
| 880 |
|
| 881 |
function mng_getchunk_jdat ( hHandle : mng_handle; |
| 882 |
hChunk : mng_handle; |
| 883 |
var iRawlen : mng_uint32; |
| 884 |
var pRawdata : mng_ptr ) : mng_retcode; stdcall; |
| 885 |
|
| 886 |
function mng_getchunk_dhdr ( hHandle : mng_handle; |
| 887 |
hChunk : mng_handle; |
| 888 |
var iObjectid : mng_uint16; |
| 889 |
var iImagetype : mng_uint8; |
| 890 |
var iDeltatype : mng_uint8; |
| 891 |
var iBlockwidth : mng_uint32; |
| 892 |
var iBlockheight : mng_uint32; |
| 893 |
var iBlockx : mng_uint32; |
| 894 |
var iBlocky : mng_uint32 ) : mng_retcode; stdcall; |
| 895 |
|
| 896 |
function mng_getchunk_prom ( hHandle : mng_handle; |
| 897 |
hChunk : mng_handle; |
| 898 |
var iColortype : mng_uint8; |
| 899 |
var iSampledepth : mng_uint8; |
| 900 |
var iFilltype : mng_uint8 ) : mng_retcode; stdcall; |
| 901 |
|
| 902 |
function mng_getchunk_pplt ( hHandle : mng_handle; |
| 903 |
hChunk : mng_handle; |
| 904 |
var iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 905 |
|
| 906 |
function mng_getchunk_pplt_entry ( hHandle : mng_handle; |
| 907 |
hChunk : mng_handle; |
| 908 |
iEntry : mng_uint32; |
| 909 |
var iRed : mng_uint16; |
| 910 |
var iGreen : mng_uint16; |
| 911 |
var iBlue : mng_uint16; |
| 912 |
var iAlpha : mng_uint16; |
| 913 |
var bUsed : mng_bool ) : mng_retcode; stdcall; |
| 914 |
|
| 915 |
function mng_getchunk_drop ( hHandle : mng_handle; |
| 916 |
hChunk : mng_handle; |
| 917 |
var iCount : mng_uint32; |
| 918 |
var pChunknames : mng_chunkidp ) : mng_retcode; stdcall; |
| 919 |
|
| 920 |
function mng_getchunk_dbyk ( hHandle : mng_handle; |
| 921 |
hChunk : mng_handle; |
| 922 |
var iChunkname : mng_chunkid; |
| 923 |
var iPolarity : mng_uint8; |
| 924 |
var iKeywordssize : mng_uint32; |
| 925 |
var zKeywords : mng_pchar ) : mng_retcode; stdcall; |
| 926 |
|
| 927 |
function mng_getchunk_ordr ( hHandle : mng_handle; |
| 928 |
hChunk : mng_handle; |
| 929 |
var iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 930 |
|
| 931 |
function mng_getchunk_ordr_entry ( hHandle : mng_handle; |
| 932 |
hChunk : mng_handle; |
| 933 |
iEntry : mng_uint32; |
| 934 |
var iChunkname : mng_chunkid; |
| 935 |
var iOrdertype : mng_uint8 ) : mng_retcode; stdcall; |
| 936 |
|
| 937 |
function mng_getchunk_unknown ( hHandle : mng_handle; |
| 938 |
hChunk : mng_handle; |
| 939 |
var iChunkname : mng_chunkid; |
| 940 |
var iRawlen : mng_uint32; |
| 941 |
var pRawdata : mng_ptr ) : mng_retcode; stdcall; |
| 942 |
|
| 943 |
{****************************************************************************} |
| 944 |
|
| 945 |
function mng_putchunk_ihdr ( hHandle : mng_handle; |
| 946 |
iWidth : mng_uint32; |
| 947 |
iHeight : mng_uint32; |
| 948 |
iBitdepth : mng_uint8; |
| 949 |
iColortype : mng_uint8; |
| 950 |
iCompression : mng_uint8; |
| 951 |
iFilter : mng_uint8; |
| 952 |
iInterlace : mng_uint8 ) : mng_retcode; stdcall; |
| 953 |
|
| 954 |
function mng_putchunk_plte ( hHandle : mng_handle; |
| 955 |
iCount : mng_uint32; |
| 956 |
aPalette : mng_palette8 ) : mng_retcode; stdcall; |
| 957 |
|
| 958 |
function mng_putchunk_idat ( hHandle : mng_handle; |
| 959 |
iRawlen : mng_uint32; |
| 960 |
pRawdata : mng_ptr ) : mng_retcode; stdcall; |
| 961 |
|
| 962 |
function mng_putchunk_iend ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 963 |
|
| 964 |
function mng_putchunk_trns ( hHandle : mng_handle; |
| 965 |
bEmpty : mng_bool; |
| 966 |
bGlobal : mng_bool; |
| 967 |
iType : mng_uint8; |
| 968 |
iCount : mng_uint32; |
| 969 |
aAlphas : mng_uint8arr; |
| 970 |
iGray : mng_uint16; |
| 971 |
iRed : mng_uint16; |
| 972 |
iGreen : mng_uint16; |
| 973 |
iBlue : mng_uint16; |
| 974 |
iRawlen : mng_uint32; |
| 975 |
aRawdata : mng_uint8arr ) : mng_retcode; stdcall; |
| 976 |
|
| 977 |
function mng_putchunk_gama ( hHandle : mng_handle; |
| 978 |
bEmpty : mng_bool; |
| 979 |
iGamma : mng_uint32 ) : mng_retcode; stdcall; |
| 980 |
|
| 981 |
function mng_putchunk_chrm ( hHandle : mng_handle; |
| 982 |
bEmpty : mng_bool; |
| 983 |
iWhitepointx : mng_uint32; |
| 984 |
iWhitepointy : mng_uint32; |
| 985 |
iRedx : mng_uint32; |
| 986 |
iRedy : mng_uint32; |
| 987 |
iGreenx : mng_uint32; |
| 988 |
iGreeny : mng_uint32; |
| 989 |
iBluex : mng_uint32; |
| 990 |
iBluey : mng_uint32 ) : mng_retcode; stdcall; |
| 991 |
|
| 992 |
function mng_putchunk_srgb ( hHandle : mng_handle; |
| 993 |
bEmpty : mng_bool; |
| 994 |
iRenderingintent : mng_uint8 ) : mng_retcode; stdcall; |
| 995 |
|
| 996 |
function mng_putchunk_iccp ( hHandle : mng_handle; |
| 997 |
bEmpty : mng_bool; |
| 998 |
iNamesize : mng_uint32; |
| 999 |
zName : mng_pchar; |
| 1000 |
iCompression : mng_uint8; |
| 1001 |
iProfilesize : mng_uint32; |
| 1002 |
pProfile : mng_ptr ) : mng_retcode; stdcall; |
| 1003 |
|
| 1004 |
function mng_putchunk_text ( hHandle : mng_handle; |
| 1005 |
iKeywordsize : mng_uint32; |
| 1006 |
zKeyword : mng_pchar; |
| 1007 |
iTextsize : mng_uint32; |
| 1008 |
zText : mng_pchar ) : mng_retcode; stdcall; |
| 1009 |
|
| 1010 |
function mng_putchunk_ztxt ( hHandle : mng_handle; |
| 1011 |
iKeywordsize : mng_uint32; |
| 1012 |
zKeyword : mng_pchar; |
| 1013 |
iCompression : mng_uint8; |
| 1014 |
iTextsize : mng_uint32; |
| 1015 |
zText : mng_pchar ) : mng_retcode; stdcall; |
| 1016 |
|
| 1017 |
function mng_putchunk_itxt ( hHandle : mng_handle; |
| 1018 |
iKeywordsize : mng_uint32; |
| 1019 |
zKeyword : mng_pchar; |
| 1020 |
iCompressionflag : mng_uint8; |
| 1021 |
iCompressionmethod : mng_uint8; |
| 1022 |
iLanguagesize : mng_uint32; |
| 1023 |
zLanguage : mng_pchar; |
| 1024 |
iTranslationsize : mng_uint32; |
| 1025 |
zTranslation : mng_pchar; |
| 1026 |
iTextsize : mng_uint32; |
| 1027 |
zText : mng_pchar ) : mng_retcode; stdcall; |
| 1028 |
|
| 1029 |
function mng_putchunk_bkgd ( hHandle : mng_handle; |
| 1030 |
bEmpty : mng_bool; |
| 1031 |
iType : mng_uint8; |
| 1032 |
iIndex : mng_uint8; |
| 1033 |
iGray : mng_uint16; |
| 1034 |
iRed : mng_uint16; |
| 1035 |
iGreen : mng_uint16; |
| 1036 |
iBlue : mng_uint16 ) : mng_retcode; stdcall; |
| 1037 |
|
| 1038 |
function mng_putchunk_phys ( hHandle : mng_handle; |
| 1039 |
bEmpty : mng_bool; |
| 1040 |
iSizex : mng_uint32; |
| 1041 |
iSizey : mng_uint32; |
| 1042 |
iUnit : mng_uint8 ) : mng_retcode; stdcall; |
| 1043 |
|
| 1044 |
function mng_putchunk_sbit ( hHandle : mng_handle; |
| 1045 |
bEmpty : mng_bool; |
| 1046 |
iType : mng_uint8; |
| 1047 |
aBits : mng_uint8arr4) : mng_retcode; stdcall; |
| 1048 |
|
| 1049 |
function mng_putchunk_splt ( hHandle : mng_handle; |
| 1050 |
bEmpty : mng_bool; |
| 1051 |
iNamesize : mng_uint32; |
| 1052 |
zName : mng_pchar; |
| 1053 |
iSampledepth : mng_uint8; |
| 1054 |
iEntrycount : mng_uint32; |
| 1055 |
pEntries : mng_ptr ) : mng_retcode; stdcall; |
| 1056 |
|
| 1057 |
function mng_putchunk_hist ( hHandle : mng_handle; |
| 1058 |
iEntrycount : mng_uint32; |
| 1059 |
aEntries : mng_uint16arr) : mng_retcode; stdcall; |
| 1060 |
|
| 1061 |
function mng_putchunk_time ( hHandle : mng_handle; |
| 1062 |
iYear : mng_uint16; |
| 1063 |
iMonth : mng_uint8; |
| 1064 |
iDay : mng_uint8; |
| 1065 |
iHour : mng_uint8; |
| 1066 |
iMinute : mng_uint8; |
| 1067 |
iSecond : mng_uint8 ) : mng_retcode; stdcall; |
| 1068 |
|
| 1069 |
function mng_putchunk_mhdr ( hHandle : mng_handle; |
| 1070 |
iWidth : mng_uint32; |
| 1071 |
iHeight : mng_uint32; |
| 1072 |
iTicks : mng_uint32; |
| 1073 |
iLayercount : mng_uint32; |
| 1074 |
iFramecount : mng_uint32; |
| 1075 |
iPlaytime : mng_uint32; |
| 1076 |
iSimplicity : mng_uint32 ) : mng_retcode; stdcall; |
| 1077 |
|
| 1078 |
function mng_putchunk_mend ( hHandle : mng_handle ) : mng_retcode; stdcall; |
| 1079 |
|
| 1080 |
function mng_putchunk_loop ( hHandle : mng_handle; |
| 1081 |
iLevel : mng_uint8; |
| 1082 |
iRepeat : mng_uint32; |
| 1083 |
iTermination : mng_uint8; |
| 1084 |
iItermin : mng_uint32; |
| 1085 |
iItermax : mng_uint32; |
| 1086 |
iCount : mng_uint32; |
| 1087 |
pSignals : mng_uint32p ) : mng_retcode; stdcall; |
| 1088 |
|
| 1089 |
function mng_putchunk_endl ( hHandle : mng_handle; |
| 1090 |
iLevel : mng_uint8 ) : mng_retcode; stdcall; |
| 1091 |
|
| 1092 |
function mng_putchunk_defi ( hHandle : mng_handle; |
| 1093 |
iObjectid : mng_uint16; |
| 1094 |
iDonotshow : mng_uint8; |
| 1095 |
iConcrete : mng_uint8; |
| 1096 |
bHasloca : mng_bool; |
| 1097 |
iXlocation : mng_int32; |
| 1098 |
iYlocation : mng_int32; |
| 1099 |
bHasclip : mng_bool; |
| 1100 |
iLeftcb : mng_int32; |
| 1101 |
iRightcb : mng_int32; |
| 1102 |
iTopcb : mng_int32; |
| 1103 |
iBottomcb : mng_int32 ) : mng_retcode; stdcall; |
| 1104 |
|
| 1105 |
function mng_putchunk_basi ( hHandle : mng_handle; |
| 1106 |
iWidth : mng_uint32; |
| 1107 |
iHeight : mng_uint32; |
| 1108 |
iBitdepth : mng_uint8; |
| 1109 |
iColortype : mng_uint8; |
| 1110 |
iCompression : mng_uint8; |
| 1111 |
iFilter : mng_uint8; |
| 1112 |
iInterlace : mng_uint8; |
| 1113 |
iRed : mng_uint16; |
| 1114 |
iGreen : mng_uint16; |
| 1115 |
iBlue : mng_uint16; |
| 1116 |
iAlpha : mng_uint16; |
| 1117 |
iViewable : mng_uint8 ) : mng_retcode; stdcall; |
| 1118 |
|
| 1119 |
function mng_putchunk_clon ( hHandle : mng_handle; |
| 1120 |
iSourceid : mng_uint16; |
| 1121 |
iCloneid : mng_uint16; |
| 1122 |
iClonetype : mng_uint8; |
| 1123 |
iDonotshow : mng_uint8; |
| 1124 |
iConcrete : mng_uint8; |
| 1125 |
bHasloca : mng_bool; |
| 1126 |
iLocationtype : mng_uint8; |
| 1127 |
iLocationx : mng_int32; |
| 1128 |
iLocationy : mng_int32 ) : mng_retcode; stdcall; |
| 1129 |
|
| 1130 |
function mng_putchunk_past ( hHandle : mng_handle; |
| 1131 |
iDestid : mng_uint16; |
| 1132 |
iTargettype : mng_uint8; |
| 1133 |
iTargetx : mng_int32; |
| 1134 |
iTargety : mng_int32; |
| 1135 |
iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 1136 |
|
| 1137 |
function mng_putchunk_past_src ( hHandle : mng_handle; |
| 1138 |
iEntry : mng_uint32; |
| 1139 |
iSourceid : mng_uint16; |
| 1140 |
iComposition : mng_uint8; |
| 1141 |
iOrientation : mng_uint8; |
| 1142 |
iOffsettype : mng_uint8; |
| 1143 |
iOffsetx : mng_int32; |
| 1144 |
iOffsety : mng_int32; |
| 1145 |
iBoundarytype : mng_uint8; |
| 1146 |
iBoundaryl : mng_int32; |
| 1147 |
iBoundaryr : mng_int32; |
| 1148 |
iBoundaryt : mng_int32; |
| 1149 |
iBoundaryb : mng_int32 ) : mng_retcode; stdcall; |
| 1150 |
|
| 1151 |
function mng_putchunk_disc ( hHandle : mng_handle; |
| 1152 |
iCount : mng_uint32; |
| 1153 |
pObjectids : mng_uint16p ) : mng_retcode; stdcall; |
| 1154 |
|
| 1155 |
function mng_putchunk_back ( hHandle : mng_handle; |
| 1156 |
iRed : mng_uint16; |
| 1157 |
iGreen : mng_uint16; |
| 1158 |
iBlue : mng_uint16; |
| 1159 |
iMandatory : mng_uint8; |
| 1160 |
iImageid : mng_uint16; |
| 1161 |
iTile : mng_uint8 ) : mng_retcode; stdcall; |
| 1162 |
|
| 1163 |
function mng_putchunk_fram ( hHandle : mng_handle; |
| 1164 |
bEmpty : mng_bool; |
| 1165 |
iMode : mng_uint8; |
| 1166 |
iNamesize : mng_uint32; |
| 1167 |
zName : mng_pchar; |
| 1168 |
iChangedelay : mng_uint8; |
| 1169 |
iChangetimeout : mng_uint8; |
| 1170 |
iChangeclipping : mng_uint8; |
| 1171 |
iChangesyncid : mng_uint8; |
| 1172 |
iDelay : mng_uint32; |
| 1173 |
iTimeout : mng_uint32; |
| 1174 |
iBoundarytype : mng_uint8; |
| 1175 |
iBoundaryl : mng_int32; |
| 1176 |
iBoundaryr : mng_int32; |
| 1177 |
iBoundaryt : mng_int32; |
| 1178 |
iBoundaryb : mng_int32; |
| 1179 |
iCount : mng_uint32; |
| 1180 |
pSyncids : mng_uint32p ) : mng_retcode; stdcall; |
| 1181 |
|
| 1182 |
function mng_putchunk_move ( hHandle : mng_handle; |
| 1183 |
iFirstid : mng_uint16; |
| 1184 |
iLastid : mng_uint16; |
| 1185 |
iMovetype : mng_uint8; |
| 1186 |
iMovex : mng_int32; |
| 1187 |
iMovey : mng_int32 ) : mng_retcode; stdcall; |
| 1188 |
|
| 1189 |
function mng_putchunk_clip ( hHandle : mng_handle; |
| 1190 |
iFirstid : mng_uint16; |
| 1191 |
iLastid : mng_uint16; |
| 1192 |
iCliptype : mng_uint8; |
| 1193 |
iClipl : mng_int32; |
| 1194 |
iClipr : mng_int32; |
| 1195 |
iClipt : mng_int32; |
| 1196 |
iClipb : mng_int32 ) : mng_retcode; stdcall; |
| 1197 |
|
| 1198 |
function mng_putchunk_show ( hHandle : mng_handle; |
| 1199 |
bEmpty : mng_bool; |
| 1200 |
iFirstid : mng_uint16; |
| 1201 |
iLastid : mng_uint16; |
| 1202 |
iMode : mng_uint8 ) : mng_retcode; stdcall; |
| 1203 |
|
| 1204 |
function mng_putchunk_term ( hHandle : mng_handle; |
| 1205 |
iTermaction : mng_uint8; |
| 1206 |
iIteraction : mng_uint8; |
| 1207 |
iDelay : mng_uint32; |
| 1208 |
iItermax : mng_uint32 ) : mng_retcode; stdcall; |
| 1209 |
|
| 1210 |
function mng_putchunk_save ( hHandle : mng_handle; |
| 1211 |
bEmpty : mng_bool; |
| 1212 |
iOffsettype : mng_uint8; |
| 1213 |
iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 1214 |
|
| 1215 |
function mng_putchunk_save_entry ( hHandle : mng_handle; |
| 1216 |
iEntry : mng_uint32; |
| 1217 |
iEntrytype : mng_uint8; |
| 1218 |
iOffset : mng_uint32arr2; |
| 1219 |
iStarttime : mng_uint32arr2; |
| 1220 |
iLayernr : mng_uint32; |
| 1221 |
iFramenr : mng_uint32; |
| 1222 |
iNamesize : mng_uint32; |
| 1223 |
zName : mng_pchar ) : mng_retcode; stdcall; |
| 1224 |
|
| 1225 |
function mng_putchunk_seek ( hHandle : mng_handle; |
| 1226 |
iNamesize : mng_uint32; |
| 1227 |
zName : mng_pchar ) : mng_retcode; stdcall; |
| 1228 |
|
| 1229 |
function mng_putchunk_expi ( hHandle : mng_handle; |
| 1230 |
iSnapshotid : mng_uint16; |
| 1231 |
iNamesize : mng_uint32; |
| 1232 |
zName : mng_pchar ) : mng_retcode; stdcall; |
| 1233 |
|
| 1234 |
function mng_putchunk_fpri ( hHandle : mng_handle; |
| 1235 |
iDeltatype : mng_uint8; |
| 1236 |
iPriority : mng_uint8 ) : mng_retcode; stdcall; |
| 1237 |
|
| 1238 |
function mng_putchunk_need ( hHandle : mng_handle; |
| 1239 |
iKeywordssize : mng_uint32; |
| 1240 |
zKeywords : mng_pchar ) : mng_retcode; stdcall; |
| 1241 |
|
| 1242 |
function mng_putchunk_phyg ( hHandle : mng_handle; |
| 1243 |
bEmpty : mng_bool; |
| 1244 |
iSizex : mng_uint32; |
| 1245 |
iSizey : mng_uint32; |
| 1246 |
iUnit : mng_uint8 ) : mng_retcode; stdcall; |
| 1247 |
|
| 1248 |
function mng_putchunk_jhdr ( hHandle : mng_handle; |
| 1249 |
iWidth : mng_uint32; |
| 1250 |
iHeight : mng_uint32; |
| 1251 |
iColortype : mng_uint8; |
| 1252 |
iImagesampledepth : mng_uint8; |
| 1253 |
iImagecompression : mng_uint8; |
| 1254 |
iImageinterlace : mng_uint8; |
| 1255 |
iAlphasampledepth : mng_uint8; |
| 1256 |
iAlphacompression : mng_uint8; |
| 1257 |
iAlphafilter : mng_uint8; |
| 1258 |
iAlphainterlace : mng_uint8 ) : mng_retcode; stdcall; |
| 1259 |
|
| 1260 |
function mng_putchunk_jdat ( hHandle : mng_handle; |
| 1261 |
iRawlen : mng_uint32; |
| 1262 |
pRawdata : mng_ptr ) : mng_retcode; stdcall; |
| 1263 |
|
| 1264 |
function mng_putchunk_dhdr ( hHandle : mng_handle; |
| 1265 |
iObjectid : mng_uint16; |
| 1266 |
iImagetype : mng_uint8; |
| 1267 |
iDeltatype : mng_uint8; |
| 1268 |
iBlockwidth : mng_uint32; |
| 1269 |
iBlockheight : mng_uint32; |
| 1270 |
iBlockx : mng_uint32; |
| 1271 |
iBlocky : mng_uint32 ) : mng_retcode; stdcall; |
| 1272 |
|
| 1273 |
function mng_putchunk_prom ( hHandle : mng_handle; |
| 1274 |
iColortype : mng_uint8; |
| 1275 |
iSampledepth : mng_uint8; |
| 1276 |
iFilltype : mng_uint8 ) : mng_retcode; stdcall; |
| 1277 |
|
| 1278 |
function mng_putchunk_pplt ( hHandle : mng_handle; |
| 1279 |
iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 1280 |
|
| 1281 |
function mng_putchunk_pplt_entry ( hHandle : mng_handle; |
| 1282 |
iEntry : mng_uint32; |
| 1283 |
iRed : mng_uint16; |
| 1284 |
iGreen : mng_uint16; |
| 1285 |
iBlue : mng_uint16; |
| 1286 |
iAlpha : mng_uint16; |
| 1287 |
bUsed : mng_bool ) : mng_retcode; stdcall; |
| 1288 |
|
| 1289 |
function mng_putchunk_drop ( hHandle : mng_handle; |
| 1290 |
iCount : mng_uint32; |
| 1291 |
pChunknames : mng_chunkidp ) : mng_retcode; stdcall; |
| 1292 |
|
| 1293 |
function mng_putchunk_dbyk ( hHandle : mng_handle; |
| 1294 |
iChunkname : mng_chunkid; |
| 1295 |
iPolarity : mng_uint8; |
| 1296 |
iKeywordssize : mng_uint32; |
| 1297 |
zKeywords : mng_pchar ) : mng_retcode; stdcall; |
| 1298 |
|
| 1299 |
function mng_putchunk_ordr ( hHandle : mng_handle; |
| 1300 |
iCount : mng_uint32 ) : mng_retcode; stdcall; |
| 1301 |
|
| 1302 |
function mng_putchunk_ordr_entry ( hHandle : mng_handle; |
| 1303 |
iEntry : mng_uint32; |
| 1304 |
iChunkname : mng_chunkid; |
| 1305 |
iOrdertype : mng_uint8 ) : mng_retcode; stdcall; |
| 1306 |
|
| 1307 |
function mng_putchunk_unknown ( hHandle : mng_handle; |
| 1308 |
iChunkname : mng_chunkid; |
| 1309 |
iRawlen : mng_uint32; |
| 1310 |
pRawdata : mng_ptr ) : mng_retcode; stdcall; |
| 1311 |
|
| 1312 |
{****************************************************************************} |
| 1313 |
|
| 1314 |
function mng_updatemngheader ( hHandle : mng_handle; |
| 1315 |
iFramecount : mng_uint32; |
| 1316 |
iLayercount : mng_uint32; |
| 1317 |
iPlaytime : mng_uint32 ) : mng_retcode; stdcall; |
| 1318 |
|
| 1319 |
function mng_updatemngsimplicity ( hHandle : mng_handle; |
| 1320 |
iSimplicity : mng_uint32 ) : mng_retcode; stdcall; |
| 1321 |
|
| 1322 |
{****************************************************************************} |
| 1323 |
|
| 1324 |
const MNG_NOERROR = 0; |
| 1325 |
|
| 1326 |
MNG_OUTOFMEMORY = 1; |
| 1327 |
MNG_INVALIDHANDLE = 2; |
| 1328 |
MNG_NOCALLBACK = 3; |
| 1329 |
MNG_UNEXPECTEDEOF = 4; |
| 1330 |
MNG_ZLIBERROR = 5; |
| 1331 |
MNG_JPEGERROR = 6; |
| 1332 |
MNG_LCMSERROR = 7; |
| 1333 |
MNG_NOOUTPUTPROFILE = 8; |
| 1334 |
MNG_NOSRGBPROFILE = 9; |
| 1335 |
MNG_BUFOVERFLOW = 10; |
| 1336 |
MNG_FUNCTIONINVALID = 11; |
| 1337 |
MNG_OUTPUTERROR = 12; |
| 1338 |
MNG_JPEGBUFTOOSMALL = 13; |
| 1339 |
MNG_NEEDMOREDATA = 14; |
| 1340 |
MNG_NEEDTIMERWAIT = 15; |
| 1341 |
MNG_NEEDSECTIONWAIT = 16; |
| 1342 |
|
| 1343 |
MNG_APPIOERROR = 901; |
| 1344 |
MNG_APPTIMERERROR = 902; |
| 1345 |
MNG_APPCMSERROR = 903; |
| 1346 |
MNG_APPMISCERROR = 904; |
| 1347 |
MNG_APPTRACEABORT = 905; |
| 1348 |
|
| 1349 |
MNG_INTERNALERROR = 999; |
| 1350 |
|
| 1351 |
MNG_INVALIDSIG = 1025; |
| 1352 |
MNG_INVALIDCRC = 1027; |
| 1353 |
MNG_INVALIDLENGTH = 1028; |
| 1354 |
MNG_SEQUENCEERROR = 1029; |
| 1355 |
MNG_CHUNKNOTALLOWED = 1030; |
| 1356 |
MNG_MULTIPLEERROR = 1031; |
| 1357 |
MNG_PLTEMISSING = 1032; |
| 1358 |
MNG_IDATMISSING = 1033; |
| 1359 |
MNG_CANNOTBEEMPTY = 1034; |
| 1360 |
MNG_GLOBALLENGTHERR = 1035; |
| 1361 |
MNG_INVALIDBITDEPTH = 1036; |
| 1362 |
MNG_INVALIDCOLORTYPE = 1037; |
| 1363 |
MNG_INVALIDCOMPRESS = 1038; |
| 1364 |
MNG_INVALIDFILTER = 1039; |
| 1365 |
MNG_INVALIDINTERLACE = 1040; |
| 1366 |
MNG_NOTENOUGHIDAT = 1041; |
| 1367 |
MNG_PLTEINDEXERROR = 1042; |
| 1368 |
MNG_NULLNOTFOUND = 1043; |
| 1369 |
MNG_KEYWORDNULL = 1044; |
| 1370 |
MNG_OBJECTUNKNOWN = 1045; |
| 1371 |
MNG_OBJECTEXISTS = 1046; |
| 1372 |
MNG_TOOMUCHIDAT = 1047; |
| 1373 |
MNG_INVSAMPLEDEPTH = 1048; |
| 1374 |
MNG_INVOFFSETSIZE = 1049; |
| 1375 |
MNG_INVENTRYTYPE = 1050; |
| 1376 |
MNG_ENDWITHNULL = 1051; |
| 1377 |
MNG_INVIMAGETYPE = 1052; |
| 1378 |
MNG_INVDELTATYPE = 1053; |
| 1379 |
MNG_INVALIDINDEX = 1054; |
| 1380 |
MNG_TOOMUCHJDAT = 1055; |
| 1381 |
MNG_JPEGPARMSERR = 1056; |
| 1382 |
MNG_INVFILLMETHOD = 1057; |
| 1383 |
MNG_OBJNOTCONCRETE = 1058; |
| 1384 |
MNG_TARGETNOALPHA = 1059; |
| 1385 |
MNG_MNGTOOCOMPLEX = 1060; |
| 1386 |
MNG_UNKNOWNCRITICAL = 1061; |
| 1387 |
MNG_UNSUPPORTEDNEED = 1062; |
| 1388 |
MNG_INVALIDDELTA = 1063; |
| 1389 |
MNG_INVALIDMETHOD = 1064; |
| 1390 |
MNG_IMPROBABLELENGTH = 1065; |
| 1391 |
MNG_INVALIDBLOCK = 1066; |
| 1392 |
MNG_INVALIDEVENT = 1067; |
| 1393 |
MNG_INVALIDMASK = 1068; |
| 1394 |
MNG_NOMATCHINGLOOP = 1069; |
| 1395 |
MNG_SEEKNOTFOUND = 1070; |
| 1396 |
|
| 1397 |
MNG_INVALIDCNVSTYLE = 2049; |
| 1398 |
MNG_WRONGCHUNK = 2050; |
| 1399 |
MNG_INVALIDENTRYIX = 2051; |
| 1400 |
MNG_NOHEADER = 2052; |
| 1401 |
MNG_NOCORRCHUNK = 2053; |
| 1402 |
MNG_NOMHDR = 2054; |
| 1403 |
|
| 1404 |
MNG_IMAGETOOLARGE = 4097; |
| 1405 |
MNG_NOTANANIMATION = 4098; |
| 1406 |
MNG_FRAMENRTOOHIGH = 4099; |
| 1407 |
MNG_LAYERNRTOOHIGH = 4100; |
| 1408 |
MNG_PLAYTIMETOOHIGH = 4101; |
| 1409 |
MNG_FNNOTIMPLEMENTED = 4102; |
| 1410 |
|
| 1411 |
MNG_IMAGEFROZEN = 8193; |
| 1412 |
|
| 1413 |
{****************************************************************************} |
| 1414 |
|
| 1415 |
const MNG_CANVAS_RGB8 = $00000000; |
| 1416 |
MNG_CANVAS_RGBA8 = $00001000; |
| 1417 |
MNG_CANVAS_ARGB8 = $00003000; |
| 1418 |
MNG_CANVAS_RGB8_A8 = $00005000; |
| 1419 |
MNG_CANVAS_BGR8 = $00000001; |
| 1420 |
MNG_CANVAS_BGRX8 = $00010001; |
| 1421 |
MNG_CANVAS_BGRA8 = $00001001; |
| 1422 |
MNG_CANVAS_ABGR8 = $00003001; |
| 1423 |
MNG_CANVAS_RGB16 = $00000100; { not supported yet } |
| 1424 |
MNG_CANVAS_RGBA16 = $00001100; { not supported yet } |
| 1425 |
MNG_CANVAS_ARGB16 = $00003100; { not supported yet } |
| 1426 |
MNG_CANVAS_BGR16 = $00000101; { not supported yet } |
| 1427 |
MNG_CANVAS_BGRA16 = $00001101; { not supported yet } |
| 1428 |
MNG_CANVAS_ABGR16 = $00003101; { not supported yet } |
| 1429 |
MNG_CANVAS_GRAY8 = $00000002; { not supported yet } |
| 1430 |
MNG_CANVAS_GRAY16 = $00000102; { not supported yet } |
| 1431 |
MNG_CANVAS_GRAYA8 = $00001002; { not supported yet } |
| 1432 |
MNG_CANVAS_GRAYA16 = $00001102; { not supported yet } |
| 1433 |
MNG_CANVAS_AGRAY8 = $00003002; { not supported yet } |
| 1434 |
MNG_CANVAS_AGRAY16 = $00003102; { not supported yet } |
| 1435 |
MNG_CANVAS_DX15 = $00000003; { not supported yet } |
| 1436 |
MNG_CANVAS_DX16 = $00000004; { not supported yet } |
| 1437 |
|
| 1438 |
{****************************************************************************} |
| 1439 |
|
| 1440 |
const MNG_UINT_HUH = $40404040; |
| 1441 |
|
| 1442 |
MNG_UINT_BACK = $4241434b; |
| 1443 |
MNG_UINT_BASI = $42415349; |
| 1444 |
MNG_UINT_CLIP = $434c4950; |
| 1445 |
MNG_UINT_CLON = $434c4f4e; |
| 1446 |
MNG_UINT_DBYK = $4442594b; |
| 1447 |
MNG_UINT_DEFI = $44454649; |
| 1448 |
MNG_UINT_DHDR = $44484452; |
| 1449 |
MNG_UINT_DISC = $44495343; |
| 1450 |
MNG_UINT_DROP = $44524f50; |
| 1451 |
MNG_UINT_ENDL = $454e444c; |
| 1452 |
MNG_UINT_FRAM = $4652414d; |
| 1453 |
MNG_UINT_IDAT = $49444154; |
| 1454 |
MNG_UINT_IEND = $49454e44; |
| 1455 |
MNG_UINT_IHDR = $49484452; |
| 1456 |
MNG_UINT_IJNG = $494a4e47; |
| 1457 |
MNG_UINT_IPNG = $49504e47; |
| 1458 |
MNG_UINT_JDAT = $4a444154; |
| 1459 |
MNG_UINT_JHDR = $4a484452; |
| 1460 |
MNG_UINT_JSEP = $4a534550; |
| 1461 |
MNG_UINT_LOOP = $4c4f4f50; |
| 1462 |
MNG_UINT_MEND = $4d454e44; |
| 1463 |
MNG_UINT_MHDR = $4d484452; |
| 1464 |
MNG_UINT_MOVE = $4d4f5645; |
| 1465 |
MNG_UINT_ORDR = $4f524452; |
| 1466 |
MNG_UINT_PAST = $50415354; |
| 1467 |
MNG_UINT_PLTE = $504c5445; |
| 1468 |
MNG_UINT_PPLT = $50504c54; |
| 1469 |
MNG_UINT_PROM = $50524f4d; |
| 1470 |
MNG_UINT_SAVE = $53415645; |
| 1471 |
MNG_UINT_SEEK = $5345454b; |
| 1472 |
MNG_UINT_SHOW = $53484f57; |
| 1473 |
MNG_UINT_TERM = $5445524d; |
| 1474 |
MNG_UINT_bKGD = $624b4744; |
| 1475 |
MNG_UINT_cHRM = $6348524d; |
| 1476 |
MNG_UINT_eXPI = $65585049; |
| 1477 |
MNG_UINT_fPRI = $66505249; |
| 1478 |
MNG_UINT_gAMA = $67414d41; |
| 1479 |
MNG_UINT_hIST = $68495354; |
| 1480 |
MNG_UINT_iCCP = $69434350; |
| 1481 |
MNG_UINT_iTXt = $69545874; |
| 1482 |
MNG_UINT_nEED = $6e454544; |
| 1483 |
MNG_UINT_oFFs = $6f464673; |
| 1484 |
MNG_UINT_pCAL = $7043414c; |
| 1485 |
MNG_UINT_pHYg = $70444167; |
| 1486 |
MNG_UINT_pHYs = $70485973; |
| 1487 |
MNG_UINT_sBIT = $73424954; |
| 1488 |
MNG_UINT_sCAL = $7343414c; |
| 1489 |
MNG_UINT_sPLT = $73504c54; |
| 1490 |
MNG_UINT_sRGB = $73524742; |
| 1491 |
MNG_UINT_tEXt = $74455874; |
| 1492 |
MNG_UINT_tIME = $74494d45; |
| 1493 |
MNG_UINT_tRNS = $74524e53; |
| 1494 |
MNG_UINT_zTXt = $7a545874; |
| 1495 |
|
| 1496 |
MNG_UINT_evNT = $65764e54; |
| 1497 |
|
| 1498 |
{****************************************************************************} |
| 1499 |
|
| 1500 |
implementation |
| 1501 |
|
| 1502 |
{****************************************************************************} |
| 1503 |
|
| 1504 |
const mngdll = 'libmng.dll'; |
| 1505 |
|
| 1506 |
{****************************************************************************} |
| 1507 |
|
| 1508 |
function mng_initialize; external mngdll; |
| 1509 |
function mng_reset; external mngdll; |
| 1510 |
function mng_cleanup; external mngdll; |
| 1511 |
|
| 1512 |
function mng_read; external mngdll; |
| 1513 |
function mng_read_pushdata; external mngdll; |
| 1514 |
function mng_read_pushsig; external mngdll; |
| 1515 |
function mng_read_pushchunk; external mngdll; |
| 1516 |
function mng_read_resume; external mngdll; |
| 1517 |
function mng_write; external mngdll; |
| 1518 |
function mng_create; external mngdll; |
| 1519 |
|
| 1520 |
function mng_readdisplay; external mngdll; |
| 1521 |
function mng_display; external mngdll; |
| 1522 |
function mng_display_resume; external mngdll; |
| 1523 |
function mng_display_freeze; external mngdll; |
| 1524 |
function mng_display_reset; external mngdll; |
| 1525 |
function mng_display_goframe; external mngdll; |
| 1526 |
function mng_display_golayer; external mngdll; |
| 1527 |
function mng_display_gotime; external mngdll; |
| 1528 |
|
| 1529 |
function mng_trapevent; external mngdll; |
| 1530 |
|
| 1531 |
function mng_getlasterror; external mngdll; |
| 1532 |
|
| 1533 |
{****************************************************************************} |
| 1534 |
|
| 1535 |
function mng_setcb_memalloc; external mngdll; |
| 1536 |
function mng_setcb_memfree; external mngdll; |
| 1537 |
function mng_setcb_releasedata; external mngdll; |
| 1538 |
|
| 1539 |
function mng_setcb_openstream; external mngdll; |
| 1540 |
function mng_setcb_closestream; external mngdll; |
| 1541 |
|
| 1542 |
function mng_setcb_readdata; external mngdll; |
| 1543 |
|
| 1544 |
function mng_setcb_writedata; external mngdll; |
| 1545 |
|
| 1546 |
function mng_setcb_errorproc; external mngdll; |
| 1547 |
function mng_setcb_traceproc; external mngdll; |
| 1548 |
|
| 1549 |
function mng_setcb_processheader; external mngdll; |
| 1550 |
function mng_setcb_processtext; external mngdll; |
| 1551 |
|
| 1552 |
function mng_setcb_getcanvasline; external mngdll; |
| 1553 |
function mng_setcb_getalphaline; external mngdll; |
| 1554 |
function mng_setcb_getbkgdline; external mngdll; |
| 1555 |
function mng_setcb_refresh; external mngdll; |
| 1556 |
|
| 1557 |
function mng_setcb_gettickcount; external mngdll; |
| 1558 |
function mng_setcb_settimer; external mngdll; |
| 1559 |
|
| 1560 |
function mng_setcb_processgamma; external mngdll; |
| 1561 |
function mng_setcb_processchroma; external mngdll; |
| 1562 |
function mng_setcb_processsrgb; external mngdll; |
| 1563 |
function mng_setcb_processiccp; external mngdll; |
| 1564 |
function mng_setcb_processarow; external mngdll; |
| 1565 |
|
| 1566 |
{****************************************************************************} |
| 1567 |
|
| 1568 |
function mng_getcb_memalloc; external mngdll; |
| 1569 |
function mng_getcb_memfree; external mngdll; |
| 1570 |
function mng_getcb_releasedata; external mngdll; |
| 1571 |
|
| 1572 |
function mng_getcb_openstream; external mngdll; |
| 1573 |
function mng_getcb_closestream; external mngdll; |
| 1574 |
|
| 1575 |
function mng_getcb_readdata; external mngdll; |
| 1576 |
|
| 1577 |
function mng_getcb_writedata; external mngdll; |
| 1578 |
|
| 1579 |
function mng_getcb_errorproc; external mngdll; |
| 1580 |
function mng_getcb_traceproc; external mngdll; |
| 1581 |
|
| 1582 |
function mng_getcb_processheader; external mngdll; |
| 1583 |
function mng_getcb_processtext; external mngdll; |
| 1584 |
|
| 1585 |
function mng_getcb_getcanvasline; external mngdll; |
| 1586 |
function mng_getcb_getalphaline; external mngdll; |
| 1587 |
function mng_getcb_getbkgdline; external mngdll; |
| 1588 |
function mng_getcb_refresh; external mngdll; |
| 1589 |
|
| 1590 |
function mng_getcb_gettickcount; external mngdll; |
| 1591 |
function mng_getcb_settimer; external mngdll; |
| 1592 |
|
| 1593 |
function mng_getcb_processgamma; external mngdll; |
| 1594 |
function mng_getcb_processchroma; external mngdll; |
| 1595 |
function mng_getcb_processsrgb; external mngdll; |
| 1596 |
function mng_getcb_processiccp; external mngdll; |
| 1597 |
function mng_getcb_processarow; external mngdll; |
| 1598 |
|
| 1599 |
{****************************************************************************} |
| 1600 |
|
| 1601 |
function mng_set_userdata; external mngdll; |
| 1602 |
|
| 1603 |
function mng_set_canvasstyle; external mngdll; |
| 1604 |
function mng_set_bkgdstyle; external mngdll; |
| 1605 |
|
| 1606 |
function mng_set_bgcolor; external mngdll; |
| 1607 |
function mng_set_usebkgd; external mngdll; |
| 1608 |
|
| 1609 |
function mng_set_storechunks; external mngdll; |
| 1610 |
function mng_set_cacheplayback; external mngdll; |
| 1611 |
|
| 1612 |
// function mng_set_viewgamma; external mngdll; |
| 1613 |
// function mng_set_displaygamma; external mngdll; |
| 1614 |
// function mng_set_dfltimggamma; external mngdll; |
| 1615 |
function mng_set_viewgammaint; external mngdll; |
| 1616 |
function mng_set_displaygammaint; external mngdll; |
| 1617 |
function mng_set_dfltimggammaint; external mngdll; |
| 1618 |
|
| 1619 |
function mng_set_srgb; external mngdll; |
| 1620 |
function mng_set_outputprofile; external mngdll; |
| 1621 |
function mng_set_outputprofile2; external mngdll; |
| 1622 |
function mng_set_srgbprofile; external mngdll; |
| 1623 |
function mng_set_srgbprofile2; external mngdll; |
| 1624 |
|
| 1625 |
function mng_set_maxcanvaswidth; external mngdll; |
| 1626 |
function mng_set_maxcanvasheight; external mngdll; |
| 1627 |
function mng_set_maxcanvassize; external mngdll; |
| 1628 |
|
| 1629 |
function mng_set_suspensionmode; external mngdll; |
| 1630 |
function mng_set_speed; external mngdll; |
| 1631 |
function mng_set_crcmode; external mngdll; |
| 1632 |
|
| 1633 |
{****************************************************************************} |
| 1634 |
|
| 1635 |
function mng_get_userdata; external mngdll; |
| 1636 |
|
| 1637 |
function mng_get_sigtype; external mngdll; |
| 1638 |
function mng_get_imagetype; external mngdll; |
| 1639 |
function mng_get_imagewidth; external mngdll; |
| 1640 |
function mng_get_imageheight; external mngdll; |
| 1641 |
function mng_get_ticks; external mngdll; |
| 1642 |
function mng_get_framecount; external mngdll; |
| 1643 |
function mng_get_layercount; external mngdll; |
| 1644 |
function mng_get_playtime; external mngdll; |
| 1645 |
function mng_get_simplicity; external mngdll; |
| 1646 |
|
| 1647 |
function mng_get_canvasstyle; external mngdll; |
| 1648 |
function mng_get_bkgdstyle; external mngdll; |
| 1649 |
|
| 1650 |
procedure mng_get_bgcolor; external mngdll; |
| 1651 |
function mng_get_usebkgd; external mngdll; |
| 1652 |
|
| 1653 |
function mng_get_storechunks; external mngdll; |
| 1654 |
function mng_get_cacheplayback; external mngdll; |
| 1655 |
|
| 1656 |
// function mng_get_viewgamma; external mngdll; |
| 1657 |
// function mng_get_displaygamma; external mngdll; |
| 1658 |
// function mng_get_dfltimggamma; external mngdll; |
| 1659 |
function mng_get_viewgammaint; external mngdll; |
| 1660 |
function mng_get_displaygammaint; external mngdll; |
| 1661 |
function mng_get_dfltimggammaint; external mngdll; |
| 1662 |
|
| 1663 |
function mng_get_srgb; external mngdll; |
| 1664 |
|
| 1665 |
function mng_get_maxcanvaswidth; external mngdll; |
| 1666 |
function mng_get_maxcanvasheight; external mngdll; |
| 1667 |
|
| 1668 |
function mng_get_suspensionmode; external mngdll; |
| 1669 |
|
| 1670 |
function mng_get_speed; external mngdll; |
| 1671 |
function mng_get_imagelevel; external mngdll; |
| 1672 |
|
| 1673 |
function mng_get_starttime; external mngdll; |
| 1674 |
function mng_get_runtime; external mngdll; |
| 1675 |
function mng_get_currentframe; external mngdll; |
| 1676 |
function mng_get_currentlayer; external mngdll; |
| 1677 |
function mng_get_currentplaytime; external mngdll; |
| 1678 |
function mng_get_totalframes; external mngdll; |
| 1679 |
function mng_get_totallayers; external mngdll; |
| 1680 |
function mng_get_totalplaytime; external mngdll; |
| 1681 |
|
| 1682 |
function mng_status_error; external mngdll; |
| 1683 |
function mng_status_reading; external mngdll; |
| 1684 |
function mng_status_suspendbreak; external mngdll; |
| 1685 |
function mng_status_creating; external mngdll; |
| 1686 |
function mng_status_writing; external mngdll; |
| 1687 |
function mng_status_displaying; external mngdll; |
| 1688 |
function mng_status_running; external mngdll; |
| 1689 |
function mng_status_timerbreak; external mngdll; |
| 1690 |
function mng_status_dynamic; external mngdll; |
| 1691 |
|
| 1692 |
{****************************************************************************} |
| 1693 |
|
| 1694 |
function mng_iterate_chunks; external mngdll; |
| 1695 |
|
| 1696 |
{****************************************************************************} |
| 1697 |
|
| 1698 |
function mng_getchunk_ihdr; external mngdll; |
| 1699 |
function mng_getchunk_plte; external mngdll; |
| 1700 |
function mng_getchunk_idat; external mngdll; |
| 1701 |
function mng_getchunk_trns; external mngdll; |
| 1702 |
function mng_getchunk_gama; external mngdll; |
| 1703 |
function mng_getchunk_chrm; external mngdll; |
| 1704 |
function mng_getchunk_srgb; external mngdll; |
| 1705 |
function mng_getchunk_iccp; external mngdll; |
| 1706 |
function mng_getchunk_text; external mngdll; |
| 1707 |
function mng_getchunk_ztxt; external mngdll; |
| 1708 |
function mng_getchunk_itxt; external mngdll; |
| 1709 |
function mng_getchunk_bkgd; external mngdll; |
| 1710 |
function mng_getchunk_phys; external mngdll; |
| 1711 |
function mng_getchunk_sbit; external mngdll; |
| 1712 |
function mng_getchunk_splt; external mngdll; |
| 1713 |
function mng_getchunk_hist; external mngdll; |
| 1714 |
function mng_getchunk_time; external mngdll; |
| 1715 |
function mng_getchunk_mhdr; external mngdll; |
| 1716 |
function mng_getchunk_loop; external mngdll; |
| 1717 |
function mng_getchunk_endl; external mngdll; |
| 1718 |
function mng_getchunk_defi; external mngdll; |
| 1719 |
function mng_getchunk_basi; external mngdll; |
| 1720 |
function mng_getchunk_clon; external mngdll; |
| 1721 |
function mng_getchunk_past; external mngdll; |
| 1722 |
function mng_getchunk_past_src; external mngdll; |
| 1723 |
function mng_getchunk_disc; external mngdll; |
| 1724 |
function mng_getchunk_back; external mngdll; |
| 1725 |
function mng_getchunk_fram; external mngdll; |
| 1726 |
function mng_getchunk_move; external mngdll; |
| 1727 |
function mng_getchunk_clip; external mngdll; |
| 1728 |
function mng_getchunk_show; external mngdll; |
| 1729 |
function mng_getchunk_term; external mngdll; |
| 1730 |
function mng_getchunk_save; external mngdll; |
| 1731 |
function mng_getchunk_save_entry; external mngdll; |
| 1732 |
function mng_getchunk_seek; external mngdll; |
| 1733 |
function mng_getchunk_expi; external mngdll; |
| 1734 |
function mng_getchunk_fpri; external mngdll; |
| 1735 |
function mng_getchunk_need; external mngdll; |
| 1736 |
function mng_getchunk_phyg; external mngdll; |
| 1737 |
function mng_getchunk_jhdr; external mngdll; |
| 1738 |
function mng_getchunk_jdat; external mngdll; |
| 1739 |
function mng_getchunk_dhdr; external mngdll; |
| 1740 |
function mng_getchunk_prom; external mngdll; |
| 1741 |
function mng_getchunk_pplt; external mngdll; |
| 1742 |
function mng_getchunk_pplt_entry; external mngdll; |
| 1743 |
function mng_getchunk_drop; external mngdll; |
| 1744 |
function mng_getchunk_dbyk; external mngdll; |
| 1745 |
function mng_getchunk_ordr; external mngdll; |
| 1746 |
function mng_getchunk_ordr_entry; external mngdll; |
| 1747 |
function mng_getchunk_unknown; external mngdll; |
| 1748 |
|
| 1749 |
{****************************************************************************} |
| 1750 |
|
| 1751 |
function mng_putchunk_ihdr; external mngdll; |
| 1752 |
function mng_putchunk_plte; external mngdll; |
| 1753 |
function mng_putchunk_idat; external mngdll; |
| 1754 |
function mng_putchunk_iend; external mngdll; |
| 1755 |
function mng_putchunk_trns; external mngdll; |
| 1756 |
function mng_putchunk_gama; external mngdll; |
| 1757 |
function mng_putchunk_chrm; external mngdll; |
| 1758 |
function mng_putchunk_srgb; external mngdll; |
| 1759 |
function mng_putchunk_iccp; external mngdll; |
| 1760 |
function mng_putchunk_text; external mngdll; |
| 1761 |
function mng_putchunk_ztxt; external mngdll; |
| 1762 |
function mng_putchunk_itxt; external mngdll; |
| 1763 |
function mng_putchunk_bkgd; external mngdll; |
| 1764 |
function mng_putchunk_phys; external mngdll; |
| 1765 |
function mng_putchunk_sbit; external mngdll; |
| 1766 |
function mng_putchunk_splt; external mngdll; |
| 1767 |
function mng_putchunk_hist; external mngdll; |
| 1768 |
function mng_putchunk_time; external mngdll; |
| 1769 |
function mng_putchunk_mhdr; external mngdll; |
| 1770 |
function mng_putchunk_mend; external mngdll; |
| 1771 |
function mng_putchunk_loop; external mngdll; |
| 1772 |
function mng_putchunk_endl; external mngdll; |
| 1773 |
function mng_putchunk_defi; external mngdll; |
| 1774 |
function mng_putchunk_basi; external mngdll; |
| 1775 |
function mng_putchunk_clon; external mngdll; |
| 1776 |
function mng_putchunk_past; external mngdll; |
| 1777 |
function mng_putchunk_past_src; external mngdll; |
| 1778 |
function mng_putchunk_disc; external mngdll; |
| 1779 |
function mng_putchunk_back; external mngdll; |
| 1780 |
function mng_putchunk_fram; external mngdll; |
| 1781 |
function mng_putchunk_move; external mngdll; |
| 1782 |
function mng_putchunk_clip; external mngdll; |
| 1783 |
function mng_putchunk_show; external mngdll; |
| 1784 |
function mng_putchunk_term; external mngdll; |
| 1785 |
function mng_putchunk_save; external mngdll; |
| 1786 |
function mng_putchunk_save_entry; external mngdll; |
| 1787 |
function mng_putchunk_seek; external mngdll; |
| 1788 |
function mng_putchunk_expi; external mngdll; |
| 1789 |
function mng_putchunk_fpri; external mngdll; |
| 1790 |
function mng_putchunk_need; external mngdll; |
| 1791 |
function mng_putchunk_phyg; external mngdll; |
| 1792 |
function mng_putchunk_jhdr; external mngdll; |
| 1793 |
function mng_putchunk_jdat; external mngdll; |
| 1794 |
function mng_putchunk_dhdr; external mngdll; |
| 1795 |
function mng_putchunk_prom; external mngdll; |
| 1796 |
function mng_putchunk_pplt; external mngdll; |
| 1797 |
function mng_putchunk_pplt_entry; external mngdll; |
| 1798 |
function mng_putchunk_drop; external mngdll; |
| 1799 |
function mng_putchunk_dbyk; external mngdll; |
| 1800 |
function mng_putchunk_ordr; external mngdll; |
| 1801 |
function mng_putchunk_ordr_entry; external mngdll; |
| 1802 |
function mng_putchunk_unknown; external mngdll; |
| 1803 |
|
| 1804 |
{****************************************************************************} |
| 1805 |
|
| 1806 |
function mng_updatemngheader; external mngdll; |
| 1807 |
function mng_updatemngsimplicity; external mngdll; |
| 1808 |
|
| 1809 |
{****************************************************************************} |
| 1810 |
|
| 1811 |
end. |