Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::PixelFormatYVYUChar Class Reference

#include <image.h>

Inheritance diagram for fl::PixelFormatYVYUChar:

fl::PixelFormat fl::Filter List of all members.

Public Methods

 PixelFormatYVYUChar ()
virtual Image filter (const Image &image)
 Return an Image in this format.

void fromVYUYChar (const Image &image, Image &result) const
virtual unsigned int getRGBA (void *pixel) const
 Return value is always assumed to be non-linear sRGB. Same for other RGB methods below.

virtual unsigned int getYUV (void *pixel) const
virtual unsigned char getGray (void *pixel) const
virtual void setRGBA (void *pixel, unsigned int rgba) const
virtual void setYUV (void *pixel, unsigned int yuv) const

Detailed Description

Assumes that pixel pairs are 32-bit word aligned. So, if the pixel address falls in the center of a 32-bit word it must refer to the "YV" portion of the pair. Likewise, an address that falls on a 32-bit boundary refers to the "YU" portion.


Constructor & Destructor Documentation

PixelFormatYVYUChar::PixelFormatYVYUChar  
 


Member Function Documentation

Image PixelFormatYVYUChar::filter const Image   image [virtual]
 

Return an Image in this format.

Reimplemented from fl::PixelFormat.

void PixelFormatYVYUChar::fromVYUYChar const Image   image,
Image   result
const
 

unsigned char PixelFormatYVYUChar::getGray void *    pixel const [virtual]
 

Reimplemented from fl::PixelFormat.

unsigned int PixelFormatYVYUChar::getRGBA void *    pixel const [virtual]
 

Return value is always assumed to be non-linear sRGB. Same for other RGB methods below.

Implements fl::PixelFormat.

unsigned int PixelFormatYVYUChar::getYUV void *    pixel const [virtual]
 

See PixelFormatYVYUChar::setRGBA() for more details on the conversion matrix.

Reimplemented from fl::PixelFormat.

void PixelFormatYVYUChar::setRGBA void *    pixel,
unsigned int    rgba
const [virtual]
 

Implements fl::PixelFormat.

void PixelFormatYVYUChar::setYUV void *    pixel,
unsigned int    yuv
const [virtual]
 

Reimplemented from fl::PixelFormat.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18