2 * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 #ifndef __GST_TAG_TAG_H__
22 #define __GST_TAG_TAG_H__
29 /* functions for vorbis comment manipulation */
31 G_CONST_RETURN gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag);
32 G_CONST_RETURN gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag);
33 void gst_vorbis_tag_add (GstTagList * list,
37 GList * gst_tag_to_vorbis_comments (const GstTagList * list,
40 /* functions to convert GstBuffers with vorbiscomment contents to GstTagLists and back */
41 GstTagList * gst_tag_list_from_vorbiscomment_buffer (const GstBuffer * buffer,
42 const guint8 * id_data,
43 const guint id_data_length,
44 gchar ** vendor_string);
45 GstBuffer * gst_tag_list_to_vorbiscomment_buffer (const GstTagList * list,
46 const guint8 * id_data,
47 const guint id_data_length,
48 const gchar * vendor_string);
50 /* functions for ID3 tag manipulation */
52 guint gst_tag_id3_genre_count (void);
53 G_CONST_RETURN gchar * gst_tag_id3_genre_get (const guint id);
54 GstTagList * gst_tag_list_new_from_id3v1 (const guint8 * data);
56 G_CONST_RETURN gchar * gst_tag_from_id3_tag (const gchar * vorbis_tag);
57 G_CONST_RETURN gchar * gst_tag_to_id3_tag (const gchar * gst_tag);
62 #endif /* __GST_TAG_TAG_H__ */