Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

oxp_yuv_to_rgb.h File Reference


Detailed Description

Author:
fsm
RGB to YUV Conversion
      Y  =      (0.257 * R) + (0.504 * G) + (0.098 * B) + 16
      Cr = V =  (0.439 * R) - (0.368 * G) - (0.071 * B) + 128
      Cb = U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128
YUV to RGB Conversion
      B = 1.164(Y - 16)                  + 2.018(U - 128)
      G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128)
      R = 1.164(Y - 16) + 1.596(V - 128)
Alternative:
      Y = 0.299R + 0.587G + 0.114B
      U'= (B-Y)*0.565
      V'= (R-Y)*0.713
with reciprocal versions:
      R = Y + 1.403V'
      G = Y - 0.344U' - 0.714V'
      B = Y + 1.770U'

    Modifications
     10 Sep. 2004 Peter Vanroose  Inlined all 1-line methods in class decl
   

Definition in file oxp_yuv_to_rgb.h.

Go to the source code of this file.

Functions

unsigned char oxp_yuv_to_rgb_byte_clamp (int x)
void oxp_yuv_to_rgb (unsigned char y, unsigned char u, unsigned char v, unsigned char *rgb)


Function Documentation

void oxp_yuv_to_rgb unsigned char  y,
unsigned char  u,
unsigned char  v,
unsigned char *  rgb
[inline]
 

Definition at line 48 of file oxp_yuv_to_rgb.h.

unsigned char oxp_yuv_to_rgb_byte_clamp int  x  )  [inline]
 

Definition at line 39 of file oxp_yuv_to_rgb.h.


Generated on Thu Jan 10 14:46:06 2008 for contrib/oxl/oxp by  doxygen 1.4.4