forked from bartvdbraak/blender
VideoTexture: use PyObjectPlus.h instead of Python.h for compatibility with Python2.3
This commit is contained in:
parent
f180702a12
commit
2973bd8ea2
@ -24,7 +24,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
#include <strstream>
|
#include <strstream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
|
|
||||||
#include "Exception.h"
|
#include "Exception.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
#include "FilterBase.h"
|
#include "FilterBase.h"
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
|
|
||||||
#include "PyTypeList.h"
|
#include "PyTypeList.h"
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "FilterBlueScreen.h"
|
#include "FilterBlueScreen.h"
|
||||||
|
@ -21,7 +21,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "FilterColor.h"
|
#include "FilterColor.h"
|
||||||
|
@ -21,7 +21,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "FilterNormal.h"
|
#include "FilterNormal.h"
|
||||||
|
@ -22,7 +22,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "FilterSource.h"
|
#include "FilterSource.h"
|
||||||
|
@ -47,7 +47,6 @@ protected:
|
|||||||
{ return 0xFF000000 | src[0] << 16 | src[1] << 8 | src[2]; }
|
{ return 0xFF000000 | src[0] << 16 | src[1] << 8 | src[2]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// class for BGR24 conversion
|
/// class for BGR24 conversion
|
||||||
class FilterBGR24 : public FilterBase
|
class FilterBGR24 : public FilterBase
|
||||||
{
|
{
|
||||||
@ -67,7 +66,6 @@ protected:
|
|||||||
{ return 0xFF000000 | src[2] << 16 | src[1] << 8 | src[0]; }
|
{ return 0xFF000000 | src[2] << 16 | src[1] << 8 | src[0]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/// class for YV12 conversion
|
/// class for YV12 conversion
|
||||||
class FilterYV12 : public FilterBase
|
class FilterYV12 : public FilterBase
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "FilterBase.h"
|
#include "FilterBase.h"
|
||||||
|
@ -26,7 +26,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
|
|
||||||
#include "PyTypeList.h"
|
#include "PyTypeList.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "ImageBuff.h"
|
#include "ImageBuff.h"
|
||||||
|
@ -22,7 +22,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "ImageMix.h"
|
#include "ImageMix.h"
|
||||||
|
@ -22,7 +22,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include <KX_BlenderCanvas.h>
|
#include <KX_BlenderCanvas.h>
|
||||||
|
@ -22,7 +22,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include "ImageViewport.h"
|
#include "ImageViewport.h"
|
||||||
|
@ -26,7 +26,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
|
|
||||||
|
|
||||||
/// check, if type is in list
|
/// check, if type is in list
|
||||||
|
@ -28,7 +28,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
|
|
||||||
// forward declaration
|
// forward declaration
|
||||||
class PyTypeListItem;
|
class PyTypeListItem;
|
||||||
|
@ -22,7 +22,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include <KX_GameObject.h>
|
#include <KX_GameObject.h>
|
||||||
|
@ -23,7 +23,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
#if !defined TEXTURE_H
|
#if !defined TEXTURE_H
|
||||||
#define TEXTURE_H
|
#define TEXTURE_H
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
#include <structmember.h>
|
#include <structmember.h>
|
||||||
|
|
||||||
#include <DNA_image_types.h>
|
#include <DNA_image_types.h>
|
||||||
|
@ -24,7 +24,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
#define VIDEOBASE_H
|
#define VIDEOBASE_H
|
||||||
|
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
|
|
||||||
#include "ImageBase.h"
|
#include "ImageBase.h"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ http://www.gnu.org/copyleft/lesser.txt.
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Python.h>
|
#include <PyObjectPlus.h>
|
||||||
|
|
||||||
#include <RAS_GLExtensionManager.h>
|
#include <RAS_GLExtensionManager.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user