]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Ministry of English Composition treatment for the new metadata API
authormelanson <melanson@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 4 Jan 2009 20:47:09 +0000 (20:47 +0000)
committermelanson <melanson@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 4 Jan 2009 20:47:09 +0000 (20:47 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16427 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/avformat.h

index 39dc4765a83fc2d70e47a2b524da6110a0e197ff..b230c6589a61c3e6e08af025f0013a62b31a2a0e 100644 (file)
@@ -48,19 +48,22 @@ unsigned avformat_version(void);
 
 
 /*
- * public Metadata API.
- * Important concepts, to keep in mind
- * 1. keys are unique, there are never 2 tags with equal keys, this is also
- *    meant semantically that is a demuxer should not knowingly produce
- *    several keys that are litterally different but semantically identical,
- *    like key=Author5, key=Author6.
- *    All authors have to be placed in the same tag for the case of Authors.
- * 2. Metadata is flat, there are no subtags, if you for whatever obscene
- *    reason want to store the email address of the child of producer alice
- *    and actor bob, that could have key=alice_and_bobs_childs_email_address.
- * 3. A tag whichs value is translated has the ISO 639 3-letter language code
- *    with a '-' between appended. So for example Author-ger=Michael, Author-eng=Mike
- *    the original/default language is in the unqualified "Author"
+ * Public Metadata API.
+ * The metadata API allows libavformat to export metadata tags to a client
+ * application using a sequence of key/value pairs.
+ * Important concepts to keep in mind:
+ * 1. Keys are unique; there can never be 2 tags with the same key. This is
+ *    also meant semantically, i.e., a demuxer should not knowingly produce
+ *    several keys that are literally different but semantically identical.
+ *    E.g., key=Author5, key=Author6. In this example, all authors must be
+ *    placed in the same tag.
+ * 2. Metadata is flat, not hierarchical; there are no subtags. If you
+ *    want to store, e.g., the email address of the child of producer Alice
+ *    and actor Bob, that could have key=alice_and_bobs_childs_email_address.
+ * 3. A tag whose value is localized for a particular language is appended
+ *    with a dash character ('-') and the ISO 639 3-letter language code.
+ *    For example: Author-ger=Michael, Author-eng=Mike
+ *    The original/default language is in the unqualified "Author" tag.
  *    A demuxer should set a default if it sets any translated tag.
  */