HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImfDeepImage.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2014, Industrial Light & Magic, a division of Lucas
4 // Digital Ltd. LLC
5 //
6 // All rights reserved.
7 //
8 // Redistribution and use in source and binary forms, with or without
9 // modification, are permitted provided that the following conditions are
10 // met:
11 // * Redistributions of source code must retain the above copyright
12 // notice, this list of conditions and the following disclaimer.
13 // * Redistributions in binary form must reproduce the above
14 // copyright notice, this list of conditions and the following disclaimer
15 // in the documentation and/or other materials provided with the
16 // distribution.
17 // * Neither the name of Industrial Light & Magic nor the names of
18 // its contributors may be used to endorse or promote products derived
19 // from this software without specific prior written permission.
20 //
21 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 //
33 ///////////////////////////////////////////////////////////////////////////
34 
35 #ifndef INCLUDED_IMF_DEEP_IMAGE_H
36 #define INCLUDED_IMF_DEEP_IMAGE_H
37 
38 //----------------------------------------------------------------------------
39 //
40 // class DeepImage
41 //
42 // For an explanation of images, levels and channels,
43 // see the comments in header file Image.h.
44 //
45 //----------------------------------------------------------------------------
46 
47 #include "ImfDeepImageLevel.h"
48 #include "ImfImage.h"
49 #include "ImfUtilExport.h"
50 
51 #include <ImfTileDescription.h>
52 
54 
55 
56 class DeepImage : public Image
57 {
58  public:
59 
60  //
61  // Constructors and destructor.
62  // The default constructor constructs an image with an empty data
63  // window level mode ONE_LEVEL and level rounding mode ROUND_DOWN.
64  //
65 
67  DeepImage();
68 
73 
75  virtual ~DeepImage();
76 
77 
78  //
79  // Accessing image levels by level number
80  //
81 
83  virtual DeepImageLevel & level(int l = 0);
85  virtual const DeepImageLevel & level(int l = 0) const;
86 
88  virtual DeepImageLevel & level(int lx, int ly);
90  virtual const DeepImageLevel & level(int lx, int ly) const;
91 
92  protected:
93 
95  virtual DeepImageLevel *
96  newLevel (int lx, int ly, const IMATH_NAMESPACE::Box2i &dataWindow);
97 };
98 
99 
101 
102 #endif
virtual IMFUTIL_EXPORT ~DeepImage()
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:109
IMFUTIL_EXPORT const IMATH_NAMESPACE::Box2i & dataWindow() const
virtual IMFUTIL_EXPORT DeepImageLevel * newLevel(int lx, int ly, const IMATH_NAMESPACE::Box2i &dataWindow)
GLdouble l
Definition: glew.h:9122
#define IMFUTIL_EXPORT
Definition: ImfUtilExport.h:44
Box< V2i > Box2i
Definition: ImathBox.h:133
LevelRoundingMode
IMFUTIL_EXPORT LevelRoundingMode levelRoundingMode() const
virtual IMFUTIL_EXPORT DeepImageLevel & level(int l=0)
IMFUTIL_EXPORT LevelMode levelMode() const
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Definition: ImfNamespace.h:108
IMFUTIL_EXPORT DeepImage()