#include <RealRGB24toYUV420Converter.h>
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) |
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.
pRgb | : Packed RGB 888 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.
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.