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 
20 {
21  ONE_LEVEL = 0,
24 
25  NUM_LEVELMODES // number of different level modes
26 };
27 
29 {
31  ROUND_UP = 1,
32 
33  NUM_ROUNDINGMODES // number of different rounding modes
34 };
35 
37 {
38 public:
39  unsigned int xSize; // size of a tile in the x dimension
40  unsigned int ySize; // size of a tile in the y dimension
43 
45  unsigned int xs = 32,
46  unsigned int ys = 32,
47  LevelMode m = ONE_LEVEL,
49  : xSize (xs), ySize (ys), mode (m), roundingMode (r)
50  {
51  // empty
52  }
53 
54  bool operator== (const TileDescription& other) const
55  {
56  return xSize == other.xSize && ySize == other.ySize &&
57  mode == other.mode && roundingMode == other.roundingMode;
58  }
59 };
60 
62 
63 #endif
#define IMF_EXPORT_ENUM
Definition: ImfExport.h:56
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:83
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:80
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