hvirtual/plugins/chromakey/chromakey.C File Reference

#include "bcdisplayinfo.h"
#include "bcsignals.h"
#include "chromakey.h"
#include "clip.h"
#include "bchash.h"
#include "filexml.h"
#include "guicast.h"
#include "keyframe.h"
#include "language.h"
#include "loadbalance.h"
#include "picon_png.h"
#include "playback3d.h"
#include "plugincolors.h"
#include "pluginvclient.h"
#include "vframe.h"
#include <stdint.h>
#include <string.h>

Include dependency graph for chromakey.C:

Go to the source code of this file.

Defines

#define RGB_TO_VALUE(r, g, b)   ((r) * R_TO_Y + (g) * G_TO_Y + (b) * B_TO_Y)
#define SQR(x)   ((x) * (x))
#define OUTER_VARIABLES(plugin)
#define CHROMAKEY(type, components, max, use_yuv)


Define Documentation

#define CHROMAKEY ( type,
components,
max,
use_yuv   ) 

#define OUTER_VARIABLES ( plugin   ) 

Value:

YUV yuv; \
        float value = RGB_TO_VALUE(plugin->config.red, \
                plugin->config.green, \
                plugin->config.blue); \
        float threshold = plugin->config.threshold / 100; \
        float min_v = value - threshold; \
        float max_v = value + threshold; \
        float r_key = plugin->config.red; \
        float g_key = plugin->config.green; \
        float b_key = plugin->config.blue; \
        int y_key, u_key, v_key; \
        yuv.rgb_to_yuv_8((int)(r_key * 0xff), (int)(g_key * 0xff), (int)(b_key * 0xff), y_key, u_key, v_key); \
        float run = plugin->config.slope / 100; \
        float threshold_run = threshold + run;

Referenced by ChromaKeyHSV::handle_opengl(), ChromaKey::handle_opengl(), ChromaKeyUnit::process_chromakey(), and ChromaKeyUnit::process_package().

#define RGB_TO_VALUE ( r,
g,
b   )     ((r) * R_TO_Y + (g) * G_TO_Y + (b) * B_TO_Y)

#define SQR (  )     ((x) * (x))


Generated on Mon Apr 28 14:00:52 2008 for Cinelerra by  doxygen 1.5.5