mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-09-07 03:42:45 +00:00
engine: client: avi: add new macro XASH_AVI and corresponding backend select macros (AVI_NULL and AVI_FFMPEG)
This commit is contained in:
parent
3d30dc8d02
commit
1884f0a3ce
@ -50,4 +50,8 @@ GNU General Public License for more details.
|
|||||||
#define LIB_WIN32 2
|
#define LIB_WIN32 2
|
||||||
#define LIB_STATIC 3
|
#define LIB_STATIC 3
|
||||||
|
|
||||||
|
// movies (XASH_AVI)
|
||||||
|
#define AVI_NULL 0
|
||||||
|
#define AVI_FFMPEG 1
|
||||||
|
|
||||||
#endif /* BACKENDS_H */
|
#endif /* BACKENDS_H */
|
||||||
|
@ -78,7 +78,6 @@ SETUP BACKENDS DEFINITIONS
|
|||||||
// usually only 10-20 fds availiable
|
// usually only 10-20 fds availiable
|
||||||
#define XASH_REDUCE_FD
|
#define XASH_REDUCE_FD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // XASH_DEDICATED
|
#endif // XASH_DEDICATED
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -105,6 +104,17 @@ SETUP BACKENDS DEFINITIONS
|
|||||||
#endif // !XASH_WIN32
|
#endif // !XASH_WIN32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// determine movie playback backend
|
||||||
|
//
|
||||||
|
#ifndef XASH_AVI
|
||||||
|
#if HAVE_FFMPEG
|
||||||
|
#define XASH_AVI AVI_FFMPEG
|
||||||
|
#else
|
||||||
|
#define XASH_AVI AVI_NULL
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef XASH_STATIC_LIBS
|
#ifdef XASH_STATIC_LIBS
|
||||||
#define XASH_LIB LIB_STATIC
|
#define XASH_LIB LIB_STATIC
|
||||||
#define XASH_INTERNAL_GAMELIBS
|
#define XASH_INTERNAL_GAMELIBS
|
||||||
|
@ -13,8 +13,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "build.h"
|
#include "defaults.h"
|
||||||
#if !XASH_WIN32
|
#if XASH_AVI == AVI_NULL
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
int AVI_GetVideoFrameNumber( movie_state_t *Avi, float time )
|
int AVI_GetVideoFrameNumber( movie_state_t *Avi, float time )
|
||||||
@ -87,4 +87,4 @@ void AVI_Shutdown( void )
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // WIN32
|
#endif // XASH_AVI == AVI_NULL
|
||||||
|
@ -14,8 +14,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "build.h"
|
#include "defaults.h"
|
||||||
#if XASH_WIN32
|
#if XASH_AVI == AVI_WIN32
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include <vfw.h> // video for windows
|
#include <vfw.h> // video for windows
|
||||||
@ -732,4 +732,4 @@ void AVI_Shutdown( void )
|
|||||||
Sys_FreeLibrary( &msacm_dll );
|
Sys_FreeLibrary( &msacm_dll );
|
||||||
avi_initialized = false;
|
avi_initialized = false;
|
||||||
}
|
}
|
||||||
#endif // _WIN32
|
#endif // XASH_AVI == AVI_WIN32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user