HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImfTestFile.h
Go to the documentation of this file.
1 //
2 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright (c) Contributors to the OpenEXR Project.
4 //
5 
6 #ifndef INCLUDED_IMF_TEST_FILE_H
7 #define INCLUDED_IMF_TEST_FILE_H
8 
9 //-----------------------------------------------------------------------------
10 //
11 // Utility routines to test quickly if a given
12 // file is an OpenEXR file, and whether the
13 // file is scanline-based or tiled.
14 //
15 //-----------------------------------------------------------------------------
16 
17 #include "ImfForward.h"
18 
20 
21 IMF_EXPORT bool isOpenExrFile (const char fileName[]);
22 
23 IMF_EXPORT bool isOpenExrFile (const char fileName[], bool& isTiled);
24 
25 IMF_EXPORT bool
26 isOpenExrFile (const char fileName[], bool& isTiled, bool& isDeep);
27 
29  const char fileName[], bool& isTiled, bool& isDeep, bool& isMultiPart);
30 
31 IMF_EXPORT bool isTiledOpenExrFile (const char fileName[]);
32 
33 IMF_EXPORT bool isDeepOpenExrFile (const char fileName[]);
34 
35 IMF_EXPORT bool isMultiPartOpenExrFile (const char fileName[]);
36 
38 
39 IMF_EXPORT bool isOpenExrFile (IStream& is, bool& isTiled);
40 
41 IMF_EXPORT bool isOpenExrFile (IStream& is, bool& isTiled, bool& isDeep);
42 
43 IMF_EXPORT bool
44 isOpenExrFile (IStream& is, bool& isTiled, bool& isDeep, bool& isMultiPart);
45 
47 
49 
51 
53 
54 #endif
Definition: ImfIO.h:26
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:83
bool isMultiPart(int version)
Definition: ImfVersion.h:79
IMF_EXPORT bool isDeepOpenExrFile(const char fileName[])
IMF_EXPORT bool isTiled(const std::string &name)
#define IMF_EXPORT
Definition: ImfExport.h:54
IMF_EXPORT bool isMultiPartOpenExrFile(const char fileName[])
IMF_EXPORT bool isTiledOpenExrFile(const char fileName[])
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Definition: ImfNamespace.h:80
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER IMF_EXPORT bool isOpenExrFile(const char fileName[])