hvirtual/plugins/decimate/decimate.C File Reference

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

Include dependency graph for decimate.C:

Go to the source code of this file.

Data Structures

class  DecimateConfig
class  DecimateRate
class  DecimateRateMenu
class  DecimateDifference
class  DecimateAvgDifference
class  DecimateWindow
class  Decimate

Defines

#define TOP_FIELD_FIRST   0
#define BOTTOM_FIELD_FIRST   1
#define TOTAL_FRAMES   10
#define DIFFERENCE_MACRO(type, temp_type, components)
#define CALCULATE_DCT(type, components)

Functions

 SET_STRING_MACRO (Decimate)


Define Documentation

#define BOTTOM_FIELD_FIRST   1

#define CALCULATE_DCT ( type,
components   ) 

Value:

{ \
        uint16_t *output = temp; \
        for(int k = 0; k < 8; k++) \
        { \
                type *input = (type*)frame->get_rows()[i + k] + j * components; \
                for(int l = 0; l < 8; l++) \
                { \
                        *output = (*input << 8) | *input; \
                        output++; \
                        input += components; \
                } \
        } \
        fdct(temp); \
}

Definition at line 545 of file decimate.C.

Referenced by Decimate::calculate_fdct().

#define DIFFERENCE_MACRO ( type,
temp_type,
components   ) 

Value:

{ \
        temp_type result2 = 0; \
        for(int i = 0; i < h; i++) \
        { \
                type *row1 = (type*)frame1->get_rows()[i]; \
                type *row2 = (type*)frame2->get_rows()[i]; \
                for(int j = 0; j < w * components; j++) \
                { \
                        temp_type temp = *row1 - *row2; \
                        result2 += (temp > 0 ? temp : -temp); \
                        row1++; \
                        row2++; \
                } \
        } \
        result = (int64_t)result2; \
}

Definition at line 421 of file decimate.C.

Referenced by Decimate::calculate_difference().

#define TOP_FIELD_FIRST   0

#define TOTAL_FRAMES   10


Function Documentation

SET_STRING_MACRO ( Decimate   ) 


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