From 77b4c66cc3de461fdd0074e46a3a77de1fd83447 Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Fri, 31 Oct 2008 21:06:48 +0000 Subject: Preparation to VideoTexture: everything but the VideoTexture module itself. Rename PHY_GetActiveScene() to KX_GetActiveScene(): more logical name Add KX_GetActiveEngine() new KX_KetsjiEngine::GetClockTime(void) to return current render frame time: if the CPU does not keep up with the frame rate, up to 5 consecutive logic frames are processed between each render frame, so that the logic system stays accurate even if the graphic system is slow. For the video texture module, it is important to stay in sync with the render frame: no need to update the texture for logic frame. BL_Texture::swapTexture(): texture id manipulation BL_Texture::getTex() : return material texture Enable video support in ffmpeg for Linux. --- source/blender/imbuf/intern/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c index 4f6730db1f1..70a02d72b01 100644 --- a/source/blender/imbuf/intern/util.c +++ b/source/blender/imbuf/intern/util.c @@ -64,6 +64,7 @@ #ifdef WITH_FFMPEG #include #include +#include #if LIBAVFORMAT_VERSION_INT < (49 << 16) #define FFMPEG_OLD_FRAME_RATE 1 @@ -236,6 +237,7 @@ void do_init_ffmpeg() if (!ffmpeg_init) { ffmpeg_init = 1; av_register_all(); + avdevice_register_all(); } } -- cgit v1.2.3