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