-- 

Best regards,
                   :-) Basty/CDGS (-:



diff --git a/libavsequencer/allmixers.c b/libavsequencer/allmixers.c
new file mode 100644
index 0000000..a4040cd
--- /dev/null
+++ b/libavsequencer/allmixers.c
@@ -0,0 +1,45 @@
+/*
+ * Provide registration of all mixers for the sequencer
+ * Copyright (c) 2010 Sebastian Vater <[email protected]>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file
+ * Provide registration of all mixers for the sequencer.
+ */
+
+#include "libavsequencer/avsequencer.h"
+
+#define REGISTER_MIXER(X,x) { \
+          extern AVSequencerMixerContext x##_mixer; \
+          if(CONFIG_##X##_MIXER)  avseq_register(&x##_mixer); }
+
+void avseq_register_all(void)
+{
+    static int initialized;
+
+    if (initialized)
+        return;
+    initialized = 1;
+
+    /* Mixers */
+    REGISTER_MIXER (NULL, null);
+    REGISTER_MIXER (LOW_QUALITY, lq);
+    REGISTER_MIXER (HIGH_QUALITY, hq);
+}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to