HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 <ImfTileDescription.h>
50 #include "ImfExport.h"
51 
53 
54 
55 class IMF_EXPORT DeepImage : public Image
56 {
57  public:
58 
59  //
60  // Constructors and destructor.
61  // The default constructor constructs an image with an empty data
62  // window level mode ONE_LEVEL and level rounding mode ROUND_DOWN.
63  //
64 
65  DeepImage();
66 
67  DeepImage(const IMATH_NAMESPACE::Box2i &dataWindow,
68  LevelMode levelMode = ONE_LEVEL,
69  LevelRoundingMode levelRoundingMode = ROUND_DOWN);
70 
71  virtual ~DeepImage();
72 
73 
74  //
75  // Accessing image levels by level number
76  //
77 
78  virtual DeepImageLevel & level(int l = 0);
79  virtual const DeepImageLevel & level(int l = 0) const;
80 
81  virtual DeepImageLevel & level(int lx, int ly);
82  virtual const DeepImageLevel & level(int lx, int ly) const;
83 
84  protected:
85 
86  virtual DeepImageLevel *
87  newLevel (int lx, int ly, const IMATH_NAMESPACE::Box2i &dataWindow);
88 };
89 
90 
92 
93 #endif
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:109
virtual ImageLevel & level(int l=0)
Box< V2i > Box2i
Definition: ImathBox.h:133
LevelRoundingMode
#define IMF_EXPORT
Definition: ImfExport.h:59
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Definition: ImfNamespace.h:108
virtual ImageLevel * newLevel(int lx, int ly, const IMATH_NAMESPACE::Box2i &dataWindow)=0