#include "Image/color_conversions.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Image/colorDefs.H"
#include "Util/Promotions.H"
#include "rutz/trace.h"
#include <pthread.h>
Go to the source code of this file.
Defines | |
#define | Y_R_IN 0.257 |
#define | Y_G_IN 0.504 |
#define | Y_B_IN 0.098 |
#define | Y_ADD_IN 16 |
#define | U_R_IN 0.148 |
#define | U_G_IN 0.291 |
#define | U_B_IN 0.439 |
#define | U_ADD_IN 128 |
#define | V_R_IN 0.439 |
#define | V_G_IN 0.368 |
#define | V_B_IN 0.071 |
#define | V_ADD_IN 128 |
#define | SCALEBITS_IN 8 |
#define | FIX_IN(x) (int((x) * (1L<<SCALEBITS_IN) + 0.5)) |
Functions | |
void | yv12_to_rgb24_c (unsigned char *dst, int dst_stride, const unsigned char *y_src, const unsigned char *u_src, const unsigned char *v_src, int y_stride, int uv_stride, int width, int height) |
void | rgb24_to_yv12_c (const Image< PixRGB< byte > > &img, byte *const y_out, byte *u_out, byte *v_out) |
void | yuv422p_to_rgb24_c (byte *dst, const int w, const int h, const byte *yptr, const byte *uptr, const byte *vptr) |
void | yuv422_to_rgb24_c (byte *dst, const int w, const int h, const byte *yuv422ptr, const bool byteswap) |
low-level routines for colorspace conversions
Definition in file color_conversions.C.