uInt8Channel Class Reference

uInt8Channel Class Reference

#include <image.h>

Class Description

The data type for a 8 bit image channel.

0-255 maps to 0.0 to 1.0 in floating point or 0-65535 in 16 bit fixed point.

Definition at line 99 of file image.h.

Public Member Functions

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

Constructor & Destructor Documentation

uInt8Channel ( const float32Channel d)
inline

Definition at line 300 of file image.h.

300 { m_data = uInt8(d); }
unsigned char uInt8
Definition: image.h:87
uInt8Channel ( const float16Channel d)
inline

Definition at line 301 of file image.h.

301 { m_data = uInt8(d); }
unsigned char uInt8
Definition: image.h:87
uInt8Channel ( const uInt16Channel d)
inline

Definition at line 302 of file image.h.

302 { m_data = uInt8(d); }
unsigned char uInt8
Definition: image.h:87
uInt8Channel ( const uInt8Channel d)
inline

Definition at line 107 of file image.h.

107 { m_data = uInt8(d); }
unsigned char uInt8
Definition: image.h:87
uInt8Channel ( uInt8  d)
inline

Definition at line 109 of file image.h.

109 { m_data = (d); }
uInt8Channel ( )
inline

Definition at line 110 of file image.h.

110 {}

Member Function Documentation

uInt8Channel & operator= ( const float32Channel d)
inline

Definition at line 305 of file image.h.

306 {
307  m_data = uInt8(d);
308  return *this;
309 }
unsigned char uInt8
Definition: image.h:87
uInt8Channel & operator= ( const float16Channel d)
inline

Definition at line 312 of file image.h.

313 {
314  m_data = uInt8(d);
315  return *this;
316 }
unsigned char uInt8
Definition: image.h:87
uInt8Channel & operator= ( const uInt16Channel d)
inline

Definition at line 319 of file image.h.

320 {
321  m_data = uInt8(d);
322  return *this;
323 }
unsigned char uInt8
Definition: image.h:87
uInt8Channel& operator= ( const uInt8Channel d)
inline

Definition at line 115 of file image.h.

116  {
117  m_data = uInt8(d);
118  return *this;
119  }
unsigned char uInt8
Definition: image.h:87
uInt8Channel& operator= ( uInt8  d)
inline

Definition at line 121 of file image.h.

122  {
123  m_data = uInt8(d);
124  return *this;
125  }
unsigned char uInt8
Definition: image.h:87
operator float ( ) const
inline

Definition at line 127 of file image.h.

127 { return m_data * (1.0f/255.0f); }
operator half_ ( ) const
inline

Definition at line 128 of file image.h.

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

Definition at line 129 of file image.h.

129 { return (m_data << 8) + m_data; }
operator uInt8 ( ) const
inline

Definition at line 130 of file image.h.

130 { return m_data; }

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