iceWing
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
Gcolor.h File Reference
#include <gtk/gtk.h>
#include "Gimage.h"
#include <math.h>

Go to the source code of this file.

Macros

#define __USE_ISOC9X   1
#define __USE_ISOC99   1
#define gui_lrint(v)   __gui_lrint_code(v)
#define PREVCOL_SHIFT   10
#define PREVCOL_HALF   (1 << (PREVCOL_SHIFT - 1))
#define PREVCOL_FIX(x)   ((int) ((x) * (1<<PREVCOL_SHIFT) + 0.5))
#define PREVCOL_MAX_NEG_CROP   1024

Functions

void prev_rgbToHsv (guchar rc, guchar gc, guchar bc, guchar *h, guchar *s, guchar *v)
void prev_hsvToRgb (guchar h, guchar s, guchar v, guchar *rc, guchar *gc, guchar *bc)
void prev_yuvToRgbVis (guchar yc, guchar uc, guchar vc, guchar *rc, guchar *gc, guchar *bc)
void prev_rgbToYuvVis (guchar rc, guchar gc, guchar bc, guchar *yc, guchar *uc, guchar *vc)
void prev_col_init (void)

Variables

guchar prev_col_cropTbl [256+2 *PREVCOL_MAX_NEG_CROP]

Macro Definition Documentation

#define __USE_ISOC9X   1
#define __USE_ISOC99   1
#define gui_lrint (   v)    __gui_lrint_code(v)
#define PREVCOL_SHIFT   10

PRIVATE

#define PREVCOL_HALF   (1 << (PREVCOL_SHIFT - 1))
#define PREVCOL_FIX (   x)    ((int) ((x) * (1<<PREVCOL_SHIFT) + 0.5))
#define PREVCOL_MAX_NEG_CROP   1024

Function Documentation

void prev_rgbToHsv ( guchar  rc,
guchar  gc,
guchar  bc,
guchar *  h,
guchar *  s,
guchar *  v 
)

  Perform RGB to HSV conversion. The intervall is allways 0..255.

void prev_hsvToRgb ( guchar  h,
guchar  s,
guchar  v,
guchar *  rc,
guchar *  gc,
guchar *  bc 
)

  Perform HSV to RGB conversion. The intervall is  allways 0..255.

void prev_yuvToRgbVis ( guchar  yc,
guchar  uc,
guchar  vc,
guchar *  rc,
guchar *  gc,
guchar *  bc 
)

  Perform YUV to RGB conversion with intervall expansion.

void prev_rgbToYuvVis ( guchar  rc,
guchar  gc,
guchar  bc,
guchar *  yc,
guchar *  uc,
guchar *  vc 
)

  Perform RGB to YUV conversion with intervall reduction.

void prev_col_init ( void  )

  PRIVATE: Initialize the color module.


Variable Documentation

guchar prev_col_cropTbl[256+2 *PREVCOL_MAX_NEG_CROP]