qt: playlist: use item title if available
[vlc.git] / modules / demux / xiph_metadata.h
blob3f47300154061109ec31cd2ca993fd8b948b53f1
1 /*****************************************************************************
2 * xiph_metadata.h: Vorbis Comment parser
3 *****************************************************************************
4 * Copyright © 2008-2013 VLC authors and VideoLAN
6 * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
7 * Jean-Baptiste Kempf <jb@videolan.org>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #include <vlc_charset.h>
25 #include <vlc_strings.h>
27 # ifdef __cplusplus
28 extern "C" {
29 # endif
31 input_attachment_t* ParseFlacPicture( const uint8_t *p_data, size_t i_data,
32 int i_attachments, int *i_cover_score, int *i_cover_idx );
34 void vorbis_ParseComment( es_format_t *p_fmt, vlc_meta_t **pp_meta,
35 const uint8_t *p_data, size_t i_data,
36 int *i_attachments, input_attachment_t ***attachments,
37 int *i_cover_score, int *i_cover_idx,
38 int *i_seekpoint, seekpoint_t ***ppp_seekpoint,
39 float (* ppf_replay_gain)[AUDIO_REPLAY_GAIN_MAX],
40 float (* ppf_replay_peak)[AUDIO_REPLAY_GAIN_MAX] );
42 static const struct {
43 const char *psz_tag;
44 const char *psz_i18n;
45 } Katei18nCategories[] = {
46 /* From Silvia's Mozilla list */
47 { "CC", N_("Closed captions") },
48 { "SUB", N_("Subtitles") },
49 { "TAD", N_("Textual audio descriptions") },
50 { "KTV", N_("Karaoke") },
51 { "TIK", N_("Ticker text") },
52 { "AR", N_("Active regions") },
53 { "NB", N_("Semantic annotations") },
54 { "META", N_("Metadata") },
55 { "TRX", N_("Transcript") },
56 { "LRC", N_("Lyrics") },
57 { "LIN", N_("Linguistic markup") },
58 { "CUE", N_("Cue points") },
60 /* Grandfathered */
61 { "subtitles", N_("Subtitles") },
62 { "spu-subtitles", N_("Subtitles (images)") },
63 { "lyrics", N_("Lyrics") },
65 /* Kate specific */
66 { "K-SPU", N_("Subtitles (images)") },
67 { "K-SLD-T", N_("Slides (text)") },
68 { "K-SLD-I", N_("Slides (images)") },
71 const char *FindKateCategoryName( const char *psz_tag );
73 # ifdef __cplusplus
75 # endif