uInt16Channel Class Reference

uInt16Channel Class Reference

#include <image.h>

Class Description

The data type for a 16 bit image channel. 0-65535 maps to 0.0 to 1.0.

Definition at line 136 of file image.h.

Public Member Functions

 uInt16Channel (const float32Channel &d)
 
 uInt16Channel (const float16Channel &d)
 
 uInt16Channel (const uInt16Channel &d)
 
 uInt16Channel (const uInt8Channel &d)
 
 uInt16Channel (uInt16 d)
 
 uInt16Channel ()
 
uInt16Channeloperator= (const float32Channel &d)
 
uInt16Channeloperator= (const float16Channel &d)
 
uInt16Channeloperator= (const uInt16Channel &d)
 
uInt16Channeloperator= (uInt16 d)
 
uInt16Channeloperator= (const uInt8Channel &d)
 
 operator float () const
 
 operator half_ () const
 
 operator uInt16 () const
 
 operator uInt8 () const
 

Constructor & Destructor Documentation

uInt16Channel ( const float32Channel d)
inline

Definition at line 327 of file image.h.

327 { m_data = uInt16(d); }
unsigned short uInt16
Definition: image.h:88
uInt16Channel ( const float16Channel d)
inline

Definition at line 328 of file image.h.

328 { m_data = uInt16(d); }
unsigned short uInt16
Definition: image.h:88
uInt16Channel ( const uInt16Channel d)
inline

Definition at line 143 of file image.h.

143 { m_data = uInt16(d); }
unsigned short uInt16
Definition: image.h:88
uInt16Channel ( const uInt8Channel d)
inline

Definition at line 144 of file image.h.

144 { m_data = uInt16(d); }
unsigned short uInt16
Definition: image.h:88
uInt16Channel ( uInt16  d)
inline

Definition at line 145 of file image.h.

145 { m_data = (d); }
uInt16Channel ( )
inline

Definition at line 146 of file image.h.

146 {}

Member Function Documentation

uInt16Channel & operator= ( const float32Channel d)
inline

Definition at line 331 of file image.h.

332 {
333  m_data = uInt16(d);
334  return *this;
335 }
unsigned short uInt16
Definition: image.h:88
uInt16Channel & operator= ( const float16Channel d)
inline

Definition at line 338 of file image.h.

339 {
340  m_data = uInt16(d);
341  return *this;
342 }
unsigned short uInt16
Definition: image.h:88
uInt16Channel& operator= ( const uInt16Channel d)
inline

Definition at line 151 of file image.h.

152  {
153  m_data = uInt16(d);
154  return *this;
155  }
unsigned short uInt16
Definition: image.h:88
uInt16Channel& operator= ( uInt16  d)
inline

Definition at line 157 of file image.h.

158  {
159  m_data = uInt16(d);
160  return *this;
161  }
unsigned short uInt16
Definition: image.h:88
uInt16Channel& operator= ( const uInt8Channel d)
inline

Definition at line 163 of file image.h.

164  {
165  m_data = uInt16(d);
166  return *this;
167  }
unsigned short uInt16
Definition: image.h:88
operator float ( ) const
inline

Definition at line 169 of file image.h.

169 { return m_data * (1.0f/65535.0f); }
operator half_ ( ) const
inline

Definition at line 170 of file image.h.

170 { return half_(m_data * (1.0f/65535.0f)); }
GLclampf f
Definition: GLee.h:9303
operator uInt16 ( ) const
inline

Definition at line 171 of file image.h.

171 { return m_data; }
operator uInt8 ( ) const
inline

Definition at line 172 of file image.h.

172 { return uInt8(m_data >> 8); }
unsigned char uInt8
Definition: image.h:87

The documentation for this class was generated from the following file: