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