HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImfImageDataWindow.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_IMAGE_DATA_WINDOW_H
7 #define INCLUDED_IMF_IMAGE_DATA_WINDOW_H
8 
9 //----------------------------------------------------------------------------
10 //
11 // enum DataWindowSource,
12 // function dataWindowForFile()
13 //
14 //----------------------------------------------------------------------------
15 
16 #include "ImfUtilExport.h"
17 #include "ImfNamespace.h"
18 #include <ImathBox.h>
19 
21 
22 
24 {
26  USE_HEADER_DATA_WINDOW
27 };
28 
29 
30 //
31 // Given the an image, i, an OpenEXR file header, h, and a data window
32 // source flag, d, dataWindowForFile(i,h,d) returns i.dataWindow() if d
33 // is USE_IMAGE_DATA_WINDOW, or the intersection of i.dataWindow() and
34 // h.dataWindow() if d is USE_HEADER_DATA_WINDOW.
35 //
36 
37 class Image;
38 class Header;
39 
42 dataWindowForFile (const Header &hdr, const Image &img, DataWindowSource dws);
43 
44 
46 
47 #endif
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:80
IMFUTIL_EXPORT IMATH_NAMESPACE::Box2i dataWindowForFile(const Header &hdr, const Image &img, DataWindowSource dws)
Definition: Image.h:45
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMFUTIL_EXPORT_ENUM DataWindowSource
Box< V2i > Box2i
2D box of base type int.
Definition: ImathBox.h:143
#define IMFUTIL_EXPORT
Definition: ImfUtilExport.h:51
GLint void * img
Definition: glcorearb.h:556
#define IMFUTIL_EXPORT_ENUM
Definition: ImfUtilExport.h:53
USE_IMAGE_DATA_WINDOW
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Definition: ImfNamespace.h:79