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 "ImfNamespace.h"
17 #include "ImfUtilExport.h"
18 #include <ImathBox.h>
19 
21 
23 {
25  USE_HEADER_DATA_WINDOW
26 };
27 
28 //
29 // Given the an image, i, an OpenEXR file header, h, and a data window
30 // source flag, d, dataWindowForFile(i,h,d) returns i.dataWindow() if d
31 // is USE_IMAGE_DATA_WINDOW, or the intersection of i.dataWindow() and
32 // h.dataWindow() if d is USE_HEADER_DATA_WINDOW.
33 //
34 
35 class Image;
36 class Header;
37 
40 dataWindowForFile (const Header& hdr, const Image& img, DataWindowSource dws);
41 
43 
44 #endif
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:83
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:80