RealRGB32toYUV420Converter Class Reference

#include <RealRGB32toYUV420Converter.h>

Inheritance diagram for RealRGB32toYUV420Converter:

RGBtoYUV420Converter RGBtoYUV420Converter

Detailed Description

Double precision floating point RGB 32 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/RealRGB32toYUV420Converter.h.


Public Member Functions

 RealRGB32toYUV420Converter (void)
 RealRGB32toYUV420Converter (int width, int height)
virtual ~RealRGB32toYUV420Converter (void)
void Convert (void *pRgb, void *pY, void *pU, void *pV)
 Double precision floating point RGB 32 bit to YUV420 colour conversion derived from the RGBtoYUV420Converter base class.
 RealRGB32toYUV420Converter (void)
 RealRGB32toYUV420Converter (int width, int height)
virtual ~RealRGB32toYUV420Converter (void)
void Convert (void *pRgb, void *pY, void *pU, void *pV)

Member Function Documentation

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

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

Double precision reference implementation.

YUV is represented with 8 bpp. Use this implementation as the reference. The full real matrix 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 8888 format.
pY : Lum plane.
pU : Chr U plane.
pV : Chr V plane.
Returns:
: none.
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 8888 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.

< Alpha channel.

Top right pel.

< Alpha channel.

Bottom left pel. 255->0.999.

< Alpha channel.

Bottom right pel.

Average the 4 chr values.

Implements RGBtoYUV420Converter.

Definition at line 73 of file Copy of Image/RealRGB32toYUV420Converter.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