hvirtual/plugins/invertvideo/invert.C File Reference

#include "bcdisplayinfo.h"
#include "clip.h"
#include "bchash.h"
#include "filexml.h"
#include "guicast.h"
#include "language.h"
#include "picon_png.h"
#include "plugincolors.h"
#include "pluginvclient.h"
#include "vframe.h"
#include <stdint.h>
#include <string.h>

Include dependency graph for invert.C:

Go to the source code of this file.

Data Structures

class  InvertVideoConfig
class  InvertVideoEnable
class  InvertVideoWindow
class  InvertVideoEffect

Defines

#define INVERT_MACRO(type, components, max)


Define Documentation

#define INVERT_MACRO ( type,
components,
max   ) 

Value:

{ \
        for(int i = 0; i < frame->get_h(); i++) \
        { \
                type *in_row = (type*)frame->get_rows()[i]; \
                type *out_row = (type*)frame->get_rows()[i]; \
 \
                for(int j = 0; j < w; j++) \
                { \
                        if(config.r) out_row[0] = max - in_row[0]; \
                        if(config.g) out_row[1] = max - in_row[1]; \
                        if(config.b) out_row[2] = max - in_row[2]; \
                        if(components == 4) \
                                if(config.a) out_row[3] = max - in_row[3]; \
 \
                        in_row += components; \
                        out_row += components; \
                } \
        } \
}

Definition at line 283 of file invert.C.

Referenced by InvertVideoEffect::process_buffer().


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