diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a3b3b32..d7491cf4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ option( ENABLE_DEBUGGER "Enable the debugger" ON ) option( ENABLE_NLS "Enable translations" ON ) option( ENABLE_ASM_CORE "Enable x86 ASM CPU cores" OFF ) option( ENABLE_ASM_SCALERS "Enable x86 ASM graphic filters" OFF ) +option( ENABLE_MMX "Enable MMX" OFF ) option( ENABLE_LINK "Enable GBA linking functionality" ON ) option( ENABLE_LIRC "Enable LIRC support" OFF ) option( ENABLE_FFMPEG "Enable ffmpeg A/V recording" OFF ) diff --git a/src/filters/interframe.cpp b/src/filters/interframe.cpp index f79607ea..b57beb48 100644 --- a/src/filters/interframe.cpp +++ b/src/filters/interframe.cpp @@ -6,6 +6,10 @@ #ifdef MMX extern "C" bool cpu_mmx; +static void SmartIB_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); +static void SmartIB32_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); +static void MotionBlurIB_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); +static void MotionBlurIB32_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); #endif /* @@ -20,7 +24,7 @@ static u8 *frm3 = NULL; extern u32 qRGB_COLOR_MASK[2]; -static void Init() +void Init() { frm1 = (u8 *)calloc(322*242,4); // 1 frame ago diff --git a/src/filters/interframe.hpp b/src/filters/interframe.hpp index e2a1443b..13248f13 100644 --- a/src/filters/interframe.hpp +++ b/src/filters/interframe.hpp @@ -7,8 +7,6 @@ extern int RGB_LOW_BITS_MASK; -static void Init(); - // call ifc to ignore previous frame / when starting new void InterframeCleanup(); @@ -18,12 +16,6 @@ void SmartIB32(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); void MotionBlurIB(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); void MotionBlurIB32(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); -#ifdef MMX -static void SmartIB_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); -static void SmartIB32_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); -static void MotionBlurIB_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); -static void MotionBlurIB32_MMX(u8 *srcPtr, u32 srcPitch, int width, int starty, int height); -#endif //Options for if starty is 0 void SmartIB(u8 *srcPtr, u32 srcPitch, int width, int height);