]> git.sesse.net Git - mlt/commitdiff
Add 'boolean' and 'argument' to service metadata schema.
authorDan Dennedy <dan@dennedy.org>
Thu, 17 Oct 2013 05:27:39 +0000 (22:27 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 17 Oct 2013 05:28:14 +0000 (22:28 -0700)
src/framework/metaschema.yaml
src/modules/core/filter_channelcopy.yml

index 6675f4aca11a1804256796d32f920d9c81d5759b..23119ae11a3e6824ac79ccb026b4033216de0a72 100644 (file)
@@ -1,5 +1,5 @@
 --- # A metadata schema in Kwalify: http://www.kuwata-lab.com/kwalify/
-# Version: 0.
+# Version: 0.2
 type: map
 mapping:
   "schema_version": # This should match the version comment above
@@ -69,18 +69,22 @@ mapping:
           "type": # An mlt_property_type
             type: str
             enum:
+              - boolean # 0 or 1; not 'true', 'false', 'yes', or 'no' strings at this time
               - float
               - geometry
               - integer
               - properties # for passing options to encapsulated services
               - string
-              - time # currently, mlt_position (frame), soon to be a time value
+              - time # time string values (clock, SMPTE) can be acccepted in addition to frames
           "service-name": # for type: properties, a reference to another service
             type: str     # format: type.service, e.g. transition.composite
           "title": # A UI can use this for a field label
             type: str
           "description": # A UI can use this for a tool tip or what's-this
             type: str
+          "argument": # If this is also the service constructor argument.
+            type: bool
+            default: no
           "readonly": # If you set this property, it will be ignored
             type: bool
             default: no
index e6c251be1feb3d58a8daf77e8cf1a39a3eba595f..4765d869db75a147c58158eb6a4cbe71a1ce8959 100644 (file)
@@ -1,4 +1,4 @@
-schema_version: 0.1
+schema_version: 0.2
 type: filter
 identifier: channelcopy
 title: Copy Channels
@@ -11,15 +11,10 @@ tags:
   - Audio
 description: Copy one audio channel to another.
 parameters:
-  - identifier: argument
-    title: To
-    type: integer
-    minimum: 0
-    maximum: 15
-    default: 1
   - identifier: to
     title: To
     type: integer
+    argument: true
     minimum: 0
     maximum: 15
     default: 1