code cleanup: gpl header update (formatting)
[blender.git] / source / gameengine / VideoTexture / FilterSource.cpp
1 /*
2  * ***** BEGIN GPL LICENSE BLOCK *****
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software  Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * Copyright (c) 2007 The Zdeno Ash Miklas
19  *
20  * This source file is part of VideoTexture library
21  *
22  * Contributor(s):
23  *
24  * ***** END GPL LICENSE BLOCK *****
25  */
26
27 /** \file gameengine/VideoTexture/FilterSource.cpp
28  *  \ingroup bgevideotex
29  */
30
31 // implementation
32
33 #include "PyObjectPlus.h"
34 #include <structmember.h>
35
36 #include "FilterSource.h"
37
38 #include "FilterBase.h"
39 #include "PyTypeList.h"
40
41
42 // FilterRGB24
43
44 // define python type
45 PyTypeObject FilterRGB24Type =
46
47         PyVarObject_HEAD_INIT(NULL, 0)
48         "VideoTexture.FilterRGB24",   /*tp_name*/
49         sizeof(PyFilter),          /*tp_basicsize*/
50         0,                         /*tp_itemsize*/
51         (destructor)Filter_dealloc,/*tp_dealloc*/
52         0,                         /*tp_print*/
53         0,                         /*tp_getattr*/
54         0,                         /*tp_setattr*/
55         0,                         /*tp_compare*/
56         0,                         /*tp_repr*/
57         0,                         /*tp_as_number*/
58         0,                         /*tp_as_sequence*/
59         0,                         /*tp_as_mapping*/
60         0,                         /*tp_hash */
61         0,                         /*tp_call*/
62         0,                         /*tp_str*/
63         0,                         /*tp_getattro*/
64         0,                         /*tp_setattro*/
65         0,                         /*tp_as_buffer*/
66         Py_TPFLAGS_DEFAULT,        /*tp_flags*/
67         "Source filter RGB24 objects",       /* tp_doc */
68         0,                             /* tp_traverse */
69         0,                             /* tp_clear */
70         0,                             /* tp_richcompare */
71         0,                             /* tp_weaklistoffset */
72         0,                             /* tp_iter */
73         0,                             /* tp_iternext */
74         NULL,                /* tp_methods */
75         0,                   /* tp_members */
76         NULL,             /* tp_getset */
77         0,                         /* tp_base */
78         0,                         /* tp_dict */
79         0,                         /* tp_descr_get */
80         0,                         /* tp_descr_set */
81         0,                         /* tp_dictoffset */
82         (initproc)Filter_init<FilterRGB24>,     /* tp_init */
83         0,                         /* tp_alloc */
84         Filter_allocNew,           /* tp_new */
85 };
86
87 // FilterRGBA32
88
89 // define python type
90 PyTypeObject FilterRGBA32Type =
91
92         PyVarObject_HEAD_INIT(NULL, 0)
93         "VideoTexture.FilterRGBA32",   /*tp_name*/
94         sizeof(PyFilter),          /*tp_basicsize*/
95         0,                         /*tp_itemsize*/
96         (destructor)Filter_dealloc,/*tp_dealloc*/
97         0,                         /*tp_print*/
98         0,                         /*tp_getattr*/
99         0,                         /*tp_setattr*/
100         0,                         /*tp_compare*/
101         0,                         /*tp_repr*/
102         0,                         /*tp_as_number*/
103         0,                         /*tp_as_sequence*/
104         0,                         /*tp_as_mapping*/
105         0,                         /*tp_hash */
106         0,                         /*tp_call*/
107         0,                         /*tp_str*/
108         0,                         /*tp_getattro*/
109         0,                         /*tp_setattro*/
110         0,                         /*tp_as_buffer*/
111         Py_TPFLAGS_DEFAULT,        /*tp_flags*/
112         "Source filter RGBA32 objects",       /* tp_doc */
113         0,                             /* tp_traverse */
114         0,                             /* tp_clear */
115         0,                             /* tp_richcompare */
116         0,                             /* tp_weaklistoffset */
117         0,                             /* tp_iter */
118         0,                             /* tp_iternext */
119         NULL,                /* tp_methods */
120         0,                   /* tp_members */
121         NULL,             /* tp_getset */
122         0,                         /* tp_base */
123         0,                         /* tp_dict */
124         0,                         /* tp_descr_get */
125         0,                         /* tp_descr_set */
126         0,                         /* tp_dictoffset */
127         (initproc)Filter_init<FilterRGBA32>,     /* tp_init */
128         0,                         /* tp_alloc */
129         Filter_allocNew,           /* tp_new */
130 };
131
132 // FilterBGR24
133
134 // define python type
135 PyTypeObject FilterBGR24Type =
136
137         PyVarObject_HEAD_INIT(NULL, 0)
138         "VideoTexture.FilterBGR24",   /*tp_name*/
139         sizeof(PyFilter),          /*tp_basicsize*/
140         0,                         /*tp_itemsize*/
141         (destructor)Filter_dealloc,/*tp_dealloc*/
142         0,                         /*tp_print*/
143         0,                         /*tp_getattr*/
144         0,                         /*tp_setattr*/
145         0,                         /*tp_compare*/
146         0,                         /*tp_repr*/
147         0,                         /*tp_as_number*/
148         0,                         /*tp_as_sequence*/
149         0,                         /*tp_as_mapping*/
150         0,                         /*tp_hash */
151         0,                         /*tp_call*/
152         0,                         /*tp_str*/
153         0,                         /*tp_getattro*/
154         0,                         /*tp_setattro*/
155         0,                         /*tp_as_buffer*/
156         Py_TPFLAGS_DEFAULT,        /*tp_flags*/
157         "Source filter BGR24 objects",       /* tp_doc */
158         0,                             /* tp_traverse */
159         0,                             /* tp_clear */
160         0,                             /* tp_richcompare */
161         0,                             /* tp_weaklistoffset */
162         0,                             /* tp_iter */
163         0,                             /* tp_iternext */
164         NULL,                /* tp_methods */
165         0,                   /* tp_members */
166         NULL,             /* tp_getset */
167         0,                         /* tp_base */
168         0,                         /* tp_dict */
169         0,                         /* tp_descr_get */
170         0,                         /* tp_descr_set */
171         0,                         /* tp_dictoffset */
172         (initproc)Filter_init<FilterBGR24>,     /* tp_init */
173         0,                         /* tp_alloc */
174         Filter_allocNew,           /* tp_new */
175 };
176