RealRGB24toYUV420Converter Class Reference

#include <RealRGB24toYUV420Converter.h>

Inheritance diagram for RealRGB24toYUV420Converter:

RGBtoYUV420Converter RGBtoYUV420Converter

Detailed Description

Double precision floating point RGB 24 bit to YUV420 colour conversion derived from the RGBtoYUV420Converter base class.

Use this implementation as the reference.

Definition at line 37 of file Copy of Image/RealRGB24toYUV420Converter.h.


Public Member Functions

 RealRGB24toYUV420Converter (void)
 RealRGB24toYUV420Converter (int width, int height)
virtual ~RealRGB24toYUV420Converter (void)
void Convert (void *pRgb, void *pY, void *pU, void *pV)
 Double precision reference implementation.
 RealRGB24toYUV420Converter (void)
 RealRGB24toYUV420Converter (int width, int height)
virtual ~RealRGB24toYUV420Converter (void)
void Convert (void *pRgb, void *pY, void *pU, void *pV)

Member Function Documentation

void RealRGB24toYUV420Converter::Convert ( void *  pRgb,
void *  pY,
void *  pU,
void *  pV 
) [virtual]

Double precision reference implementation.

The full real matix equation is used. The YUV output is represented with 8 bits per pel and the UV components are adjusted from their -128..127 range to 0..255.

Parameters:
pRgb : Packed RGB 888 format.
pY : Lum plane.
pU : Chr U plane.
pV : Chr V plane.
Returns:
: none.

Y have range 0..255, U & V have range -128..127.

Step in 2x2 pel blocks. (4 pels per block).

Top left pel. 255->0.999.

Top right pel.

Bottom left pel. 255->0.999.

Bottom right pel.

Average the 4 chr values.

Implements RGBtoYUV420Converter.

Definition at line 68 of file Copy of Image/RealRGB24toYUV420Converter.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Mar 13 14:12:39 2009 for RTVC by  doxygen 1.5.3