Blender V2.61 - r43446

FilterSource.cpp

Go to the documentation of this file.
00001 /*
00002 -----------------------------------------------------------------------------
00003 This source file is part of VideoTexture library
00004 
00005 Copyright (c) 2007 The Zdeno Ash Miklas
00006 
00007 This program is free software; you can redistribute it and/or modify it under
00008 the terms of the GNU Lesser General Public License as published by the Free Software
00009 Foundation; either version 2 of the License, or (at your option) any later
00010 version.
00011 
00012 This program is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00015 
00016 You should have received a copy of the GNU Lesser General Public License along with
00017 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00018 Place - Suite 330, Boston, MA 02111-1307, USA, or go to
00019 http://www.gnu.org/copyleft/lesser.txt.
00020 -----------------------------------------------------------------------------
00021 */
00022 
00027 // implementation
00028 
00029 #include <PyObjectPlus.h>
00030 #include <structmember.h>
00031 
00032 #include "FilterSource.h"
00033 
00034 #include "FilterBase.h"
00035 #include "PyTypeList.h"
00036 
00037 
00038 // FilterRGB24
00039 
00040 // define python type
00041 PyTypeObject FilterRGB24Type =
00042 { 
00043     PyVarObject_HEAD_INIT(NULL, 0)
00044     "VideoTexture.FilterRGB24",   /*tp_name*/
00045     sizeof(PyFilter),          /*tp_basicsize*/
00046     0,                         /*tp_itemsize*/
00047     (destructor)Filter_dealloc,/*tp_dealloc*/
00048     0,                         /*tp_print*/
00049     0,                         /*tp_getattr*/
00050     0,                         /*tp_setattr*/
00051     0,                         /*tp_compare*/
00052     0,                         /*tp_repr*/
00053     0,                         /*tp_as_number*/
00054     0,                         /*tp_as_sequence*/
00055     0,                         /*tp_as_mapping*/
00056     0,                         /*tp_hash */
00057     0,                         /*tp_call*/
00058     0,                         /*tp_str*/
00059     0,                         /*tp_getattro*/
00060     0,                         /*tp_setattro*/
00061     0,                         /*tp_as_buffer*/
00062     Py_TPFLAGS_DEFAULT,        /*tp_flags*/
00063     "Source filter RGB24 objects",       /* tp_doc */
00064     0,                     /* tp_traverse */
00065     0,                     /* tp_clear */
00066     0,                     /* tp_richcompare */
00067     0,                     /* tp_weaklistoffset */
00068     0,                     /* tp_iter */
00069     0,                     /* tp_iternext */
00070     NULL,                /* tp_methods */
00071     0,                   /* tp_members */
00072     NULL,             /* tp_getset */
00073     0,                         /* tp_base */
00074     0,                         /* tp_dict */
00075     0,                         /* tp_descr_get */
00076     0,                         /* tp_descr_set */
00077     0,                         /* tp_dictoffset */
00078     (initproc)Filter_init<FilterRGB24>,     /* tp_init */
00079     0,                         /* tp_alloc */
00080     Filter_allocNew,           /* tp_new */
00081 };
00082 
00083 // FilterRGBA32
00084 
00085 // define python type
00086 PyTypeObject FilterRGBA32Type =
00087 { 
00088     PyVarObject_HEAD_INIT(NULL, 0)
00089     "VideoTexture.FilterRGBA32",   /*tp_name*/
00090     sizeof(PyFilter),          /*tp_basicsize*/
00091     0,                         /*tp_itemsize*/
00092     (destructor)Filter_dealloc,/*tp_dealloc*/
00093     0,                         /*tp_print*/
00094     0,                         /*tp_getattr*/
00095     0,                         /*tp_setattr*/
00096     0,                         /*tp_compare*/
00097     0,                         /*tp_repr*/
00098     0,                         /*tp_as_number*/
00099     0,                         /*tp_as_sequence*/
00100     0,                         /*tp_as_mapping*/
00101     0,                         /*tp_hash */
00102     0,                         /*tp_call*/
00103     0,                         /*tp_str*/
00104     0,                         /*tp_getattro*/
00105     0,                         /*tp_setattro*/
00106     0,                         /*tp_as_buffer*/
00107     Py_TPFLAGS_DEFAULT,        /*tp_flags*/
00108     "Source filter RGBA32 objects",       /* tp_doc */
00109     0,                     /* tp_traverse */
00110     0,                     /* tp_clear */
00111     0,                     /* tp_richcompare */
00112     0,                     /* tp_weaklistoffset */
00113     0,                     /* tp_iter */
00114     0,                     /* tp_iternext */
00115     NULL,                /* tp_methods */
00116     0,                   /* tp_members */
00117     NULL,             /* tp_getset */
00118     0,                         /* tp_base */
00119     0,                         /* tp_dict */
00120     0,                         /* tp_descr_get */
00121     0,                         /* tp_descr_set */
00122     0,                         /* tp_dictoffset */
00123     (initproc)Filter_init<FilterRGBA32>,     /* tp_init */
00124     0,                         /* tp_alloc */
00125     Filter_allocNew,           /* tp_new */
00126 };
00127 
00128 // FilterBGR24
00129 
00130 // define python type
00131 PyTypeObject FilterBGR24Type =
00132 { 
00133     PyVarObject_HEAD_INIT(NULL, 0)
00134     "VideoTexture.FilterBGR24",   /*tp_name*/
00135     sizeof(PyFilter),          /*tp_basicsize*/
00136     0,                         /*tp_itemsize*/
00137     (destructor)Filter_dealloc,/*tp_dealloc*/
00138     0,                         /*tp_print*/
00139     0,                         /*tp_getattr*/
00140     0,                         /*tp_setattr*/
00141     0,                         /*tp_compare*/
00142     0,                         /*tp_repr*/
00143     0,                         /*tp_as_number*/
00144     0,                         /*tp_as_sequence*/
00145     0,                         /*tp_as_mapping*/
00146     0,                         /*tp_hash */
00147     0,                         /*tp_call*/
00148     0,                         /*tp_str*/
00149     0,                         /*tp_getattro*/
00150     0,                         /*tp_setattro*/
00151     0,                         /*tp_as_buffer*/
00152     Py_TPFLAGS_DEFAULT,        /*tp_flags*/
00153     "Source filter BGR24 objects",       /* tp_doc */
00154     0,                     /* tp_traverse */
00155     0,                     /* tp_clear */
00156     0,                     /* tp_richcompare */
00157     0,                     /* tp_weaklistoffset */
00158     0,                     /* tp_iter */
00159     0,                     /* tp_iternext */
00160     NULL,                /* tp_methods */
00161     0,                   /* tp_members */
00162     NULL,             /* tp_getset */
00163     0,                         /* tp_base */
00164     0,                         /* tp_dict */
00165     0,                         /* tp_descr_get */
00166     0,                         /* tp_descr_set */
00167     0,                         /* tp_dictoffset */
00168     (initproc)Filter_init<FilterBGR24>,     /* tp_init */
00169     0,                         /* tp_alloc */
00170     Filter_allocNew,           /* tp_new */
00171 };
00172