HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImfTileDescription.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_TILE_DESCRIPTION_H
7 #define INCLUDED_IMF_TILE_DESCRIPTION_H
8 
9 //-----------------------------------------------------------------------------
10 //
11 // class TileDescription and enum LevelMode
12 //
13 //-----------------------------------------------------------------------------
14 #include "ImfExport.h"
15 #include "ImfNamespace.h"
16 
18 
19 
21 {
22  ONE_LEVEL = 0,
25 
26  NUM_LEVELMODES // number of different level modes
27 };
28 
29 
31 {
33  ROUND_UP = 1,
34 
35  NUM_ROUNDINGMODES // number of different rounding modes
36 };
37 
38 
40 {
41  public:
42 
43  unsigned int xSize; // size of a tile in the x dimension
44  unsigned int ySize; // size of a tile in the y dimension
47 
48  TileDescription (unsigned int xs = 32,
49  unsigned int ys = 32,
50  LevelMode m = ONE_LEVEL,
52  :
53  xSize (xs),
54  ySize (ys),
55  mode (m),
56  roundingMode (r)
57  {
58  // empty
59  }
60 
61  bool
62  operator == (const TileDescription &other) const
63  {
64  return xSize == other.xSize &&
65  ySize == other.ySize &&
66  mode == other.mode &&
67  roundingMode == other.roundingMode;
68  }
69 };
70 
71 
73 
74 
75 
76 
77 
78 #endif
#define IMF_EXPORT_ENUM
Definition: ImfExport.h:56
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:80
TileDescription(unsigned int xs=32, unsigned int ys=32, LevelMode m=ONE_LEVEL, LevelRoundingMode r=ROUND_DOWN)
enum IMF_EXPORT_ENUM LevelRoundingMode
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
RIPMAP_LEVELS
GLenum mode
Definition: glcorearb.h:99
LevelRoundingMode roundingMode
unsigned int ySize
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Definition: ImfNamespace.h:79
MIPMAP_LEVELS
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMF_EXPORT_ENUM LevelMode
ROUND_DOWN
GLboolean r
Definition: glcorearb.h:1222
#define IMF_EXPORT_TYPE
Definition: ImfExport.h:57
unsigned int xSize