diff options
author | Mike Melanson <mike@multimedia.cx> | 2009-01-04 20:47:09 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2009-01-04 20:47:09 +0000 |
commit | ea29242cc75b44457ee635f7ca948e5548c0a1ce (patch) | |
tree | e719851495b6c0902b64e5229bb896bfcadd3483 | |
parent | 06a7bd9a2e9fc496e2e0816da3bce7fd005ccfa4 (diff) | |
download | ffmpeg-ea29242cc75b44457ee635f7ca948e5548c0a1ce.tar.gz |
Ministry of English Composition treatment for the new metadata API
Originally committed as revision 16427 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avformat.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 39dc4765a8..b230c6589a 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -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. */ |