00001
00021 #ifndef INC_MI32_IMAGEDIMENSIONS_H
00022 #define INC_MI32_IMAGEDIMENSIONS_H
00023
00024 #ifndef INC_MI32_STDDEFNS_H
00025 #include <mi32/stddefns.h>
00026 #endif
00027
00028
00031 class IMAGEDIMENSIONS {
00032 public:
00033
00035 IMAGEDIMENSIONS (
00036 ):
00037 m_Sampling(1), m_TotalColumns(0), m_TotalRows(0), m_NumColumnsPerTile(0), m_NumRowsPerTile(0)
00038 { }
00039
00041 UINT32 GetNumColumnsPerTile (
00042 ) const { return (m_NumColumnsPerTile); }
00043
00045 UINT32 GetNumRowsPerTile (
00046 ) const { return (m_NumRowsPerTile); }
00047
00049 INT32 GetSampling (
00050 ) const { return (m_Sampling); }
00051
00053 UINT32 GetTotalColumns (
00054 ) const { return (m_TotalColumns); }
00055
00057 UINT32 GetTotalRows (
00058 ) const { return (m_TotalRows); }
00059
00061 void SetSampling (
00062 INT32 Sampling
00063 ) { m_Sampling = Sampling; }
00064
00066 void SetTileDimensions (
00067 UINT32 NumColumnsPerTile,
00068 UINT32 NumRowsPerTile
00069 ) { m_NumColumnsPerTile = NumColumnsPerTile; m_NumRowsPerTile = NumRowsPerTile; }
00070
00072 void SetTotalDimensions (
00073 UINT32 TotalColumns,
00074 UINT32 TotalRows
00075 ) { m_TotalColumns = m_NumColumnsPerTile = TotalColumns; m_TotalRows = m_NumRowsPerTile = TotalRows; }
00076
00077 private:
00078 #ifndef GENERATING_DOXYGEN_OUTPUT
00079 INT32 m_Sampling;
00080 UINT32 m_TotalColumns;
00081 UINT32 m_TotalRows;
00082 UINT32 m_NumColumnsPerTile;
00083 UINT32 m_NumRowsPerTile;
00084 #endif
00085 };
00086
00087 #endif // INC_MI32_IMAGEDIMENSIONS_H