Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
178644a5
Commit
178644a5
authored
May 05, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge Kate metadata into vorbis.h
parent
181284d5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
109 deletions
+40
-109
modules/demux/Modules.am
modules/demux/Modules.am
+1
-2
modules/demux/kate_categories.c
modules/demux/kate_categories.c
+0
-76
modules/demux/kate_categories.h
modules/demux/kate_categories.h
+0
-30
modules/demux/ogg.c
modules/demux/ogg.c
+0
-1
modules/demux/vorbis.h
modules/demux/vorbis.h
+39
-0
No files found.
modules/demux/Modules.am
View file @
178644a5
SOURCES_flacsys = flac.c
SOURCES_ogg = ogg.c ogg.h oggseek.c oggseek.h vorbis.h kate_categories.c \
kate_categories.h xiph.h
SOURCES_ogg = ogg.c ogg.h oggseek.c oggseek.h vorbis.h xiph.h
SOURCES_demuxdump = demuxdump.c
SOURCES_rawdv = rawdv.c rawdv.h
SOURCES_rawvid = rawvid.c
...
...
modules/demux/kate_categories.c
deleted
100644 → 0
View file @
181284d5
/*****************************************************************************
* kate_categories.c : maps well known category tags to translated strings.
*****************************************************************************
* Copyright (C) 2009 ogg.k.ogg.k@googlemail.com
* $Id$
*
* Authors: ogg.k.ogg.k@googlemail.com
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stddef.h>
#include <string.h>
#include "kate_categories.h"
static
const
struct
{
const
char
*
psz_tag
;
const
char
*
psz_i18n
;
}
Katei18nCategories
[]
=
{
/* From Silvia's Mozilla list */
{
"CC"
,
N_
(
"Closed captions"
)
},
{
"SUB"
,
N_
(
"Subtitles"
)
},
{
"TAD"
,
N_
(
"Textual audio descriptions"
)
},
{
"KTV"
,
N_
(
"Karaoke"
)
},
{
"TIK"
,
N_
(
"Ticker text"
)
},
{
"AR"
,
N_
(
"Active regions"
)
},
{
"NB"
,
N_
(
"Semantic annotations"
)
},
{
"META"
,
N_
(
"Metadata"
)
},
{
"TRX"
,
N_
(
"Transcript"
)
},
{
"LRC"
,
N_
(
"Lyrics"
)
},
{
"LIN"
,
N_
(
"Linguistic markup"
)
},
{
"CUE"
,
N_
(
"Cue points"
)
},
/* Grandfathered */
{
"subtitles"
,
N_
(
"Subtitles"
)
},
{
"spu-subtitles"
,
N_
(
"Subtitles (images)"
)
},
{
"lyrics"
,
N_
(
"Lyrics"
)
},
/* Kate specific */
{
"K-SPU"
,
N_
(
"Subtitles (images)"
)
},
{
"K-SLD-T"
,
N_
(
"Slides (text)"
)
},
{
"K-SLD-I"
,
N_
(
"Slides (images)"
)
},
};
const
char
*
FindKateCategoryName
(
const
char
*
psz_tag
)
{
size_t
i
;
for
(
i
=
0
;
i
<
sizeof
(
Katei18nCategories
)
/
sizeof
(
Katei18nCategories
[
0
]);
i
++
)
{
if
(
!
strcmp
(
psz_tag
,
Katei18nCategories
[
i
].
psz_tag
)
)
return
Katei18nCategories
[
i
].
psz_i18n
;
}
return
N_
(
"Unknown category"
);
}
modules/demux/kate_categories.h
deleted
100644 → 0
View file @
181284d5
/*****************************************************************************
* kate_categories.h : maps well known category tags to translated strings.
*****************************************************************************
* Copyright (C) 2009 ogg.k.ogg.k@googlemail.com
* $Id$
*
* Authors: ogg.k.ogg.k@googlemail.com
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef KATE_CATEGORIES_H_
#define KATE_CATEGORIES_H_ 1
const
char
*
FindKateCategoryName
(
const
char
*
psz_tag
);
#endif
modules/demux/ogg.c
View file @
178644a5
...
...
@@ -41,7 +41,6 @@
#include <vlc_bits.h>
#include "xiph.h"
#include "vorbis.h"
#include "kate_categories.h"
#include "ogg.h"
#include "oggseek.h"
...
...
modules/demux/vorbis.h
View file @
178644a5
...
...
@@ -266,3 +266,42 @@ static inline void vorbis_ParseComment( vlc_meta_t **pp_meta,
#undef RM
}
static
const
struct
{
const
char
*
psz_tag
;
const
char
*
psz_i18n
;
}
Katei18nCategories
[]
=
{
/* From Silvia's Mozilla list */
{
"CC"
,
N_
(
"Closed captions"
)
},
{
"SUB"
,
N_
(
"Subtitles"
)
},
{
"TAD"
,
N_
(
"Textual audio descriptions"
)
},
{
"KTV"
,
N_
(
"Karaoke"
)
},
{
"TIK"
,
N_
(
"Ticker text"
)
},
{
"AR"
,
N_
(
"Active regions"
)
},
{
"NB"
,
N_
(
"Semantic annotations"
)
},
{
"META"
,
N_
(
"Metadata"
)
},
{
"TRX"
,
N_
(
"Transcript"
)
},
{
"LRC"
,
N_
(
"Lyrics"
)
},
{
"LIN"
,
N_
(
"Linguistic markup"
)
},
{
"CUE"
,
N_
(
"Cue points"
)
},
/* Grandfathered */
{
"subtitles"
,
N_
(
"Subtitles"
)
},
{
"spu-subtitles"
,
N_
(
"Subtitles (images)"
)
},
{
"lyrics"
,
N_
(
"Lyrics"
)
},
/* Kate specific */
{
"K-SPU"
,
N_
(
"Subtitles (images)"
)
},
{
"K-SLD-T"
,
N_
(
"Slides (text)"
)
},
{
"K-SLD-I"
,
N_
(
"Slides (images)"
)
},
};
const
char
*
FindKateCategoryName
(
const
char
*
psz_tag
)
{
for
(
size_t
i
=
0
;
i
<
sizeof
(
Katei18nCategories
)
/
sizeof
(
Katei18nCategories
[
0
]);
i
++
)
{
if
(
!
strcmp
(
psz_tag
,
Katei18nCategories
[
i
].
psz_tag
)
)
return
Katei18nCategories
[
i
].
psz_i18n
;
}
return
N_
(
"Unknown category"
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment