gst/deinterlace2/: Remove useless file and mark everything possible as static.
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 30 Jun 2008 07:51:07 +0000 (07:51 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 30 Jun 2008 07:51:07 +0000 (07:51 +0000)
Original commit message from CVS:
* gst/deinterlace2/Makefile.am:
* gst/deinterlace2/tvtime/tomsmocomp.c: (tomsmocomp_init),
(tomsmocomp_filter_mmx), (tomsmocomp_filter_3dnow),
(tomsmocomp_filter_sse), (deinterlace_frame_di_tomsmocomp):
* gst/deinterlace2/tvtime/tomsmocomp.h:
Remove useless file and mark everything possible as static.
* gst/deinterlace2/tvtime/greedy.c:
* gst/deinterlace2/tvtime/greedyh.c:
Use "_stdint.h" instead of <stdint.h>.

ChangeLog
gst/deinterlace2/Makefile.am
gst/deinterlace2/tvtime/greedy.c
gst/deinterlace2/tvtime/greedyh.c
gst/deinterlace2/tvtime/tomsmocomp.c
gst/deinterlace2/tvtime/tomsmocomp.h

index 6352896486b9c657a4dd5ba211f477ebcbda6108..d720a6eabc3f76f977870efff6b94ea4f636211b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2008-06-30  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
+
+       * gst/deinterlace2/Makefile.am:
+       * gst/deinterlace2/tvtime/tomsmocomp.c: (tomsmocomp_init),
+       (tomsmocomp_filter_mmx), (tomsmocomp_filter_3dnow),
+       (tomsmocomp_filter_sse), (deinterlace_frame_di_tomsmocomp):
+       * gst/deinterlace2/tvtime/tomsmocomp.h:
+       Remove useless file and mark everything possible as static.
+
+       * gst/deinterlace2/tvtime/greedy.c:
+       * gst/deinterlace2/tvtime/greedyh.c:
+       Use "_stdint.h" instead of <stdint.h>.
+
 2008-06-29  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
 
        * gst/deinterlace2/Makefile.am:
index a854fc28b4edcca7c060f0d6d4ed2fe5471bde1c..b8ed59e4fadabe3992414516070db72d47714a62 100644 (file)
@@ -22,7 +22,6 @@ noinst_HEADERS = \
        tvtime/greedyhmacros.h \
        tvtime/plugins.h \
        tvtime/x86-64_macros.inc \
-       tvtime/tomsmocomp.h \
        tvtime/tomsmocomp/SearchLoop0A.inc \
        tvtime/tomsmocomp/SearchLoopBottom.inc \
        tvtime/tomsmocomp/SearchLoopEdgeA8.inc \
index 563ba2d2ac38b7cf5d739e0cc25f173e24238f68..904a24b32e73f2766fcaf0adad36cc11fae86e5d 100644 (file)
@@ -30,7 +30,7 @@
 # include "config.h"
 #endif
 
-#include <_stdint.h>
+#include "_stdint.h"
 
 #include "gstdeinterlace2.h"
 #include <string.h>
index 58ef4f5d3f2d930a61bfaeb83943965f5fe19c52..44f5c57225e5d83e693339456641cb20e9143c15 100644 (file)
@@ -32,7 +32,7 @@
 #include "greedyhmacros.h"
 
 #include <stdlib.h>
-#include <_stdint.h>
+#include "_stdint.h"
 #include <string.h>
 
 #include "gst/gst.h"
index dfadf45727ca3a88001097a5aae739727866a56d..65234c2c0cb4a9a599e2b0d5698d6d1828927624 100644 (file)
 #endif
 
 #include <stdlib.h>
-#include <stdio.h>
-#include <stdint.h>
+#include "_stdint.h"
 #include <string.h>
 
 #include "gst/gst.h"
 #include "gstdeinterlace2.h"
 #include "plugins.h"
 
-#include "tomsmocomp.h"
 #include "tomsmocomp/tomsmocompmacros.h"
 #include "x86-64_macros.inc"
 
-
 #define SearchEffortDefault 5
 #define UseStrangeBobDefault 0
 
-long SearchEffort;
-int UseStrangeBob;
-int IsOdd;
-const unsigned char *pWeaveSrc;
-const unsigned char *pWeaveSrcP;
-unsigned char *pWeaveDest;
-const unsigned char *pCopySrc;
-const unsigned char *pCopySrcP;
-unsigned char *pCopyDest;
-int src_pitch;
-int dst_pitch;
-int rowsize;
-int height;
-int FldHeight;
-
-int
+static long SearchEffort;
+static int UseStrangeBob;
+static int IsOdd;
+static const unsigned char *pWeaveSrc;
+static const unsigned char *pWeaveSrcP;
+static unsigned char *pWeaveDest;
+static const unsigned char *pCopySrc;
+static const unsigned char *pCopySrcP;
+static unsigned char *pCopyDest;
+static int src_pitch;
+static int dst_pitch;
+static int rowsize;
+static int FldHeight;
+
+static int
 Fieldcopy (void *dest, const void *src, size_t count,
     int rows, int dst_pitch, int src_pitch)
 {
@@ -94,15 +90,42 @@ Fieldcopy (void *dest, const void *src, size_t count,
 #undef  SSE_TYPE
 #undef  FUNCT_NAME
 
-void
+static void
+tomsmocomp_init (void)
+{
+  SearchEffort = SearchEffortDefault;
+  UseStrangeBob = UseStrangeBobDefault;
+}
+
+static void
+tomsmocomp_filter_mmx (GstDeinterlace2 * object)
+{
+  tomsmocompDScaler_MMX (object);
+}
+
+static void
+tomsmocomp_filter_3dnow (GstDeinterlace2 * object)
+{
+  tomsmocompDScaler_3DNOW (object);
+}
+
+static void
+tomsmocomp_filter_sse (GstDeinterlace2 * object)
+{
+  tomsmocompDScaler_SSE (object);
+}
+
+static void
 deinterlace_frame_di_tomsmocomp (GstDeinterlace2 * object)
 {
   if (object->cpu_feature_flags & OIL_IMPL_FLAG_SSE) {
     tomsmocomp_filter_sse (object);
   } else if (object->cpu_feature_flags & OIL_IMPL_FLAG_3DNOW) {
     tomsmocomp_filter_3dnow (object);
-  } else {
+  } else if (object->cpu_feature_flags & OIL_IMPL_FLAG_MMX) {
     tomsmocomp_filter_mmx (object);
+  } else {
+    g_assert_not_reached ();
   }
 }
 
@@ -135,28 +158,3 @@ dscaler_tomsmocomp_get_method (void)
   tomsmocomp_init ();
   return &tomsmocompmethod;
 }
-
-void
-tomsmocomp_init (void)
-{
-  SearchEffort = SearchEffortDefault;
-  UseStrangeBob = UseStrangeBobDefault;
-}
-
-void
-tomsmocomp_filter_mmx (GstDeinterlace2 * object)
-{
-  tomsmocompDScaler_MMX (object);
-}
-
-void
-tomsmocomp_filter_3dnow (GstDeinterlace2 * object)
-{
-  tomsmocompDScaler_3DNOW (object);
-}
-
-void
-tomsmocomp_filter_sse (GstDeinterlace2 * object)
-{
-  tomsmocompDScaler_SSE (object);
-}
index 1212780092a6924db43668300e09fe10914cf0f3..ca40ac4483122762aff4ae088688b5c6280166aa 100644 (file)
@@ -49,11 +49,6 @@ int  Search_Effort_19_SB();
 int  Search_Effort_21_SB();
 int  Search_Effort_Max_SB();
 
-void tomsmocomp_init( void );
-void tomsmocomp_filter_mmx( GstDeinterlace2 *object );
-void tomsmocomp_filter_3dnow( GstDeinterlace2 *object );
-void tomsmocomp_filter_sse( GstDeinterlace2 *object );
-
 #ifdef __cplusplus
 };
 #endif