gsttaglist.h 37.1 KB
Newer Older
Benjamin Otte's avatar
Benjamin Otte committed
1 2 3
/* GStreamer
 * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
 *
4
 * gsttaglist.h: Header for tag support
Benjamin Otte's avatar
Benjamin Otte committed
5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
Tim-Philipp Müller's avatar
Tim-Philipp Müller committed
18 19
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA 02110-1301, USA.
Benjamin Otte's avatar
Benjamin Otte committed
20 21 22
 */


23 24
#ifndef __GST_TAGLIST_H__
#define __GST_TAGLIST_H__
Benjamin Otte's avatar
Benjamin Otte committed
25

26
#include <gst/gstdatetime.h>
27
#include <gst/gstsample.h>
28
#include <gst/gstbuffer.h>
Andy Wingo Wingo's avatar
Andy Wingo Wingo committed
29
#include <gst/glib-compat.h>
Benjamin Otte's avatar
Benjamin Otte committed
30

31 32
G_BEGIN_DECLS

Wim Taymans's avatar
Wim Taymans committed
33 34 35
/**
 * GstTagMergeMode:
 * @GST_TAG_MERGE_UNDEFINED: undefined merge mode
36
 * @GST_TAG_MERGE_REPLACE_ALL: replace all tags (clear list and append)
Wim Taymans's avatar
Wim Taymans committed
37 38 39 40 41 42 43
 * @GST_TAG_MERGE_REPLACE: replace tags
 * @GST_TAG_MERGE_APPEND: append tags
 * @GST_TAG_MERGE_PREPEND: prepend tags
 * @GST_TAG_MERGE_KEEP: keep existing tags
 * @GST_TAG_MERGE_KEEP_ALL: keep all existing tags
 * @GST_TAG_MERGE_COUNT: the number of merge modes
 *
44
 * The different tag merging modes are basically replace, overwrite and append,
45 46 47 48 49 50
 * but they can be seen from two directions. Given two taglists: (A) the tags
 * already in the element and (B) the ones that are supplied to the element (
 * e.g. via gst_tag_setter_merge_tags() / gst_tag_setter_add_tags() or a
 * %GST_EVENT_TAG), how are these tags merged?
 * In the table below this is shown for the cases that a tag exists in the list
 * (A) or does not exists (!A) and combinations thereof.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
 *
 * <table frame="all" colsep="1" rowsep="1">
 *   <title>merge mode</title>
 *   <tgroup cols='5' align='left'>
 *     <thead>
 *       <row>
 *         <entry>merge mode</entry>
 *         <entry>A + B</entry>
 *         <entry>A + !B</entry>
 *         <entry>!A + B</entry>
 *         <entry>!A + !B</entry>
 *       </row>
 *     </thead>
 *     <tbody>
 *       <row>
 *         <entry>REPLACE_ALL</entry>
 *         <entry>B</entry>
 *         <entry>-</entry>
 *         <entry>B</entry>
 *         <entry>-</entry>
 *       </row>
 *       <row>
 *         <entry>REPLACE</entry>
 *         <entry>B</entry>
 *         <entry>A</entry>
 *         <entry>B</entry>
 *         <entry>-</entry>
 *       </row>
 *       <row>
 *         <entry>APPEND</entry>
 *         <entry>A, B</entry>
 *         <entry>A</entry>
 *         <entry>B</entry>
 *         <entry>-</entry>
 *       </row>
 *       <row>
 *         <entry>PREPEND</entry>
 *         <entry>B, A</entry>
 *         <entry>A</entry>
 *         <entry>B</entry>
 *         <entry>-</entry>
 *       </row>
 *       <row>
 *         <entry>KEEP</entry>
 *         <entry>A</entry>
 *         <entry>A</entry>
 *         <entry>B</entry>
 *         <entry>-</entry>
 *       </row>
 *       <row>
 *         <entry>KEEP_ALL</entry>
 *         <entry>A</entry>
 *         <entry>A</entry>
 *         <entry>-</entry>
 *         <entry>-</entry>
 *       </row>
 *     </tbody>
 *   </tgroup>
 * </table>
Wim Taymans's avatar
Wim Taymans committed
110
 */
111
typedef enum {
Benjamin Otte's avatar
Benjamin Otte committed
112 113 114 115 116 117 118 119 120
  GST_TAG_MERGE_UNDEFINED,
  GST_TAG_MERGE_REPLACE_ALL,
  GST_TAG_MERGE_REPLACE,
  GST_TAG_MERGE_APPEND,
  GST_TAG_MERGE_PREPEND,
  GST_TAG_MERGE_KEEP,
  GST_TAG_MERGE_KEEP_ALL,
  /* add more */
  GST_TAG_MERGE_COUNT
121
} GstTagMergeMode;
122

Benjamin Otte's avatar
Benjamin Otte committed
123 124
#define GST_TAG_MODE_IS_VALID(mode)     (((mode) > GST_TAG_MERGE_UNDEFINED) && ((mode) < GST_TAG_MERGE_COUNT))

Wim Taymans's avatar
Wim Taymans committed
125 126 127 128 129 130 131 132 133 134
/**
 * GstTagFlag:
 * @GST_TAG_FLAG_UNDEFINED: undefined flag
 * @GST_TAG_FLAG_META: tag is meta data
 * @GST_TAG_FLAG_ENCODED: tag is encoded
 * @GST_TAG_FLAG_DECODED: tag is decoded
 * @GST_TAG_FLAG_COUNT: number of tag flags
 *
 * Extra tag flags used when registering tags.
 */
135
/* FIXME: these are not really flags .. */
136
typedef enum {
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
137 138 139 140 141
  GST_TAG_FLAG_UNDEFINED,
  GST_TAG_FLAG_META,
  GST_TAG_FLAG_ENCODED,
  GST_TAG_FLAG_DECODED,
  GST_TAG_FLAG_COUNT
142
} GstTagFlag;
143

Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
144 145
#define GST_TAG_FLAG_IS_VALID(flag)     (((flag) > GST_TAG_FLAG_UNDEFINED) && ((flag) < GST_TAG_FLAG_COUNT))

Wim Taymans's avatar
Wim Taymans committed
146 147
/**
 * GstTagList:
148
 * @mini_object: the parent type
Wim Taymans's avatar
Wim Taymans committed
149
 *
150
 * Object describing tags / metadata.
Wim Taymans's avatar
Wim Taymans committed
151
 */
152
typedef struct _GstTagList GstTagList;
153 154 155
struct _GstTagList {
  GstMiniObject mini_object;
};
156

157
GST_API GType _gst_tag_list_type;
158

159
#define GST_TAG_LIST(x)       ((GstTagList *) (x))
160
#define GST_TYPE_TAG_LIST     (_gst_tag_list_type)
161
#define GST_IS_TAG_LIST(obj)  (GST_IS_MINI_OBJECT_TYPE((obj), GST_TYPE_TAG_LIST))
Benjamin Otte's avatar
Benjamin Otte committed
162

163 164 165 166 167 168 169 170 171
/**
 * GstTagForeachFunc:
 * @list: the #GstTagList
 * @tag: a name of a tag in @list
 * @user_data: user data
 *
 * A function that will be called in gst_tag_list_foreach(). The function may
 * not modify the tag list.
 */
172 173 174
typedef void (*GstTagForeachFunc) (const GstTagList * list,
                                   const gchar      * tag,
                                   gpointer           user_data);
175

Wim Taymans's avatar
Wim Taymans committed
176 177 178 179 180 181 182 183
/**
 * GstTagMergeFunc:
 * @dest: the destination #GValue
 * @src: the source #GValue
 *
 * A function for merging multiple values of a tag used when registering
 * tags.
 */
184
typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);
Benjamin Otte's avatar
Benjamin Otte committed
185

186
GST_API
187 188
GType        gst_tag_list_get_type (void);

189
/* tag registration */
190

191
GST_API
192 193 194 195 196 197
void         gst_tag_register      (const gchar     * name,
                                    GstTagFlag        flag,
                                    GType             type,
                                    const gchar     * nick,
                                    const gchar     * blurb,
                                    GstTagMergeFunc   func);
198
GST_API
199 200 201 202 203 204 205
void         gst_tag_register_static (const gchar   * name,
                                      GstTagFlag      flag,
                                      GType           type,
                                      const gchar   * nick,
                                      const gchar   * blurb,
                                      GstTagMergeFunc func);

Benjamin Otte's avatar
Benjamin Otte committed
206
/* some default merging functions */
207

208
GST_API
209
void      gst_tag_merge_use_first          (GValue * dest, const GValue * src);
210

211
GST_API
212
void      gst_tag_merge_strings_with_comma (GValue * dest, const GValue * src);
Benjamin Otte's avatar
Benjamin Otte committed
213 214

/* basic tag support */
215

216
GST_API
217
gboolean               gst_tag_exists          (const gchar * tag);
218

219
GST_API
220
GType                  gst_tag_get_type        (const gchar * tag);
221

222
GST_API
223
const gchar *          gst_tag_get_nick        (const gchar * tag);
224

225
GST_API
226
const gchar *          gst_tag_get_description (const gchar * tag);
227

228
GST_API
229
GstTagFlag             gst_tag_get_flag        (const gchar * tag);
230

231
GST_API
232
gboolean               gst_tag_is_fixed        (const gchar * tag);
Benjamin Otte's avatar
Benjamin Otte committed
233 234

/* tag lists */
235 236

/**
237
 * GstTagScope:
238 239 240 241 242 243 244 245 246 247 248
 * @GST_TAG_SCOPE_STREAM: tags specific to this single stream
 * @GST_TAG_SCOPE_GLOBAL: global tags for the complete medium
 *
 * GstTagScope specifies if a taglist applies to the complete
 * medium or only to one single stream.
 */
typedef enum {
  GST_TAG_SCOPE_STREAM,
  GST_TAG_SCOPE_GLOBAL
} GstTagScope;

249
GST_API
250
GstTagList * gst_tag_list_new_empty         (void) G_GNUC_MALLOC;
251

252
GST_API
253
GstTagList * gst_tag_list_new               (const gchar * tag, ...) G_GNUC_MALLOC;
254

255
GST_API
256
GstTagList * gst_tag_list_new_valist        (va_list var_args) G_GNUC_MALLOC;
257

258
GST_API
259
void         gst_tag_list_set_scope         (GstTagList * list, GstTagScope scope);
260

261
GST_API
262 263
GstTagScope  gst_tag_list_get_scope         (const GstTagList * list);

264
GST_API
265
gchar      * gst_tag_list_to_string         (const GstTagList * list) G_GNUC_MALLOC;
266

267
GST_API
268
GstTagList * gst_tag_list_new_from_string   (const gchar      * str) G_GNUC_MALLOC;
269

270
GST_API
Wim Taymans's avatar
Wim Taymans committed
271
gint         gst_tag_list_n_tags            (const GstTagList * list);
272

273
GST_API
Wim Taymans's avatar
Wim Taymans committed
274
const gchar* gst_tag_list_nth_tag_name      (const GstTagList * list, guint index);
275

276
GST_API
277
gboolean     gst_tag_list_is_empty          (const GstTagList * list);
278

279
GST_API
280 281
gboolean     gst_tag_list_is_equal          (const GstTagList * list1,
                                             const GstTagList * list2);
282
GST_API
283 284 285
void         gst_tag_list_insert            (GstTagList       * into,
                                             const GstTagList * from,
                                             GstTagMergeMode    mode);
286
GST_API
287 288
GstTagList * gst_tag_list_merge             (const GstTagList * list1,
                                             const GstTagList * list2,
289
                                             GstTagMergeMode    mode) G_GNUC_MALLOC;
290
GST_API
291 292
guint        gst_tag_list_get_tag_size      (const GstTagList * list,
                                             const gchar      * tag);
293
GST_API
294 295 296 297
void         gst_tag_list_add               (GstTagList       * list,
                                             GstTagMergeMode    mode,
                                             const gchar      * tag,
                                             ...) G_GNUC_NULL_TERMINATED;
298
GST_API
299 300 301 302
void         gst_tag_list_add_values        (GstTagList       * list,
                                             GstTagMergeMode    mode,
                                             const gchar      * tag,
                                             ...) G_GNUC_NULL_TERMINATED;
303
GST_API
304 305 306 307
void         gst_tag_list_add_valist        (GstTagList       * list,
                                             GstTagMergeMode    mode,
                                             const gchar      * tag,
                                             va_list        var_args);
308
GST_API
309 310 311 312
void         gst_tag_list_add_valist_values (GstTagList       * list,
                                             GstTagMergeMode    mode,
                                             const gchar      * tag,
                                             va_list            var_args);
313
GST_API
314 315 316 317
void         gst_tag_list_add_value         (GstTagList       * list,
                                             GstTagMergeMode    mode,
                                             const gchar      * tag,
                                             const GValue     * value);
318
GST_API
319 320
void         gst_tag_list_remove_tag        (GstTagList       * list,
                                             const gchar      * tag);
321
GST_API
322 323 324
void         gst_tag_list_foreach           (const GstTagList * list,
                                             GstTagForeachFunc  func,
                                             gpointer           user_data);
325
GST_API
326
const GValue *
327 328 329
             gst_tag_list_get_value_index   (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index);
330
GST_API
331 332 333
gboolean     gst_tag_list_copy_value        (GValue           * dest,
                                             const GstTagList * list,
                                             const gchar      * tag);
Benjamin Otte's avatar
Benjamin Otte committed
334 335

/* simplifications (FIXME: do we want them?) */
336

337
GST_API
338 339 340
gboolean     gst_tag_list_get_boolean       (const GstTagList * list,
                                             const gchar      * tag,
                                             gboolean         * value);
341
GST_API
342 343 344 345
gboolean     gst_tag_list_get_boolean_index (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             gboolean         * value);
346
GST_API
347 348 349
gboolean     gst_tag_list_get_int           (const GstTagList * list,
                                             const gchar      * tag,
                                             gint             * value);
350
GST_API
351 352 353 354
gboolean     gst_tag_list_get_int_index     (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             gint             * value);
355
GST_API
356 357 358
gboolean     gst_tag_list_get_uint          (const GstTagList * list,
                                             const gchar      * tag,
                                             guint            * value);
359
GST_API
360 361 362 363
gboolean     gst_tag_list_get_uint_index    (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             guint            * value);
364
GST_API
365 366 367
gboolean     gst_tag_list_get_int64         (const GstTagList * list,
                                             const gchar      * tag,
                                             gint64           * value);
368
GST_API
369 370 371 372
gboolean     gst_tag_list_get_int64_index   (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             gint64           * value);
373
GST_API
374 375 376
gboolean     gst_tag_list_get_uint64        (const GstTagList * list,
                                             const gchar      * tag,
                                             guint64          * value);
377
GST_API
378 379 380 381
gboolean     gst_tag_list_get_uint64_index  (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             guint64          * value);
382
GST_API
383 384 385
gboolean     gst_tag_list_get_float         (const GstTagList * list,
                                             const gchar      * tag,
                                             gfloat           * value);
386
GST_API
387 388 389 390
gboolean     gst_tag_list_get_float_index   (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             gfloat           * value);
391
GST_API
392 393 394
gboolean     gst_tag_list_get_double        (const GstTagList * list,
                                             const gchar      * tag,
                                             gdouble          * value);
395
GST_API
396 397 398 399
gboolean     gst_tag_list_get_double_index  (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             gdouble          * value);
400
GST_API
401 402 403
gboolean     gst_tag_list_get_string        (const GstTagList * list,
                                             const gchar      * tag,
                                             gchar           ** value);
404
GST_API
405 406 407 408
gboolean     gst_tag_list_get_string_index  (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             gchar           ** value);
409
GST_API
410 411 412 413
gboolean     gst_tag_list_peek_string_index (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             const gchar     ** value);
414
GST_API
415 416 417
gboolean     gst_tag_list_get_pointer       (const GstTagList * list,
                                             const gchar      * tag,
                                             gpointer         * value);
418
GST_API
419 420 421 422
gboolean     gst_tag_list_get_pointer_index (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             gpointer         * value);
423
GST_API
424 425 426
gboolean     gst_tag_list_get_date          (const GstTagList * list,
                                             const gchar      * tag,
                                             GDate           ** value);
427
GST_API
428 429 430 431
gboolean     gst_tag_list_get_date_index    (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             GDate           ** value);
432
GST_API
433 434 435
gboolean     gst_tag_list_get_date_time     (const GstTagList * list,
                                             const gchar      * tag,
                                             GstDateTime     ** value);
436
GST_API
437 438 439 440
gboolean     gst_tag_list_get_date_time_index (const GstTagList * list,
                                             const gchar      * tag,
                                             guint              index,
                                             GstDateTime     ** value);
441
GST_API
442
gboolean     gst_tag_list_get_sample        (const GstTagList * list,
443
                                             const gchar      * tag,
444
                                             GstSample       ** sample);
445
GST_API
446
gboolean     gst_tag_list_get_sample_index  (const GstTagList * list,
447 448
                                             const gchar      * tag,
                                             guint              index,
449
                                             GstSample       ** sample);
Benjamin Otte's avatar
Benjamin Otte committed
450

451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
/* refcounting */
/**
 * gst_tag_list_ref:
 * @taglist: the #GstTagList to reference
 *
 * Add a reference to a #GstTagList mini object.
 *
 * From this point on, until the caller calls gst_tag_list_unref() or
 * gst_tag_list_make_writable(), it is guaranteed that the taglist object will
 * not change. To use a #GstTagList object, you must always have a refcount on
 * it -- either the one made implicitly by e.g. gst_tag_list_new(), or via
 * taking one explicitly with this function.
 *
 * Returns: the same #GstTagList mini object.
 */
static inline GstTagList *
gst_tag_list_ref (GstTagList * taglist)
{
  return (GstTagList *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (taglist));
}

/**
 * gst_tag_list_unref:
 * @taglist: a #GstTagList.
 *
 * Unref a #GstTagList, and and free all its memory when the refcount reaches 0.
 */
static inline void
gst_tag_list_unref (GstTagList * taglist)
{
  gst_mini_object_unref (GST_MINI_OBJECT_CAST (taglist));
}

/**
 * gst_tag_list_copy:
 * @taglist: a #GstTagList.
 *
 * Creates a new #GstTagList as a copy of the old @taglist. The new taglist
 * will have a refcount of 1, owned by the caller, and will be writable as
 * a result.
 *
 * Note that this function is the semantic equivalent of a gst_tag_list_ref()
 * followed by a gst_tag_list_make_writable(). If you only want to hold on to a
 * reference to the data, you should use gst_tag_list_ref().
 *
 * When you are finished with the taglist, call gst_tag_list_unref() on it.
 *
 * Returns: the new #GstTagList
 */
static inline GstTagList *
gst_tag_list_copy (const GstTagList * taglist)
{
  return GST_TAG_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (taglist)));
}

/**
 * gst_tag_list_is_writable:
 * @taglist: a #GstTagList
 *
 * Tests if you can safely modify @taglist. It is only safe to modify taglist
 * when there is only one owner of the taglist - ie, the refcount is 1.
 */
#define gst_tag_list_is_writable(taglist)    gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (taglist))

/**
 * gst_tag_list_make_writable:
 * @taglist: (transfer full): a #GstTagList
 *
 * Returns a writable copy of @taglist.
 *
 * If there is only one reference count on @taglist, the caller must be the
 * owner, and so this function will return the taglist object unchanged. If on
 * the other hand there is more than one reference on the object, a new taglist
 * object will be returned (which will be a copy of @taglist). The caller's
 * reference on @taglist will be removed, and instead the caller will own a
 * reference to the returned object.
 *
 * In short, this function unrefs the taglist in the argument and refs the
 * taglist that it returns. Don't access the argument after calling this
 * function. See also: gst_tag_list_ref().
 *
 * Returns: (transfer full): a writable taglist which may or may not be the
 *     same as @taglist
 */
#define gst_tag_list_make_writable(taglist)   GST_TAG_LIST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (taglist)))

537
/* GStreamer core tags */
Stefan Kost's avatar
Stefan Kost committed
538 539 540
/**
 * GST_TAG_TITLE:
 *
541
 * commonly used title (string)
542 543
 *
 * The title as it should be displayed, e.g. 'The Doll House'
Stefan Kost's avatar
Stefan Kost committed
544
 */
545
#define GST_TAG_TITLE                  "title"
546 547 548 549 550 551 552 553
/**
 * GST_TAG_TITLE_SORTNAME:
 *
 * commonly used title, as used for sorting (string)
 *
 * The title as it should be sorted, e.g. 'Doll House, The'
 */
#define GST_TAG_TITLE_SORTNAME         "title-sortname"
Stefan Kost's avatar
Stefan Kost committed
554 555 556
/**
 * GST_TAG_ARTIST:
 *
557
 * person(s) responsible for the recording (string)
558 559 560
 *
 * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or
 * 'The Guitar Heroes'
Stefan Kost's avatar
Stefan Kost committed
561
 */
562
#define GST_TAG_ARTIST                 "artist"
563 564 565 566 567 568 569 570
/**
 * GST_TAG_ARTIST_SORTNAME:
 *
 * person(s) responsible for the recording, as used for sorting (string)
 *
 * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or
 * 'Guitar Heroes, The'
 */
571
#define GST_TAG_ARTIST_SORTNAME        "artist-sortname"
Stefan Kost's avatar
Stefan Kost committed
572 573 574
/**
 * GST_TAG_ALBUM:
 *
575
 * album containing this data (string)
576 577
 *
 * The album name as it should be displayed, e.g. 'The Jazz Guitar'
Stefan Kost's avatar
Stefan Kost committed
578
 */
579
#define GST_TAG_ALBUM                  "album"
580 581 582 583 584 585 586 587
/**
 * GST_TAG_ALBUM_SORTNAME:
 *
 * album containing this data, as used for sorting (string)
 *
 * The album name as it should be sorted, e.g. 'Jazz Guitar, The'
 */
#define GST_TAG_ALBUM_SORTNAME         "album-sortname"
588
/**
Thiago Santos's avatar
Thiago Santos committed
589
 * GST_TAG_ALBUM_ARTIST:
590 591 592 593 594
 *
 * The artist of the entire album, as it should be displayed.
 */
#define GST_TAG_ALBUM_ARTIST           "album-artist"
/**
Thiago Santos's avatar
Thiago Santos committed
595
 * GST_TAG_ALBUM_ARTIST_SORTNAME:
596 597 598 599
 *
 * The artist of the entire album, as it should be sorted.
 */
#define GST_TAG_ALBUM_ARTIST_SORTNAME  "album-artist-sortname"
600 601 602 603 604 605
/**
 * GST_TAG_COMPOSER:
 *
 * person(s) who composed the recording (string)
 */
#define GST_TAG_COMPOSER               "composer"
606 607 608 609 610 611 612 613
/**
 * GST_TAG_CONDUCTOR:
 *
 * conductor/performer refinement (string)
 *
 * Since: 1.8
 */
#define GST_TAG_CONDUCTOR               "conductor"
Stefan Kost's avatar
Stefan Kost committed
614 615 616
/**
 * GST_TAG_DATE:
 *
617
 * date the data was created (#GDate structure)
Stefan Kost's avatar
Stefan Kost committed
618
 */
619
#define GST_TAG_DATE                   "date"
620 621
/**
 * GST_TAG_DATE_TIME:
622
 *
623 624 625
 * date and time the data was created (#GstDateTime structure)
 */
#define GST_TAG_DATE_TIME              "datetime"
Stefan Kost's avatar
Stefan Kost committed
626 627 628
/**
 * GST_TAG_GENRE:
 *
629
 * genre this data belongs to (string)
Stefan Kost's avatar
Stefan Kost committed
630
 */
631
#define GST_TAG_GENRE                  "genre"
Stefan Kost's avatar
Stefan Kost committed
632 633 634
/**
 * GST_TAG_COMMENT:
 *
635
 * free text commenting the data (string)
Stefan Kost's avatar
Stefan Kost committed
636
 */
637
#define GST_TAG_COMMENT                "comment"
638 639 640 641 642 643 644 645 646 647 648 649
/**
 * GST_TAG_EXTENDED_COMMENT:
 *
 * key/value text commenting the data (string)
 *
 * Must be in the form of 'key=comment' or
 * 'key[lc]=comment' where 'lc' is an ISO-639
 * language code.
 *
 * This tag is used for unknown Vorbis comment tags,
 * unknown APE tags and certain ID3v2 comment fields.
 */
650
#define GST_TAG_EXTENDED_COMMENT       "extended-comment"
Stefan Kost's avatar
Stefan Kost committed
651 652 653
/**
 * GST_TAG_TRACK_NUMBER:
 *
654
 * track number inside a collection (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
655
 */
656
#define GST_TAG_TRACK_NUMBER           "track-number"
Stefan Kost's avatar
Stefan Kost committed
657 658 659
/**
 * GST_TAG_TRACK_COUNT:
 *
660
 * count of tracks inside collection this track belongs to (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
661
 */
662
#define GST_TAG_TRACK_COUNT            "track-count"
Stefan Kost's avatar
Stefan Kost committed
663 664 665
/**
 * GST_TAG_ALBUM_VOLUME_NUMBER:
 *
666
 * disc number inside a collection (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
667
 */
668
#define GST_TAG_ALBUM_VOLUME_NUMBER    "album-disc-number"
Stefan Kost's avatar
Stefan Kost committed
669 670 671
/**
 * GST_TAG_ALBUM_VOLUME_COUNT:
 *
672
 * count of discs inside collection this disc belongs to (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
673
 */
674
#define GST_TAG_ALBUM_VOLUME_COUNT    "album-disc-count"
Stefan Kost's avatar
Stefan Kost committed
675 676 677
/**
 * GST_TAG_LOCATION:
 *
678 679
 * Origin of media as a URI (location, where the original of the file or stream
 * is hosted) (string)
Stefan Kost's avatar
Stefan Kost committed
680
 */
681
#define GST_TAG_LOCATION               "location"
682 683 684 685 686 687
/**
 * GST_TAG_HOMEPAGE:
 *
 * Homepage for this media (i.e. artist or movie homepage) (string)
 */
#define GST_TAG_HOMEPAGE               "homepage"
Stefan Kost's avatar
Stefan Kost committed
688 689 690
/**
 * GST_TAG_DESCRIPTION:
 *
691
 * short text describing the content of the data (string)
Stefan Kost's avatar
Stefan Kost committed
692
 */
693
#define GST_TAG_DESCRIPTION            "description"
Stefan Kost's avatar
Stefan Kost committed
694 695 696
/**
 * GST_TAG_VERSION:
 *
697
 * version of this data (string)
Stefan Kost's avatar
Stefan Kost committed
698
 */
699
#define GST_TAG_VERSION                "version"
Stefan Kost's avatar
Stefan Kost committed
700 701 702
/**
 * GST_TAG_ISRC:
 *
703
 * International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
Stefan Kost's avatar
Stefan Kost committed
704
 */
705
#define GST_TAG_ISRC                   "isrc"
Stefan Kost's avatar
Stefan Kost committed
706 707 708
/**
 * GST_TAG_ORGANIZATION:
 *
709
 * organization (string)
Stefan Kost's avatar
Stefan Kost committed
710
 */
711
#define GST_TAG_ORGANIZATION           "organization"
Stefan Kost's avatar
Stefan Kost committed
712 713 714
/**
 * GST_TAG_COPYRIGHT:
 *
715
 * copyright notice of the data (string)
Stefan Kost's avatar
Stefan Kost committed
716
 */
717
#define GST_TAG_COPYRIGHT              "copyright"
718 719 720 721 722 723
/**
 * GST_TAG_COPYRIGHT_URI:
 *
 * URI to location where copyright details can be found (string)
 */
#define GST_TAG_COPYRIGHT_URI          "copyright-uri"
724 725 726 727 728 729 730 731 732 733 734
/**
 * GST_TAG_ENCODED_BY:
 *
 * name of the person or organisation that encoded the file. May contain a
 * copyright message if the person or organisation also holds the copyright
 * (string)
 *
 * Note: do not use this field to describe the encoding application. Use
 * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
 */
#define GST_TAG_ENCODED_BY             "encoded-by"
Stefan Kost's avatar
Stefan Kost committed
735 736 737
/**
 * GST_TAG_CONTACT:
 *
738
 * contact information (string)
Stefan Kost's avatar
Stefan Kost committed
739
 */
740
#define GST_TAG_CONTACT                "contact"
Stefan Kost's avatar
Stefan Kost committed
741 742 743
/**
 * GST_TAG_LICENSE:
 *
744
 * license of data (string)
Stefan Kost's avatar
Stefan Kost committed
745
 */
746
#define GST_TAG_LICENSE                "license"
747 748 749 750 751 752
/**
 * GST_TAG_LICENSE_URI:
 *
 * URI to location where license details can be found (string)
 */
#define GST_TAG_LICENSE_URI            "license-uri"
Stefan Kost's avatar
Stefan Kost committed
753 754 755
/**
 * GST_TAG_PERFORMER:
 *
756
 * person(s) performing (string)
Stefan Kost's avatar
Stefan Kost committed
757
 */
758
#define GST_TAG_PERFORMER              "performer"
Stefan Kost's avatar
Stefan Kost committed
759 760 761
/**
 * GST_TAG_DURATION:
 *
762
 * length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
Stefan Kost's avatar
Stefan Kost committed
763
 */
764
#define GST_TAG_DURATION               "duration"
Stefan Kost's avatar
Stefan Kost committed
765 766 767
/**
 * GST_TAG_CODEC:
 *
768
 * codec the data is stored in (string)
Stefan Kost's avatar
Stefan Kost committed
769
 */
770
#define GST_TAG_CODEC                  "codec"
Stefan Kost's avatar
Stefan Kost committed
771 772 773
/**
 * GST_TAG_VIDEO_CODEC:
 *
774
 * codec the video data is stored in (string)
Stefan Kost's avatar
Stefan Kost committed
775
 */
776
#define GST_TAG_VIDEO_CODEC            "video-codec"
Stefan Kost's avatar
Stefan Kost committed
777 778 779
/**
 * GST_TAG_AUDIO_CODEC:
 *
780
 * codec the audio data is stored in (string)
Stefan Kost's avatar
Stefan Kost committed
781
 */
782
#define GST_TAG_AUDIO_CODEC            "audio-codec"
783 784 785 786 787 788
/**
 * GST_TAG_SUBTITLE_CODEC:
 *
 * codec/format the subtitle data is stored in (string)
 */
#define GST_TAG_SUBTITLE_CODEC         "subtitle-codec"
789 790 791 792 793 794
/**
 * GST_TAG_CONTAINER_FORMAT:
 *
 * container format the data is stored in (string)
 */
#define GST_TAG_CONTAINER_FORMAT       "container-format"
Stefan Kost's avatar
Stefan Kost committed
795 796 797
/**
 * GST_TAG_BITRATE:
 *
798
 * exact or average bitrate in bits/s (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
799
 */
800
#define GST_TAG_BITRATE                "bitrate"
Stefan Kost's avatar
Stefan Kost committed
801 802 803
/**
 * GST_TAG_NOMINAL_BITRATE:
 *
804 805
 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
 * different from this target bitrate.
Stefan Kost's avatar
Stefan Kost committed
806
 */
807
#define GST_TAG_NOMINAL_BITRATE        "nominal-bitrate"
Stefan Kost's avatar
Stefan Kost committed
808 809 810
/**
 * GST_TAG_MINIMUM_BITRATE:
 *
811
 * minimum bitrate in bits/s (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
812
 */
813
#define GST_TAG_MINIMUM_BITRATE        "minimum-bitrate"
Stefan Kost's avatar
Stefan Kost committed
814 815 816
/**
 * GST_TAG_MAXIMUM_BITRATE:
 *
817
 * maximum bitrate in bits/s (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
818
 */
819
#define GST_TAG_MAXIMUM_BITRATE        "maximum-bitrate"
Stefan Kost's avatar
Stefan Kost committed
820 821 822
/**
 * GST_TAG_SERIAL:
 *
823
 * serial number of track (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
824
 */
825
#define GST_TAG_SERIAL                 "serial"
Stefan Kost's avatar
Stefan Kost committed
826 827 828
/**
 * GST_TAG_ENCODER:
 *
829
 * encoder used to encode this stream (string)
Stefan Kost's avatar
Stefan Kost committed
830
 */
831
#define GST_TAG_ENCODER                "encoder"
Stefan Kost's avatar
Stefan Kost committed
832 833 834
/**
 * GST_TAG_ENCODER_VERSION:
 *
835
 * version of the encoder used to encode this stream (unsigned integer)
Stefan Kost's avatar
Stefan Kost committed
836
 */
837
#define GST_TAG_ENCODER_VERSION        "encoder-version"
Stefan Kost's avatar
Stefan Kost committed
838 839 840
/**
 * GST_TAG_TRACK_GAIN:
 *
841
 * track gain in db (double)
Stefan Kost's avatar
Stefan Kost committed
842
 */
843
#define GST_TAG_TRACK_GAIN             "replaygain-track-gain"
Stefan Kost's avatar
Stefan Kost committed
844 845 846
/**
 * GST_TAG_TRACK_PEAK:
 *
847
 * peak of the track (double)
Stefan Kost's avatar
Stefan Kost committed
848
 */
849
#define GST_TAG_TRACK_PEAK             "replaygain-track-peak"
Stefan Kost's avatar
Stefan Kost committed
850 851 852
/**
 * GST_TAG_ALBUM_GAIN:
 *
853
 * album gain in db (double)
Stefan Kost's avatar
Stefan Kost committed
854
 */
855
#define GST_TAG_ALBUM_GAIN             "replaygain-album-gain"
Stefan Kost's avatar
Stefan Kost committed
856 857 858
/**
 * GST_TAG_ALBUM_PEAK:
 *
859
 * peak of the album (double)
Stefan Kost's avatar
Stefan Kost committed
860
 */
861
#define GST_TAG_ALBUM_PEAK             "replaygain-album-peak"
862 863 864 865 866 867
/**
 * GST_TAG_REFERENCE_LEVEL:
 *
 * reference level of track and album gain values (double)
 */
#define GST_TAG_REFERENCE_LEVEL        "replaygain-reference-level"
868 869 870
/**
 * GST_TAG_LANGUAGE_CODE:
 *
871 872 873 874
 * ISO-639-2 or ISO-639-1 code for the language the content is in (string)
 *
 * There is utility API in libgsttag in gst-plugins-base to obtain a translated
 * language name from the language code: gst_tag_get_language_name()
875
 */
876
#define GST_TAG_LANGUAGE_CODE          "language-code"
877 878 879 880 881 882 883 884 885 886
/**
 * GST_TAG_LANGUAGE_NAME:
 *
 * Name of the language the content is in (string)
 *
 * Free-form name of the language the content is in, if a language code
 * is not available. This tag should not be set in addition to a language
 * code. It is undefined what language or locale the language name is in.
 */
#define GST_TAG_LANGUAGE_NAME          "language-name"
887 888 889
/**
 * GST_TAG_IMAGE:
 *
890
 * image (sample) (sample taglist should specify the content type and preferably
891
 * also set "image-type" field as #GstTagImageType)
892
 */
893
#define GST_TAG_IMAGE                  "image"
894 895 896
/**
 * GST_TAG_PREVIEW_IMAGE:
 *
897
 * image that is meant for preview purposes, e.g. small icon-sized version
898
 * (sample) (sample taglist should specify the content type)
899
 */
900
#define GST_TAG_PREVIEW_IMAGE          "preview-image"
901 902 903 904

/**
 * GST_TAG_ATTACHMENT:
 *
905
 * generic file attachment (sample) (sample taglist should specify the content
906 907 908 909 910
 * type and if possible set "filename" to the file name of the
 * attachment)
 */
#define GST_TAG_ATTACHMENT             "attachment"

911 912 913
/**
 * GST_TAG_BEATS_PER_MINUTE:
 *
914
 * number of beats per minute in audio (double)
915 916
 */
#define GST_TAG_BEATS_PER_MINUTE       "beats-per-minute"
Benjamin Otte's avatar
Benjamin Otte committed
917

918 919 920
/**
 * GST_TAG_KEYWORDS:
 *
921
 * comma separated keywords describing the content (string).
922 923 924
 */
#define GST_TAG_KEYWORDS               "keywords"

925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956
/**
 * GST_TAG_GEO_LOCATION_NAME:
 *
 * human readable descriptive location of where the media has been recorded or
 * produced. (string).
 */
#define GST_TAG_GEO_LOCATION_NAME               "geo-location-name"

/**
 * GST_TAG_GEO_LOCATION_LATITUDE:
 *
 * geo latitude location of where the media has been recorded or produced in
 * degrees according to WGS84 (zero at the equator, negative values for southern
 * latitudes) (double).
 */
#define GST_TAG_GEO_LOCATION_LATITUDE               "geo-location-latitude"

/**
 * GST_TAG_GEO_LOCATION_LONGITUDE:
 *
 * geo longitude location of where the media has been recorded or produced in
 * degrees according to WGS84 (zero at the prime meridian in Greenwich/UK,
 * negative values for western longitudes). (double).
 */
#define GST_TAG_GEO_LOCATION_LONGITUDE               "geo-location-longitude"

/**
 * GST_TAG_GEO_LOCATION_ELEVATION:
 *
 * geo elevation of where the media has been recorded or produced in meters
 * according to WGS84 (zero is average sea level) (double).
 */
957
#define GST_TAG_GEO_LOCATION_ELEVATION               "geo-location-elevation"
958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979
/**
 * GST_TAG_GEO_LOCATION_COUNTRY:
 *
 * The country (english name) where the media has been produced (string).
 */
#define GST_TAG_GEO_LOCATION_COUNTRY                 "geo-location-country"
/**
 * GST_TAG_GEO_LOCATION_CITY:
 *
 * The city (english name) where the media has been produced (string).
 */
#define GST_TAG_GEO_LOCATION_CITY                    "geo-location-city"
/**
 * GST_TAG_GEO_LOCATION_SUBLOCATION:
 *
 * A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better
 * where the media has been produced. (e.g. the neighborhood) (string).
 *
 * This tag has been added as this is how it is handled/named in XMP's
 * Iptc4xmpcore schema.
 */
#define GST_TAG_GEO_LOCATION_SUBLOCATION             "geo-location-sublocation"
980 981 982 983 984 985 986
/**
 * GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR:
 *
 * Represents the expected error on the horizontal positioning in
 * meters (double).
 */
#define GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR   "geo-location-horizontal-error"
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015
/**
 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
 *
 * Speed of the capturing device when performing the capture.
 * Represented in m/s. (double)
 *
 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
 */
#define GST_TAG_GEO_LOCATION_MOVEMENT_SPEED       "geo-location-movement-speed"
/**
 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
 *
 * Indicates the movement direction of the device performing the capture
 * of a media. It is represented as degrees in floating point representation,
 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
 *
 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
 */
#define GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION "geo-location-movement-direction"
/**
 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
 *
 * Indicates the direction the device is pointing to when capturing
 * a media. It is represented as degrees in floating point representation,
 * 0 means the geographic north, and increases clockwise (double from 0 to 360)
 *
 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
 */
#define GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION  "geo-location-capture-direction"
Thiago Santos's avatar
Thiago Santos committed
1016
/**
Thiago Santos's avatar
Thiago Santos committed
1017
 * GST_TAG_SHOW_NAME:
Thiago Santos's avatar
Thiago Santos committed
1018
 *
1019
 * Name of the show, used for displaying (string)
Thiago Santos's avatar
Thiago Santos committed
1020 1021 1022
 */
#define GST_TAG_SHOW_NAME                         "show-name"
/**
Thiago Santos's avatar
Thiago Santos committed
1023
 * GST_TAG_SHOW_SORTNAME:
Thiago Santos's avatar
Thiago Santos committed
1024
 *
1025
 * Name of the show, used for sorting (string)
Thiago Santos's avatar
Thiago Santos committed
1026 1027 1028
 */
#define GST_TAG_SHOW_SORTNAME                     "show-sortname"
/**
Thiago Santos's avatar
Thiago Santos committed
1029
 * GST_TAG_SHOW_EPISODE_NUMBER:
Thiago Santos's avatar
Thiago Santos committed
1030
 *
1031
 * Number of the episode within a season/show (unsigned integer)
Thiago Santos's avatar
Thiago Santos committed
1032 1033 1034
 */
#define GST_TAG_SHOW_EPISODE_NUMBER               "show-episode-number"
/**
Thiago Santos's avatar
Thiago Santos committed
1035
 * GST_TAG_SHOW_SEASON_NUMBER:
Thiago Santos's avatar
Thiago Santos committed
1036
 *
1037
 * Number of the season of a show/series (unsigned integer)
Thiago Santos's avatar
Thiago Santos committed
1038 1039 1040
 */
#define GST_TAG_SHOW_SEASON_NUMBER                "show-season-number"
/**
Thiago Santos's avatar
Thiago Santos committed
1041
 * GST_TAG_LYRICS:
Thiago Santos's avatar
Thiago Santos committed
1042
 *
1043
 * The lyrics of the media (string)
Thiago Santos's avatar
Thiago Santos committed
1044 1045 1046
 */
#define GST_TAG_LYRICS                            "lyrics"
/**
Thiago Santos's avatar
Thiago Santos committed
1047
 * GST_TAG_COMPOSER_SORTNAME:
Thiago Santos's avatar
Thiago Santos committed
1048
 *
1049
 * The composer's name, used for sorting (string)
Thiago Santos's avatar
Thiago Santos committed
1050 1051 1052
 */
#define GST_TAG_COMPOSER_SORTNAME                 "composer-sortname"
/**
Thiago Santos's avatar
Thiago Santos committed
1053
 * GST_TAG_GROUPING:
Thiago Santos's avatar
Thiago Santos committed
1054 1055
 *
 * Groups together media that are related and spans multiple tracks. An
1056
 * example are multiple pieces of a concerto. (string)
Thiago Santos's avatar
Thiago Santos committed
1057 1058
 */
#define GST_TAG_GROUPING                          "grouping"
1059
/**
Thiago Santos's avatar
Thiago Santos committed
1060
 * GST_TAG_USER_RATING:
1061 1062 1063 1064 1065 1066
 *
 * Rating attributed by a person (likely the application user).
 * The higher the value, the more the user likes this media
 * (unsigned int from 0 to 100)
 */
#define GST_TAG_USER_RATING                       "user-rating"
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078
/**
 * GST_TAG_DEVICE_MANUFACTURER:
 *
 * Manufacturer of the device used to create the media (string)
 */
#define GST_TAG_DEVICE_MANUFACTURER               "device-manufacturer"
/**
 * GST_TAG_DEVICE_MODEL:
 *
 * Model of the device used to create the media (string)
 */
#define GST_TAG_DEVICE_MODEL                      "device-model"
1079 1080 1081 1082 1083 1084
/**
 * GST_TAG_APPLICATION_NAME:
 *
 * Name of the application used to create the media (string)
 */
#define GST_TAG_APPLICATION_NAME                  "application-name"
1085 1086 1087
/**
 * GST_TAG_APPLICATION_DATA:
 *
1088
 * Arbitrary application data (sample)
1089
 *
1090 1091
 * Some formats allow applications to add their own arbitrary data
 * into files. This data is application dependent.
1092 1093
 */
#define GST_TAG_APPLICATION_DATA          "application-data"
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117
/**
 * GST_TAG_IMAGE_ORIENTATION:
 *
 * Represents the 'Orientation' tag from EXIF. Defines how the image
 * should be rotated and mirrored for display. (string)
 *
 * This tag has a predefined set of allowed values:
 *   "rotate-0"
 *   "rotate-90"
 *   "rotate-180"
 *   "rotate-270"
 *   "flip-rotate-0"
 *   "flip-rotate-90"
 *   "flip-rotate-180"
 *   "flip-rotate-270"
 *
 * The naming is adopted according to a possible transformation to perform
 * on the image to fix its orientation, obviously equivalent operations will
 * yield the same result.
 *
 * Rotations indicated by the values are in clockwise direction and
 * 'flip' means an horizontal mirroring.
 */
#define GST_TAG_IMAGE_ORIENTATION            "image-orientation"
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134
/**
 * GST_TAG_PUBLISHER:
 *
 * Name of the label or publisher (string)
 *
 * Since: 1.2
 */
#define GST_TAG_PUBLISHER                         "publisher"
/**
 * GST_TAG_INTERPRETED_BY:
 *
 * Information about the people behind a remix and similar
 * interpretations of another existing piece (string)
 *
 * Since: 1.2
 */
#define GST_TAG_INTERPRETED_BY                    "interpreted-by"
1135 1136 1137 1138 1139 1140 1141
/**
 * GST_TAG_MIDI_BASE_NOTE:
 *
 * <ulink url="http://en.wikipedia.org/wiki/Note#Note_designation_in_accordance_with_octave_name">Midi note number</ulink>
 * of the audio track. This is useful for sample instruments and in particular
 * for multi-samples.
 *
1142
 * Since: 1.4
1143 1144
 */
#define GST_TAG_MIDI_BASE_NOTE                    "midi-base-note"
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161
/**
 * GST_TAG_PRIVATE_DATA:
 *
 * Any private data that may be contained in tags (sample).
 *
 * It is represented by #GstSample in which #GstBuffer contains the
 * binary data and the sample's info #GstStructure may contain any
 * extra information that identifies the origin or meaning of the data.
 *
 * Private frames in ID3v2 tags ('PRIV' frames) will be represented
 * using this tag, in which case the GstStructure will be named
 * "ID3PrivateFrame" and contain a field named "owner" of type string
 * which contains the owner-identification string from the tag.
 *
 * Since: 1.8
 */
#define GST_TAG_PRIVATE_DATA                         "private-data"
1162

1163 1164 1165 1166
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagList, gst_tag_list_unref)
#endif

Benjamin Otte's avatar
Benjamin Otte committed
1167
G_END_DECLS
1168

1169
#endif /* __GST_TAGLIST_H__ */