Mercurial > mplayer.hg
annotate metadata.h @ 23510:a6c619ee9d30
Teletext support for tv:// (v4l and v4l2 only)
modified patch from Otvos Attila oattila at chello dot hu
Module uses zvbi library for all low-level VBI operations (like I/O with vbi
device, converting vbi pages into usefull vbi_page stuctures, rendering them
into RGB32 images).
All teletext related stuff (except properties, slave commands and rendering
osd in text mode or RGB32 rendered teletext pages in spu mode) is implemented
in tvi_vbi.c
New properties:
teletext_page - switching between pages
teletext_mode - switch between on/off/opaque/transparent modes
teletext_format - (currently read-only) allows to get format info
(black/white,gray,text)
teletext_half_page - trivial zooming (displaying top/bottom half of teletext
page)
New slave commands:
teletext_add_dec - user interface for jumping to any page by editing page number
interactively
teletext_go_link - goes though links, specified on current page
author | voroshil |
---|---|
date | Sun, 10 Jun 2007 00:06:12 +0000 |
parents | 13599373bb02 |
children | 3f0d00abc073 |
rev | line source |
---|---|
19532
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
1 /* |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
2 * Copyright (C) 2006 Benjamin Zores |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
3 * Set of helper routines for stream metadata and properties retrieval. |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
4 * |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
5 * This program is free software; you can redistribute it and/or modify |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
6 * it under the terms of the GNU General Public License as published by |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
7 * the Free Software Foundation; either version 2 of the License, or |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
8 * (at your option) any later version. |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
9 * |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
10 * This program is distributed in the hope that it will be useful, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
13 * GNU General Public License for more details. |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
14 * |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
16 * along with this program; if not, write to the Free Software Foundation, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
18 */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
19 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
20 #ifndef _METADATA_H_ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
21 #define _METADATA_H_ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
22 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
23 typedef enum metadata_s metadata_t; |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
24 enum metadata_s { |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
25 /* common info */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
26 META_NAME = 0, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
27 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
28 /* video stream properties */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
29 META_VIDEO_CODEC, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
30 META_VIDEO_BITRATE, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
31 META_VIDEO_RESOLUTION, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
32 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
33 /* audio stream properties */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
34 META_AUDIO_CODEC, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
35 META_AUDIO_BITRATE, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
36 META_AUDIO_SAMPLES, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
37 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
38 /* ID3 tags and other stream infos */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
39 META_INFO_TITLE, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
40 META_INFO_ARTIST, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
41 META_INFO_ALBUM, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
42 META_INFO_YEAR, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
43 META_INFO_COMMENT, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
44 META_INFO_TRACK, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
45 META_INFO_GENRE |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
46 }; |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
47 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
48 char *get_metadata (metadata_t type); |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
49 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
50 #endif /* _METADATA_H_ */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
51 |