Commit e5130a85 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Move SSE2 chromas to sse2/

parent a763b988
...@@ -1406,6 +1406,7 @@ AC_ARG_ENABLE(sse, ...@@ -1406,6 +1406,7 @@ AC_ARG_ENABLE(sse,
;; ;;
esac esac
]) ])
have_sse2="no"
AS_IF([test "${enable_sse}" != "no"], [ AS_IF([test "${enable_sse}" != "no"], [
ARCH="${ARCH} sse sse2" ARCH="${ARCH} sse sse2"
...@@ -1430,7 +1431,6 @@ AS_IF([test "${enable_sse}" != "no"], [ ...@@ -1430,7 +1431,6 @@ AS_IF([test "${enable_sse}" != "no"], [
AC_DEFINE(HAVE_SSE2_INTRINSICS, 1, AC_DEFINE(HAVE_SSE2_INTRINSICS, 1,
[Define to 1 if SSE2 intrinsics are available.]) [Define to 1 if SSE2 intrinsics are available.])
SSE2_CFLAGS="-msse2" SSE2_CFLAGS="-msse2"
VLC_ADD_CFLAGS([i420_rgb_sse2 i420_yuy2_sse2 i422_yuy2_sse2],[-msse2])
]) ])
AC_CACHE_CHECK([if $CC groks SSE inline assembly], AC_CACHE_CHECK([if $CC groks SSE inline assembly],
...@@ -1451,9 +1451,7 @@ AS_IF([test "${enable_sse}" != "no"], [ ...@@ -1451,9 +1451,7 @@ AS_IF([test "${enable_sse}" != "no"], [
AS_IF([test "${ac_cv_sse2_inline}" != "no" -a "${SYS}" != "solaris"], [ AS_IF([test "${ac_cv_sse2_inline}" != "no" -a "${SYS}" != "solaris"], [
AC_DEFINE(CAN_COMPILE_SSE2, 1, AC_DEFINE(CAN_COMPILE_SSE2, 1,
[Define to 1 if SSE2 inline assembly is available.]) [Define to 1 if SSE2 inline assembly is available.])
VLC_ADD_PLUGIN([i420_rgb_sse2]) have_sse2="yes"
VLC_ADD_PLUGIN([i420_yuy2_sse2])
VLC_ADD_PLUGIN([i422_yuy2_sse2])
]) ])
# SSE3 # SSE3
...@@ -1506,6 +1504,7 @@ AS_IF([test "${enable_sse}" != "no"], [ ...@@ -1506,6 +1504,7 @@ AS_IF([test "${enable_sse}" != "no"], [
[Define to 1 if SSE4A inline assembly is available.]) ]) [Define to 1 if SSE4A inline assembly is available.]) ])
]) ])
AC_SUBST(SSE2_CFLAGS) AC_SUBST(SSE2_CFLAGS)
AM_CONDITIONAL([HAVE_SSE2], [test "$have_sse2" = "yes"])
have_3dnow="no" have_3dnow="no"
AC_CACHE_CHECK([if $CC groks 3D Now! inline assembly], AC_CACHE_CHECK([if $CC groks 3D Now! inline assembly],
...@@ -5191,6 +5190,7 @@ AC_CONFIG_FILES([ ...@@ -5191,6 +5190,7 @@ AC_CONFIG_FILES([
modules/mmx/Makefile modules/mmx/Makefile
modules/mmxext/Makefile modules/mmxext/Makefile
modules/3dnow/Makefile modules/3dnow/Makefile
modules/sse2/Makefile
modules/altivec/Makefile modules/altivec/Makefile
]) ])
......
...@@ -23,6 +23,7 @@ EXTRA_SUBDIRS = \ ...@@ -23,6 +23,7 @@ EXTRA_SUBDIRS = \
stream_out \ stream_out \
mmx \ mmx \
mmxext \ mmxext \
sse2 \
3dnow \ 3dnow \
altivec \ altivec \
$(NULL) $(NULL)
...@@ -38,6 +39,9 @@ endif ...@@ -38,6 +39,9 @@ endif
if HAVE_MMXEXT if HAVE_MMXEXT
SUBDIRS += mmxext SUBDIRS += mmxext
endif endif
if HAVE_SSE2
SUBDIRS += sse2
endif
if HAVE_3DNOW if HAVE_3DNOW
SUBDIRS += 3dnow SUBDIRS += 3dnow
endif endif
......
AM_CFLAGS += $(SSE2_CFLAGS)
libi420_rgb_sse2_plugin_la_SOURCES = \
../video_chroma/i420_rgb.c \
../video_chroma/i420_rgb.h \
../video_chroma/i420_rgb16.c \
../mmx/i420_rgb_mmx.h
libi420_rgb_sse2_plugin_la_CFLAGS = $(AM_CFLAGS)
libi420_rgb_sse2_plugin_la_LIBADD = $(AM_LIBADD)
libi420_rgb_sse2_plugin_la_DEPENDENCIES =
libi420_yuy2_sse2_plugin_la_SOURCES = \
../video_chroma/i420_yuy2.c \
../video_chroma/i420_yuy2.h
libi420_yuy2_sse2_plugin_la_CFLAGS = $(AM_CFLAGS)
libi420_yuy2_sse2_plugin_la_LIBADD = $(AM_LIBADD)
libi420_yuy2_sse2_plugin_la_DEPENDENCIES =
libi422_yuy2_sse2_plugin_la_SOURCES = \
../video_chroma/i422_yuy2.c \
../video_chroma/i422_yuy2.h
libi422_yuy2_sse2_plugin_la_CFLAGS = $(AM_CFLAGS)
libi422_yuy2_sse2_plugin_la_LIBADD = $(AM_LIBADD)
libi422_yuy2_sse2_plugin_la_DEPENDENCIES =
libvlc_LTLIBRARIES += \
libi420_rgb_sse2_plugin.la \
libi420_yuy2_sse2_plugin.la \
libi422_yuy2_sse2_plugin.la \
$(NULL)
...@@ -6,23 +6,11 @@ SOURCES_i420_rgb = \ ...@@ -6,23 +6,11 @@ SOURCES_i420_rgb = \
i420_rgb_c.h \ i420_rgb_c.h \
$(NULL) $(NULL)
SOURCES_i420_rgb_sse2 = \
i420_rgb.c \
i420_rgb.h \
i420_rgb16.c \
i420_rgb_mmx.h \
$(NULL)
SOURCES_i420_yuy2 = \ SOURCES_i420_yuy2 = \
i420_yuy2.c \ i420_yuy2.c \
i420_yuy2.h \ i420_yuy2.h \
$(NULL) $(NULL)
SOURCES_i420_yuy2_sse2 = \
i420_yuy2.c \
i420_yuy2.h \
$(NULL)
SOURCES_i420_yuy2_altivec = \ SOURCES_i420_yuy2_altivec = \
i420_yuy2.c \ i420_yuy2.c \
i420_yuy2.h \ i420_yuy2.h \
...@@ -33,11 +21,6 @@ SOURCES_i422_yuy2 = \ ...@@ -33,11 +21,6 @@ SOURCES_i422_yuy2 = \
i422_yuy2.h \ i422_yuy2.h \
$(NULL) $(NULL)
SOURCES_i422_yuy2_sse2 = \
i422_yuy2.c \
i422_yuy2.h \
$(NULL)
SOURCES_i422_i420 = \ SOURCES_i422_i420 = \
i422_i420.c \ i422_i420.c \
$(NULL) $(NULL)
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_filter.h> #include <vlc_filter.h>
#include <vlc_cpu.h>
#include "i420_rgb.h" #include "i420_rgb.h"
#if defined (MODULE_NAME_IS_i420_rgb) #if defined (MODULE_NAME_IS_i420_rgb)
...@@ -92,7 +91,6 @@ vlc_module_begin () ...@@ -92,7 +91,6 @@ vlc_module_begin ()
set_description( N_( "SSE2 I420,IYUV,YV12 to " set_description( N_( "SSE2 I420,IYUV,YV12 to "
"RV15,RV16,RV24,RV32 conversions") ) "RV15,RV16,RV24,RV32 conversions") )
set_capability( "video filter2", 120 ) set_capability( "video filter2", 120 )
add_requirement( SSE2 )
#endif #endif
set_callbacks( Activate, Deactivate ) set_callbacks( Activate, Deactivate )
vlc_module_end () vlc_module_end ()
......
...@@ -94,7 +94,6 @@ vlc_module_begin () ...@@ -94,7 +94,6 @@ vlc_module_begin ()
#elif defined (MODULE_NAME_IS_i420_yuy2_sse2) #elif defined (MODULE_NAME_IS_i420_yuy2_sse2)
set_description( N_("SSE2 conversions from " SRC_FOURCC " to " DEST_FOURCC) ) set_description( N_("SSE2 conversions from " SRC_FOURCC " to " DEST_FOURCC) )
set_capability( "video filter2", 250 ) set_capability( "video filter2", 250 )
add_requirement( SSE2 )
#elif defined (MODULE_NAME_IS_i420_yuy2_altivec) #elif defined (MODULE_NAME_IS_i420_yuy2_altivec)
set_description( set_description(
_("AltiVec conversions from " SRC_FOURCC " to " DEST_FOURCC) ); _("AltiVec conversions from " SRC_FOURCC " to " DEST_FOURCC) );
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_filter.h> #include <vlc_filter.h>
#include <vlc_cpu.h>
#include "i422_yuy2.h" #include "i422_yuy2.h"
...@@ -77,7 +76,6 @@ vlc_module_begin () ...@@ -77,7 +76,6 @@ vlc_module_begin ()
#elif defined (MODULE_NAME_IS_i422_yuy2_sse2) #elif defined (MODULE_NAME_IS_i422_yuy2_sse2)
set_description( N_("SSE2 conversions from " SRC_FOURCC " to " DEST_FOURCC) ) set_description( N_("SSE2 conversions from " SRC_FOURCC " to " DEST_FOURCC) )
set_capability( "video filter2", 120 ) set_capability( "video filter2", 120 )
add_requirement( SSE2 )
#endif #endif
set_callbacks( Activate, NULL ) set_callbacks( Activate, NULL )
vlc_module_end () vlc_module_end ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment