gml_TColor_YUV Class Template Reference

#include <gml_YUVColor.h>

Collaboration diagram for gml_TColor_YUV:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename Channel>
class gml_TColor_YUV< Channel >

A union type used to represent YUV-encoded color pixels.


Public Member Functions

 gml_TColor_YUV (UInt8 const r, UInt8 const g, UInt8 const b)
 Convert a 24-bit RGB triplet into YUV and fill in the object.
 gml_TColor_YUV (const void *const ptr)
 Fill the structure from data in memory.
 gml_TColor_YUV ()
 Leave the structure `as is'. I.e. probably zero.
void Print ()
 Dump a representation of the pixel to stdout: channels in hex and in degrees, percent, percent format.
void Store (void *const ptr)
 Place the structure's data in memory.
void Convert (UInt8 &r, UInt8 &g, UInt8 &b)
 Convert the YUV data in this object to a 24 bit RGB triplet.
UInt16 Distance (const gml_TColor_YUV< Channel > other)
 Compute the 16-bit distance to another YUV pixel. Not implemented.

Public Attributes

struct {
   Channel   Y
 < structure for transparent channel access luminance
   Channel   U
 red chrominance
   Channel   V
 blue chrominance
GML_PACKED

Static Public Attributes

static UInt8 const sChannelBits = 8 * sizeof (Channel)
 bits per channel
static UInt64 const sChannelMax = (1 << sChannelBits) - 1
 max channel value

Member Function Documentation

void Print (  )  [inline]

Dump a representation of the pixel to stdout: channels in hex and in degrees, percent, percent format.

Warning:
no newline appended !


The documentation for this class was generated from the following file:
Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.