6 #ifndef INCLUDED_IMF_VERSION_H
7 #define INCLUDED_IMF_VERSION_H
26 static const int MAGIC = 20000630;
39 static const int VERSION_NUMBER_FIELD = 0x000000ff;
40 static const int VERSION_FLAGS_FIELD = 0xffffff00;
46 static const int EXR_VERSION = 2;
53 static const int TILED_FLAG = 0x00000200;
54 static const int LONG_NAMES_FLAG = 0x00000400;
57 static const int NON_IMAGE_FLAG = 0x00000800;
61 static const int MULTI_PART_FILE_FLAG = 0x00001000;
66 static const int ALL_FLAGS =
67 TILED_FLAG | LONG_NAMES_FLAG | NON_IMAGE_FLAG | MULTI_PART_FILE_FLAG;
76 return !!(version & TILED_FLAG);
81 return !!(version & MULTI_PART_FILE_FLAG);
86 return !!(version & NON_IMAGE_FLAG);
91 return version | TILED_FLAG;
96 return version & ~TILED_FLAG;
101 return version & VERSION_NUMBER_FIELD;
106 return version & VERSION_FLAGS_FIELD;
111 return !(flags & ~ALL_FLAGS);
bool isTiled(int version)
int getVersion(int version)
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
bool isMultiPart(int version)
bool isNonImage(int version)
int getFlags(int version)
bool supportsFlags(int flags)
IMF_EXPORT bool isImfMagic(const char bytes[4])
int makeNotTiled(int version)
GT_API const UT_StringHolder version
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
int makeTiled(int version)