|
Blender
V2.59
|
#include "ImageBase.h"#include "bgl.h"#include "GL/glew.h"#include <vector>#include <string.h>#include <PyObjectPlus.h>#include <structmember.h>#include "FilterBase.h"#include "Exception.h"Go to the source code of this file.
Functions | |
| ExpDesc | ImageHasExportsDesc (ImageHasExports,"Image has exported buffers, cannot resize") |
| ExpDesc | InvalidColorChannelDesc (InvalidColorChannel,"Invalid or too many color channels specified. At most 4 values within R, G, B, A, 0, 1") |
| PyObject * | Image_allocNew (PyTypeObject *type, PyObject *args, PyObject *kwds) |
| void | Image_dealloc (PyImage *self) |
| PyObject * | Image_getImage (PyImage *self, char *mode) |
| PyObject * | Image_getSize (PyImage *self, void *closure) |
| PyObject * | Image_refresh (PyImage *self) |
| PyObject * | Image_getScale (PyImage *self, void *closure) |
| int | Image_setScale (PyImage *self, PyObject *value, void *closure) |
| PyObject * | Image_getFlip (PyImage *self, void *closure) |
| int | Image_setFlip (PyImage *self, PyObject *value, void *closure) |
| PyObject * | Image_getSource (PyImage *self, PyObject *args) |
| PyObject * | Image_setSource (PyImage *self, PyObject *args) |
| PyObject * | Image_getFilter (PyImage *self, void *closure) |
| int | Image_setFilter (PyImage *self, PyObject *value, void *closure) |
| PyObject * | Image_valid (PyImage *self, void *closure) |
| int | Image_getbuffer (PyImage *self, Py_buffer *view, int flags) |
| void | Image_releaseBuffer (PyImage *self, Py_buffer *buffer) |
Variables | |
| ExceptionID | ImageHasExports |
| ExceptionID | InvalidColorChannel |
| PyTypeList | pyImageTypes |
| PyBufferProcs | imageBufferProcs |
Definition in file ImageBase.cpp.
| PyObject* Image_allocNew | ( | PyTypeObject * | type, |
| PyObject * | args, | ||
| PyObject * | kwds | ||
| ) |
Definition at line 359 of file ImageBase.cpp.
References PyImage::m_image, and NULL.
| void Image_dealloc | ( | PyImage * | self | ) |
Definition at line 370 of file ImageBase.cpp.
References NULL.
| int Image_getbuffer | ( | PyImage * | self, |
| Py_buffer * | view, | ||
| int | flags | ||
| ) |
Definition at line 645 of file ImageBase.cpp.
References error(), KDL::exp(), NULL, and Exception::report().
| PyObject* Image_getFilter | ( | PyImage * | self, |
| void * | closure | ||
| ) |
Definition at line 594 of file ImageBase.cpp.
References NULL.
| PyObject* Image_getFlip | ( | PyImage * | self, |
| void * | closure | ||
| ) |
Definition at line 512 of file ImageBase.cpp.
References NULL.
| PyObject* Image_getImage | ( | PyImage * | self, |
| char * | mode | ||
| ) |
Definition at line 389 of file ImageBase.cpp.
References _Buffer::asbyte, BGL_MakeBuffer(), _Buffer::buf, simple_enum_gen::d, KDL::exp(), i, NULL, Exception::report(), S_OK, and THRWEXCP.
Referenced by imageToArray().
| PyObject* Image_getScale | ( | PyImage * | self, |
| void * | closure | ||
| ) |
Definition at line 490 of file ImageBase.cpp.
References NULL.
| PyObject* Image_getSize | ( | PyImage * | self, |
| void * | closure | ||
| ) |
Definition at line 476 of file ImageBase.cpp.
| PyObject* Image_getSource | ( | PyImage * | self, |
| PyObject * | args | ||
| ) |
Definition at line 535 of file ImageBase.cpp.
References NULL.
| PyObject* Image_refresh | ( | PyImage * | self | ) |
Definition at line 483 of file ImageBase.cpp.
| void Image_releaseBuffer | ( | PyImage * | self, |
| Py_buffer * | buffer | ||
| ) |
Definition at line 692 of file ImageBase.cpp.
| int Image_setFilter | ( | PyImage * | self, |
| PyObject * | value, | ||
| void * | closure | ||
| ) |
Definition at line 615 of file ImageBase.cpp.
References PyTypeList::in(), NULL, and pyFilterTypes.
| int Image_setFlip | ( | PyImage * | self, |
| PyObject * | value, | ||
| void * | closure | ||
| ) |
Definition at line 519 of file ImageBase.cpp.
References NULL.
| int Image_setScale | ( | PyImage * | self, |
| PyObject * | value, | ||
| void * | closure | ||
| ) |
Definition at line 497 of file ImageBase.cpp.
References NULL.
| PyObject* Image_setSource | ( | PyImage * | self, |
| PyObject * | args | ||
| ) |
Definition at line 559 of file ImageBase.cpp.
References PyTypeList::in(), and NULL.
| PyObject* Image_valid | ( | PyImage * | self, |
| void * | closure | ||
| ) |
Definition at line 633 of file ImageBase.cpp.
| ExpDesc ImageHasExportsDesc | ( | ImageHasExports | , |
| "Image has exported | buffers, | ||
| cannot resize" | |||
| ) |
| ExpDesc InvalidColorChannelDesc | ( | InvalidColorChannel | , |
| "Invalid or too many color channels specified. At most 4 values within | R, | ||
| G | , | ||
| B | , | ||
| A | , | ||
| 0 | , | ||
| 1" | |||
| ) |
| PyBufferProcs imageBufferProcs |
{
(getbufferproc)Image_getbuffer,
(releasebufferproc)Image_releaseBuffer
}
Definition at line 697 of file ImageBase.cpp.
Definition at line 175 of file ImageBase.cpp.
Definition at line 176 of file ImageBase.cpp.
Definition at line 352 of file ImageBase.cpp.
Referenced by imageToArray(), initVideoTexture(), registerAllTypes(), and Texture_setSource().