2014-06-13 07:20:02 +00:00
|
|
|
#include "strategies-picture.h"
|
|
|
|
|
|
|
|
#include "picture/picture-generic.c"
|
2014-04-29 08:14:42 +00:00
|
|
|
#if COMPILE_INTEL_SSE2
|
2014-06-13 07:20:02 +00:00
|
|
|
#include "picture/picture-sse2.c"
|
2014-04-29 08:14:42 +00:00
|
|
|
#endif
|
|
|
|
#if COMPILE_INTEL_SSE2 && COMPILE_INTEL_SSE41
|
2014-06-13 07:20:02 +00:00
|
|
|
#include "picture/picture-sse41.c"
|
2014-04-29 08:14:42 +00:00
|
|
|
#endif
|
2014-06-04 06:19:57 +00:00
|
|
|
#if COMPILE_POWERPC_ALTIVEC
|
2014-06-13 07:20:02 +00:00
|
|
|
#include "picture/picture-altivec.c"
|
2014-06-04 06:19:57 +00:00
|
|
|
#endif
|
2014-04-29 08:14:42 +00:00
|
|
|
|
2014-06-13 07:20:02 +00:00
|
|
|
|
|
|
|
reg_sad_func reg_sad;
|
2014-04-29 08:14:42 +00:00
|
|
|
|
|
|
|
|
2014-06-13 07:20:02 +00:00
|
|
|
int strategy_register_picture(void* opaque) {
|
2014-04-29 08:14:42 +00:00
|
|
|
if (!strategy_register_picture_generic(opaque)) return 0;
|
|
|
|
|
2014-06-04 06:19:57 +00:00
|
|
|
#if COMPILE_INTEL
|
2014-04-29 08:14:42 +00:00
|
|
|
if (g_hardware_flags.intel_flags.sse2) {
|
|
|
|
#if COMPILE_INTEL_SSE2
|
|
|
|
if (!strategy_register_picture_sse2(opaque)) return 0;
|
|
|
|
#endif
|
|
|
|
if (g_hardware_flags.intel_flags.sse41) {
|
|
|
|
#if COMPILE_INTEL_SSE2 && COMPILE_INTEL_SSE41
|
|
|
|
if (!strategy_register_picture_sse41(opaque)) return 0;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
2014-06-04 06:19:57 +00:00
|
|
|
#endif //COMPILE_INTEL
|
|
|
|
|
|
|
|
#if COMPILE_POWERPC
|
|
|
|
if (g_hardware_flags.powerpc_flags.altivec) {
|
|
|
|
#if COMPILE_POWERPC_ALTIVEC
|
|
|
|
if (!strategy_register_picture_altivec(opaque)) return 0;
|
|
|
|
#endif //COMPILE_POWERPC_ALTIVEC
|
|
|
|
}
|
|
|
|
#endif //COMPILE_POWERPC
|
2014-04-29 08:14:42 +00:00
|
|
|
return 1;
|
|
|
|
}
|