PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/src/FreeImage/Source/FreeImageIO.h

https://bitbucket.org/cabalistic/ogredeps/
C++ Header | 48 lines | 15 code | 7 blank | 26 comment | 0 complexity | dce6dbba7cf629e4f81680639a2042cc MD5 | raw file
 1// ==========================================================
 2// Input/Output functions
 3//
 4// Design and implementation by
 5// - Floris van den Berg (flvdberg@wxs.nl)
 6//
 7// This file is part of FreeImage 3
 8//
 9// COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY
10// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
11// THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE
12// OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED
13// CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT
14// THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
15// SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL
16// PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER
17// THIS DISCLAIMER.
18//
19// Use at your own risk!
20// ==========================================================
21
22#ifndef FREEIMAGEIO_H
23#define FREEIMAGEIO_H
24
25#ifndef FREEIMAGE_H
26#include "FreeImage.h"
27#endif
28
29// ----------------------------------------------------------
30
31FI_STRUCT (FIMEMORYHEADER) {
32	/// remember to delete the buffer
33	BOOL delete_me;
34	/// file length
35	long filelen;
36	/// buffer size
37	long datalen;
38	/// current position
39	long curpos;
40	/// start buffer address
41	void *data;
42};
43
44void SetDefaultIO(FreeImageIO *io);
45
46void SetMemoryIO(FreeImageIO *io);
47
48#endif // !FREEIMAGEIO_H