]> git.sesse.net Git - mlt/commitdiff
Add service metadata to vmfx module (WIP).
authorDan Dennedy <dan@dennedy.org>
Mon, 30 May 2011 18:49:16 +0000 (11:49 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 30 May 2011 18:49:16 +0000 (11:49 -0700)
src/modules/core/filter_mono.yml
src/modules/vmfx/Makefile
src/modules/vmfx/factory.c
src/modules/vmfx/filter_chroma.yml [new file with mode: 0644]
src/modules/vmfx/filter_chroma_hold.yml [new file with mode: 0644]
src/modules/vmfx/filter_mono.yml [new file with mode: 0644]
src/modules/vmfx/filter_shape.yml [new file with mode: 0644]
src/modules/vmfx/producer_pgm.yml [new file with mode: 0644]

index 3d663722a2fbb46d5c543a4da2d797ea7147f9bc..aed5ae82e6f81f6426015e21582b4c66b9147449 100644 (file)
@@ -1,11 +1,11 @@
 schema_version: 0.1
 type: filter
 identifier: mono
-title: Threshold
+title: Mixdown
 version: 1
 copyright: Ushodaya Enterprises Limited
 creator: Dan Dennedy
 license: LGPLv2.1
 language: en
 tags:
-  - Video
+  - Audio
index 3d86b9dd87e4ae126ca1e594a85ddb254803618a..27793e3dad6802f18f664e7af026f0c27d174ff6 100644 (file)
@@ -31,6 +31,8 @@ clean:
 
 install: all
        install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+       install -d "$(DESTDIR)$(datadir)/mlt/vmfx"
+       install -m 644 *.yml "$(DESTDIR)$(datadir)/mlt/vmfx"
 
 ifneq ($(wildcard .depend),)
 include .depend
index 3477bb8aa8b560536dd502a9ca781e92618577d4..71f61638cbfd0530dfb5335b15ad029f4cb4fd92 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <string.h>
+#include <limits.h>
 #include <framework/mlt.h>
 
 extern mlt_filter filter_chroma_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
@@ -27,6 +28,13 @@ extern mlt_filter filter_mono_init( mlt_profile profile, mlt_service_type type,
 extern mlt_filter filter_shape_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 extern mlt_producer producer_pgm_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 
+static mlt_properties metadata( mlt_service_type type, const char *id, void *data )
+{
+       char file[ PATH_MAX ];
+       snprintf( file, PATH_MAX, "%s/vmfx/%s", mlt_environment( "MLT_DATA" ), (char*) data );
+       return mlt_properties_parse_yaml( file );
+}
+
 MLT_REPOSITORY
 {
        MLT_REGISTER( filter_type, "chroma", filter_chroma_init );
@@ -34,4 +42,10 @@ MLT_REPOSITORY
        MLT_REGISTER( filter_type, "threshold", filter_mono_init );
        MLT_REGISTER( filter_type, "shape", filter_shape_init );
        MLT_REGISTER( producer_type, "pgm", producer_pgm_init );
+
+       MLT_REGISTER_METADATA( filter_type, "chroma", metadata, "filter_chroma.yml" );
+       MLT_REGISTER_METADATA( filter_type, "chroma_hold", metadata, "filter_chroma_hold.yml" );
+       MLT_REGISTER_METADATA( filter_type, "threshold", metadata, "filter_mono.yml" );
+       MLT_REGISTER_METADATA( filter_type, "shape", metadata, "filter_shape.yml" );
+       MLT_REGISTER_METADATA( producer_type, "pgm", metadata, "producer_pgm.yml" );
 }
diff --git a/src/modules/vmfx/filter_chroma.yml b/src/modules/vmfx/filter_chroma.yml
new file mode 100644 (file)
index 0000000..c36fccb
--- /dev/null
@@ -0,0 +1,11 @@
+schema_version: 0.1
+type: filter
+identifier: chroma
+title: Chroma Key
+version: 1
+copyright: Visual Media FX ?
+creator: Charles Yates
+license: LGPLv2.1
+language: en
+tags:
+  - Video
diff --git a/src/modules/vmfx/filter_chroma_hold.yml b/src/modules/vmfx/filter_chroma_hold.yml
new file mode 100644 (file)
index 0000000..e3e97f8
--- /dev/null
@@ -0,0 +1,11 @@
+schema_version: 0.1
+type: filter
+identifier: chroma_hold
+title: Chroma Hold
+version: 1
+copyright: Visual Media FX ?
+creator: Charles Yates
+license: LGPLv2.1
+language: en
+tags:
+  - Video
diff --git a/src/modules/vmfx/filter_mono.yml b/src/modules/vmfx/filter_mono.yml
new file mode 100644 (file)
index 0000000..8ee9cb7
--- /dev/null
@@ -0,0 +1,11 @@
+schema_version: 0.1
+type: filter
+identifier: threshold
+title: Threshold
+version: 1
+copyright: Visual Media FX ?
+creator: Charles Yates
+license: LGPLv2.1
+language: en
+tags:
+  - Video
diff --git a/src/modules/vmfx/filter_shape.yml b/src/modules/vmfx/filter_shape.yml
new file mode 100644 (file)
index 0000000..1ac470f
--- /dev/null
@@ -0,0 +1,11 @@
+schema_version: 0.1
+type: filter
+identifier: shape
+title: Shape Alpha
+version: 1
+copyright: Visual Media FX ?
+creator: Charles Yates
+license: LGPLv2.1
+language: en
+tags:
+  - Video
diff --git a/src/modules/vmfx/producer_pgm.yml b/src/modules/vmfx/producer_pgm.yml
new file mode 100644 (file)
index 0000000..46076a9
--- /dev/null
@@ -0,0 +1,11 @@
+schema_version: 0.1
+type: producer
+identifier: pgm
+title: PGM Image
+version: 1
+copyright: Visual Media FX ?
+creator: Charles Yates
+license: LGPLv2.1
+language: en
+tags:
+  - Video