Originally committed as revision 12076 to svn://svn.ffmpeg.org/ffmpeg/trunk
Vitor Sessak authored on 2008/02/16 07:02:511 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,43 @@ |
0 |
+/* |
|
1 |
+ * filter registration |
|
2 |
+ * copyright (c) 2008 Vitor Sessak |
|
3 |
+ * |
|
4 |
+ * This file is part of FFmpeg. |
|
5 |
+ * |
|
6 |
+ * FFmpeg is free software; you can redistribute it and/or |
|
7 |
+ * modify it under the terms of the GNU Lesser General Public |
|
8 |
+ * License as published by the Free Software Foundation; either |
|
9 |
+ * version 2.1 of the License, or (at your option) any later version. |
|
10 |
+ * |
|
11 |
+ * FFmpeg is distributed in the hope that it will be useful, |
|
12 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 |
+ * Lesser General Public License for more details. |
|
15 |
+ * |
|
16 |
+ * You should have received a copy of the GNU Lesser General Public |
|
17 |
+ * License along with FFmpeg; if not, write to the Free Software |
|
18 |
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
19 |
+ */ |
|
20 |
+ |
|
21 |
+#include "avfilter.h" |
|
22 |
+ |
|
23 |
+#define REGISTER_VF(X,x) { \ |
|
24 |
+ extern AVFilter avfilter_vf_##x ; \ |
|
25 |
+ if(ENABLE_VF_##X ) avfilter_register(&avfilter_vf_##x ); } |
|
26 |
+ |
|
27 |
+ |
|
28 |
+#define REGISTER_VSRC(X,x) { \ |
|
29 |
+ extern AVFilter avfilter_vsrc_##x ; \ |
|
30 |
+ if(ENABLE_VSRC_##X ) avfilter_register(&avfilter_vsrc_##x ); } |
|
31 |
+ |
|
32 |
+void avfilter_register_all(void) |
|
33 |
+{ |
|
34 |
+ static int initialized; |
|
35 |
+ |
|
36 |
+ if (initialized) |
|
37 |
+ return; |
|
38 |
+ initialized = 1; |
|
39 |
+ |
|
40 |
+// REGISTER_VF(CROP,crop); |
|
41 |
+ |
|
42 |
+} |