Blender V2.61 - r43446
Classes | Defines | Functions | Variables

FilterBase.h File Reference

#include "Common.h"
#include <PyObjectPlus.h>
#include "PyTypeList.h"

Go to the source code of this file.

Classes

struct  PyFilter
class  FilterBase
 base class for pixel filters More...

Defines

#define VT_C(v, idx)   ((unsigned char*)&v)[idx]
#define VT_R(v)   ((unsigned char*)&v)[0]
#define VT_G(v)   ((unsigned char*)&v)[1]
#define VT_B(v)   ((unsigned char*)&v)[2]
#define VT_A(v)   ((unsigned char*)&v)[3]
#define VT_RGBA(v, r, g, b, a)   VT_R(v)=(unsigned char)r, VT_G(v)=(unsigned char)g, VT_B(v)=(unsigned char)b, VT_A(v)=(unsigned char)a

Functions

template<class T >
static int Filter_init (PyObject *pySelf, PyObject *args, PyObject *kwds)
PyObject * Filter_allocNew (PyTypeObject *type, PyObject *args, PyObject *kwds)
void Filter_dealloc (PyFilter *self)
PyObject * Filter_getPrevious (PyFilter *self, void *closure)
int Filter_setPrevious (PyFilter *self, PyObject *value, void *closure)

Variables

PyTypeList pyFilterTypes

Detailed Description

Definition in file FilterBase.h.


Define Documentation

#define VT_A (   v)    ((unsigned char*)&v)[3]

Definition at line 40 of file FilterBase.h.

Referenced by FilterColor::calcColor(), and FilterBlueScreen::tFilter().

#define VT_B (   v)    ((unsigned char*)&v)[2]
#define VT_C (   v,
  idx 
)    ((unsigned char*)&v)[idx]

Definition at line 36 of file FilterBase.h.

Referenced by FilterLevel::calcColor(), and FilterNormal::tFilter().

#define VT_G (   v)    ((unsigned char*)&v)[1]
#define VT_R (   v)    ((unsigned char*)&v)[0]
#define VT_RGBA (   v,
  r,
  g,
  b,
 
)    VT_R(v)=(unsigned char)r, VT_G(v)=(unsigned char)g, VT_B(v)=(unsigned char)b, VT_A(v)=(unsigned char)a

Function Documentation

PyObject* Filter_allocNew ( PyTypeObject *  type,
PyObject *  args,
PyObject *  kwds 
)

Definition at line 93 of file FilterBase.cpp.

References PyFilter::m_filter, and NULL.

void Filter_dealloc ( PyFilter self)

Definition at line 104 of file FilterBase.cpp.

References NULL.

PyObject* Filter_getPrevious ( PyFilter self,
void *  closure 
)

Definition at line 117 of file FilterBase.cpp.

References NULL.

template<class T >
static int Filter_init ( PyObject *  pySelf,
PyObject *  args,
PyObject *  kwds 
) [static]

Definition at line 121 of file FilterBase.h.

References PyFilter::m_filter, NULL, and T.

int Filter_setPrevious ( PyFilter self,
PyObject *  value,
void *  closure 
)

Definition at line 138 of file FilterBase.cpp.

References PyTypeList::in(), and NULL.


Variable Documentation

Definition at line 85 of file FilterBase.cpp.

Referenced by Image_setFilter(), initVideoTexture(), and registerAllTypes().