[vlc-devel] commit: Move MMX-accelerated chromas to mmx/ ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 10 15:47:01 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 10 16:37:57 2010 +0200| [a763b988077975c39c7b1ad0bf5694804bd4084d] | committer: Rémi Denis-Courmont 

Move MMX-accelerated chromas to mmx/

(Feel free to cleanup)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a763b988077975c39c7b1ad0bf5694804bd4084d
---

 configure.ac                                 |    4 ----
 modules/mmx/Modules.am                       |   26 ++++++++++++++++++++++++++
 modules/{video_chroma => mmx}/i420_rgb_mmx.h |    0 
 modules/video_chroma/Modules.am              |   17 -----------------
 modules/video_chroma/i420_rgb.c              |    1 -
 modules/video_chroma/i420_rgb16.c            |    4 ++--
 modules/video_chroma/i420_yuy2.c             |    1 -
 modules/video_chroma/i422_yuy2.c             |    1 -
 8 files changed, 28 insertions(+), 26 deletions(-)

diff --git a/configure.ac b/configure.ac
index e596ab5..9e09a8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1363,7 +1363,6 @@ AS_IF([test "${enable_mmx}" != "no"], [
     AC_DEFINE(HAVE_MMX_INTRINSICS, 1,
               [Define to 1 if MMX intrinsics are available.])
     MMX_CFLAGS="-mmmx"
-    VLC_ADD_CFLAGS([i420_rgb_mmx i420_yuy2_mmx i422_yuy2_mmx],[-mmmx])
   ])
 
   AC_CACHE_CHECK([if $CC groks MMX inline assembly],
@@ -1375,9 +1374,6 @@ AS_IF([test "${enable_mmx}" != "no"], [
     AC_DEFINE(CAN_COMPILE_MMX, 1,
               [Define to 1 inline MMX assembly is available.])
     have_mmx="yes"
-    VLC_ADD_PLUGIN([i420_rgb_mmx])
-    VLC_ADD_PLUGIN([i420_yuy2_mmx])
-    VLC_ADD_PLUGIN([i422_yuy2_mmx])
   ])
 
   AC_CACHE_CHECK([if $CC groks MMX EXT inline assembly],
diff --git a/modules/mmx/Modules.am b/modules/mmx/Modules.am
index 50fd6ee..b2d4b11 100644
--- a/modules/mmx/Modules.am
+++ b/modules/mmx/Modules.am
@@ -5,6 +5,32 @@ libmemcpymmx_plugin_la_CFLAGS = $(AM_CFLAGS)
 libmemcpymmx_plugin_la_LIBADD = $(AM_LIBADD)
 libmemcpymmx_plugin_la_DEPENDENCIES =
 
+libi420_rgb_mmx_plugin_la_SOURCES = \
+        ../video_chroma/i420_rgb.c \
+	../video_chroma/i420_rgb.h \
+        ../video_chroma/i420_rgb16.c \
+        i420_rgb_mmx.h
+libi420_rgb_mmx_plugin_la_CFLAGS = $(AM_CFLAGS)
+libi420_rgb_mmx_plugin_la_LIBADD = $(AM_LIBADD)
+libi420_rgb_mmx_plugin_la_DEPENDENCIES =
+
+libi420_yuy2_mmx_plugin_la_SOURCES = \
+        ../video_chroma/i420_yuy2.c \
+	../video_chroma/i420_yuy2.h
+libi420_yuy2_mmx_plugin_la_CFLAGS = $(AM_CFLAGS)
+libi420_yuy2_mmx_plugin_la_LIBADD = $(AM_LIBADD)
+libi420_yuy2_mmx_plugin_la_DEPENDENCIES =
+
+libi422_yuy2_mmx_plugin_la_SOURCES = \
+        ../video_chroma/i422_yuy2.c \
+	../video_chroma/i422_yuy2.h
+libi422_yuy2_mmx_plugin_la_CFLAGS = $(AM_CFLAGS)
+libi422_yuy2_mmx_plugin_la_LIBADD = $(AM_LIBADD)
+libi422_yuy2_mmx_plugin_la_DEPENDENCIES =
+
 libvlc_LTLIBRARIES += \
 	libmemcpymmx_plugin.la \
+	libi420_rgb_mmx_plugin.la \
+	libi420_yuy2_mmx_plugin.la \
+	libi422_yuy2_mmx_plugin.la \
 	$(NULL)
diff --git a/modules/video_chroma/i420_rgb_mmx.h b/modules/mmx/i420_rgb_mmx.h
similarity index 100%
rename from modules/video_chroma/i420_rgb_mmx.h
rename to modules/mmx/i420_rgb_mmx.h
diff --git a/modules/video_chroma/Modules.am b/modules/video_chroma/Modules.am
index 0859832..60be521 100644
--- a/modules/video_chroma/Modules.am
+++ b/modules/video_chroma/Modules.am
@@ -6,13 +6,6 @@ SOURCES_i420_rgb = \
 	i420_rgb_c.h \
 	$(NULL)
 
-SOURCES_i420_rgb_mmx = \
-	i420_rgb.c \
-	i420_rgb.h \
-	i420_rgb16.c \
-	i420_rgb_mmx.h \
-	$(NULL)
-
 SOURCES_i420_rgb_sse2 = \
 	i420_rgb.c \
 	i420_rgb.h \
@@ -25,11 +18,6 @@ SOURCES_i420_yuy2 = \
 	i420_yuy2.h \
 	$(NULL)
 
-SOURCES_i420_yuy2_mmx = \
-	i420_yuy2.c \
-	i420_yuy2.h \
-	$(NULL)
-
 SOURCES_i420_yuy2_sse2 = \
 	i420_yuy2.c \
 	i420_yuy2.h \
@@ -45,11 +33,6 @@ SOURCES_i422_yuy2 = \
 	i422_yuy2.h \
 	$(NULL)
 
-SOURCES_i422_yuy2_mmx = \
-	i422_yuy2.c \
-	i422_yuy2.h \
-	$(NULL)
-
 SOURCES_i422_yuy2_sse2 = \
 	i422_yuy2.c \
 	i422_yuy2.h \
diff --git a/modules/video_chroma/i420_rgb.c b/modules/video_chroma/i420_rgb.c
index d072720..0d5bf64 100644
--- a/modules/video_chroma/i420_rgb.c
+++ b/modules/video_chroma/i420_rgb.c
@@ -88,7 +88,6 @@ vlc_module_begin ()
     set_description( N_( "MMX I420,IYUV,YV12 to "
                         "RV15,RV16,RV24,RV32 conversions") )
     set_capability( "video filter2", 100 )
-    add_requirement( MMX )
 #elif defined (MODULE_NAME_IS_i420_rgb_sse2)
     set_description( N_( "SSE2 I420,IYUV,YV12 to "
                         "RV15,RV16,RV24,RV32 conversions") )
diff --git a/modules/video_chroma/i420_rgb16.c b/modules/video_chroma/i420_rgb16.c
index a8532f7..de9428f 100644
--- a/modules/video_chroma/i420_rgb16.c
+++ b/modules/video_chroma/i420_rgb16.c
@@ -37,9 +37,9 @@
 #if defined (MODULE_NAME_IS_i420_rgb)
 #   include "i420_rgb_c.h"
 #elif defined (MODULE_NAME_IS_i420_rgb_mmx)
-#   include "i420_rgb_mmx.h"
+#   include "../mmx/i420_rgb_mmx.h"
 #elif defined (MODULE_NAME_IS_i420_rgb_sse2)
-#   include "i420_rgb_mmx.h"
+#   include "../mmx/i420_rgb_mmx.h"
 #endif
 
 static void SetOffset( int, int, int, int, bool *,
diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c
index b467293..f05b746 100644
--- a/modules/video_chroma/i420_yuy2.c
+++ b/modules/video_chroma/i420_yuy2.c
@@ -91,7 +91,6 @@ vlc_module_begin ()
 #elif defined (MODULE_NAME_IS_i420_yuy2_mmx)
     set_description( N_("MMX conversions from " SRC_FOURCC " to " DEST_FOURCC) )
     set_capability( "video filter2", 160 )
-    add_requirement( MMX )
 #elif defined (MODULE_NAME_IS_i420_yuy2_sse2)
     set_description( N_("SSE2 conversions from " SRC_FOURCC " to " DEST_FOURCC) )
     set_capability( "video filter2", 250 )
diff --git a/modules/video_chroma/i422_yuy2.c b/modules/video_chroma/i422_yuy2.c
index 87e10f0..9d86ec6 100644
--- a/modules/video_chroma/i422_yuy2.c
+++ b/modules/video_chroma/i422_yuy2.c
@@ -74,7 +74,6 @@ vlc_module_begin ()
 #elif defined (MODULE_NAME_IS_i422_yuy2_mmx)
     set_description( N_("MMX conversions from " SRC_FOURCC " to " DEST_FOURCC) )
     set_capability( "video filter2", 100 )
-    add_requirement( MMX )
 #elif defined (MODULE_NAME_IS_i422_yuy2_sse2)
     set_description( N_("SSE2 conversions from " SRC_FOURCC " to " DEST_FOURCC) )
     set_capability( "video filter2", 120 )




More information about the vlc-devel mailing list