hvirtual/plugins/rgb601/rgb601.C File Reference

#include "clip.h"
#include "colormodels.h"
#include "filexml.h"
#include "language.h"
#include "picon_png.h"
#include "rgb601.h"
#include "rgb601window.h"
#include <stdio.h>
#include <string.h>

Include dependency graph for rgb601.C:

Go to the source code of this file.

Defines

#define CREATE_TABLE(max)
#define PROCESS(table, type, components, yuv)


Define Documentation

#define CREATE_TABLE ( max   ) 

Value:

{ \
        for(int i = 0; i < max; i++) \
        { \
                int forward_output = (int)((double)0.8588 * i + max * 0.0627 + 0.5); \
                int reverse_output = (int)((double)1.1644 * i - max * 0.0627 + 0.5); \
                forward_table[i] = CLIP(forward_output, 0, max - 1); \
                reverse_table[i] = CLIP(reverse_output, 0, max - 1); \
        } \
}

Definition at line 132 of file rgb601.C.

Referenced by RGB601Main::create_table().

#define PROCESS ( table,
type,
components,
yuv   ) 

Definition at line 163 of file rgb601.C.


Generated on Mon Apr 28 14:01:45 2008 for Cinelerra by  doxygen 1.5.5