[SCM] libav/experimental: Add last file of main filter framework

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:14:49 UTC 2013


The following commit has been merged in the experimental branch:
commit 5c212e6fbc2d34dd4540d20cce01b48eb83f2f84
Author: Vitor Sessak <vitor1001 at gmail.com>
Date:   Fri Feb 15 22:02:51 2008 +0000

    Add last file of main filter framework
    
    Originally committed as revision 12076 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/armv4l/mpegvideo_arm.c b/libavfilter/allfilters.c
similarity index 59%
copy from libavcodec/armv4l/mpegvideo_arm.c
copy to libavfilter/allfilters.c
index 0aca435..fafd6d1 100644
--- a/libavcodec/armv4l/mpegvideo_arm.c
+++ b/libavfilter/allfilters.c
@@ -1,5 +1,6 @@
 /*
- * Copyright (c) 2002 Michael Niedermayer
+ * filter registration
+ * copyright (c) 2008 Vitor Sessak
  *
  * This file is part of FFmpeg.
  *
@@ -18,23 +19,25 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "dsputil.h"
-#include "mpegvideo.h"
-#include "avcodec.h"
+#include "avfilter.h"
 
-extern void MPV_common_init_iwmmxt(MpegEncContext *s);
-extern void MPV_common_init_armv5te(MpegEncContext *s);
+#define REGISTER_VF(X,x) { \
+          extern AVFilter avfilter_vf_##x ; \
+          if(ENABLE_VF_##X )  avfilter_register(&avfilter_vf_##x ); }
 
-void MPV_common_init_armv4l(MpegEncContext *s)
+
+#define REGISTER_VSRC(X,x) { \
+          extern AVFilter avfilter_vsrc_##x ; \
+          if(ENABLE_VSRC_##X )  avfilter_register(&avfilter_vsrc_##x ); }
+
+void avfilter_register_all(void)
 {
-    /* IWMMXT support is a superset of armv5te, so
-     * allow optimized functions for armv5te unless
-     * a better iwmmxt function exists
-     */
-#ifdef HAVE_ARMV5TE
-    MPV_common_init_armv5te(s);
-#endif
-#ifdef HAVE_IWMMXT
-    MPV_common_init_iwmmxt(s);
-#endif
+    static int initialized;
+
+    if (initialized)
+        return;
+    initialized = 1;
+
+//    REGISTER_VF(CROP,crop);
+
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list