~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/gameengine/VideoTexture/FilterBase.cpp

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
-----------------------------------------------------------------------------
3
 
This source file is part of VideoTexture library
4
 
 
5
 
Copyright (c) 2007 The Zdeno Ash Miklas
6
 
 
7
 
This program is free software; you can redistribute it and/or modify it under
8
 
the terms of the GNU Lesser General Public License as published by the Free Software
9
 
Foundation; either version 2 of the License, or (at your option) any later
10
 
version.
11
 
 
12
 
This program is distributed in the hope that it will be useful, but WITHOUT
13
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
 
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
15
 
 
16
 
You should have received a copy of the GNU Lesser General Public License along with
17
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18
 
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
19
 
http://www.gnu.org/copyleft/lesser.txt.
20
 
-----------------------------------------------------------------------------
21
 
*/
 
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
 */
22
26
 
23
27
/** \file gameengine/VideoTexture/FilterBase.cpp
24
28
 *  \ingroup bgevideotex
27
31
 
28
32
#include "FilterBase.h"
29
33
 
30
 
#include <PyObjectPlus.h>
 
34
#include "PyObjectPlus.h"
31
35
#include <structmember.h>
32
36
 
33
37
 
90
94
 
91
95
 
92
96
// object allocation
93
 
PyObject * Filter_allocNew (PyTypeObject * type, PyObject * args, PyObject * kwds)
 
97
PyObject *Filter_allocNew (PyTypeObject *type, PyObject *args, PyObject *kwds)
94
98
{
95
99
        // allocate object
96
 
        PyFilter * self = reinterpret_cast<PyFilter*>(type->tp_alloc(type, 0));
 
100
        PyFilter *self = reinterpret_cast<PyFilter*>(type->tp_alloc(type, 0));
97
101
        // initialize object structure
98
102
        self->m_filter = NULL;
99
103
        // return allocated object
101
105
}
102
106
 
103
107
// object deallocation
104
 
void Filter_dealloc (PyFilter * self)
 
108
void Filter_dealloc (PyFilter *self)
105
109
{
106
110
        // release object attributes
107
111
        if (self->m_filter != NULL)
114
118
 
115
119
 
116
120
// get previous pixel filter object
117
 
PyObject * Filter_getPrevious (PyFilter * self, void * closure)
 
121
PyObject *Filter_getPrevious (PyFilter *self, void *closure)
118
122
{
119
123
        // if filter object is available
120
124
        if (self->m_filter != NULL)
135
139
 
136
140
 
137
141
// set previous pixel filter object
138
 
int Filter_setPrevious (PyFilter * self, PyObject * value, void * closure)
 
142
int Filter_setPrevious (PyFilter *self, PyObject *value, void *closure)
139
143
{
140
144
        // if filter object is available
141
145
        if (self->m_filter != NULL)