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 
22 IMF_EXPORT bool isOpenExrFile (const char fileName[]);
23 
24 IMF_EXPORT bool isOpenExrFile (const char fileName[],
25  bool &isTiled);
26 
27 IMF_EXPORT bool isOpenExrFile (const char fileName[],
28  bool &isTiled,
29  bool &isDeep);
30 
31 IMF_EXPORT bool isOpenExrFile (const char fileName[],
32  bool &isTiled,
33  bool &isDeep,
34  bool &isMultiPart);
35 
36 IMF_EXPORT bool isTiledOpenExrFile (const char fileName[]);
37 
38 IMF_EXPORT bool isDeepOpenExrFile (const char fileName[]);
39 
40 IMF_EXPORT bool isMultiPartOpenExrFile (const char fileName[]);
41 
43 
45  bool &isTiled);
46 
48  bool &isTiled,
49  bool &isDeep);
50 
52  bool &isTiled,
53  bool &isDeep,
54  bool &isMultiPart);
55 
57 
59 
61 
62 
64 
65 #endif
Definition: ImfIO.h:26
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:80
bool isMultiPart(int version)
Definition: ImfVersion.h:82
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:79
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER IMF_EXPORT bool isOpenExrFile(const char fileName[])