#include <RealRGB32toYUV420Converter.h>
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) |
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.
pRgb | : Packed RGB 8888 format. | |
pY | : Lum plane. | |
pU | : Chr U plane. | |
pV | : Chr V plane. |
pRgb | : Packed RGB 8888 format. | |
pY | : Lum plane. | |
pU | : Chr U plane. | |
pV | : Chr V plane. |
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.