hvirtual/plugins/720to480/720to480.C File Reference

#include "720to480.h"
#include "clip.h"
#include "bchash.h"
#include "filexml.h"
#include "bcdisplayinfo.h"
#include "keyframe.h"
#include "language.h"
#include "mainprogress.h"
#include "vframe.h"
#include <stdint.h>
#include <string.h>

Include dependency graph for 720to480.C:

Go to the source code of this file.

Defines

#define FORWARD   0
#define REVERSE   1
#define DST_W   854
#define DST_H   240
#define REDUCE_MACRO(type, temp, components)


Define Documentation

#define DST_H   240

Definition at line 245 of file 720to480.C.

#define DST_W   854

Definition at line 244 of file 720to480.C.

#define FORWARD   0

#define REDUCE_MACRO ( type,
temp,
components   ) 

Value:

for(int i = 0; i < DST_H; i++) \
{ \
        int output_number = dest_row + i * 2; \
        if(output_number >= out_h) break; \
 \
        int in1 = i * 3 + dest_row * 2; \
        int in2 = i * 3 + 1 + dest_row * 2; \
        int in3 = i * 3 + 2 + dest_row * 2; \
 \
        if(in1 >= in_h) in1 = in_h - 1; \
        if(in2 >= in_h) in2 = in_h - 1; \
        if(in3 >= in_h) in3 = in_h - 1; \
 \
        type *out_row = (type*)output->get_rows()[output_number]; \
        type *in_row1 = (type*)input->get_rows()[in1]; \
        type *in_row2 = (type*)input->get_rows()[in2]; \
        type *in_row3 = (type*)input->get_rows()[in3]; \
 \
        int w = MIN(out_w, in_w) * components; \
        for(int j = 0; j < w; j++) \
        { \
                *out_row++ = ((temp)*in_row1++ + \
                        (temp)*in_row2++ + \
                        (temp)*in_row3++) / 3; \
        } \
}

#define REVERSE   1

Definition at line 20 of file 720to480.C.

Referenced by _720to480Window::set_direction().


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