IntegerInput.C File Reference

#include "Channels/IntegerInput.H"
#include "Image/IntegerMathOps.H"
#include "Raster/GenericFrame.H"
#include "Util/MathFunctions.H"
#include "Video/VideoFrame.H"
#include <pthread.h>
Include dependency graph for IntegerInput.C:

Go to the source code of this file.

Defines

#define DO_LUM(rgptr, byptr)

Functions

static void yuv420p_decode (int *rgb_dst, int *bw_dst, int *rg_dst, int *by_dst, const byte *y_src, const byte *u_src, const byte *v_src, const int uv_stride, const int width, const int height, const int lumthresh, const uint inputbits)
static void yuv422p_decode (int *rgb_dst, int *bw_dst, int *rg_dst, int *by_dst, const byte *y_src, const byte *u_src, const byte *v_src, const int width, const int height, const int lumthresh, const uint inputbits)

Detailed Description

Definition in file IntegerInput.C.


Define Documentation

#define DO_LUM ( rgptr,
byptr   ) 
Value:
do {                                                              \
        if (lum < shiftedlumthresh)                                     \
          {                                                             \
            *rgptr++ = 0;                                               \
            *byptr++ = 0;                                               \
          }                                                             \
        else                                                            \
          {                                                             \
            /* compute differences and normalize chroma by luminance: */ \
            *rgptr++ = (scaled_v / (lum >> lumbits)) << restorebits;    \
            *byptr++ = (scaled_u / (lum >> lumbits)) << restorebits;    \
          }                                                             \
      } while (0)
Generated on Sun May 8 08:42:38 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3