Mercurial > mplayer.hg
annotate metadata.h @ 36963:e539d330c7be
Remove unnecessary bounds checks in Win32 GUI.
The checks that the rendered potmeter button
doesn't exceed the bounds is not necessary as
the item value is already limited within the
range of 0 to 100.
Patch by Hans-Dieter Kosch, hdkosch kabelbw de.
author | ib |
---|---|
date | Mon, 24 Mar 2014 12:52:01 +0000 |
parents | 32725ca88fed |
children |
rev | line source |
---|---|
19532
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
1 /* |
26743
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
2 * set of helper routines for stream metadata and properties retrieval |
19532
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
3 * |
26743
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
4 * Copyright (C) 2006 Benjamin Zores |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
5 * |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
6 * This file is part of MPlayer. |
19532
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
7 * |
26743
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
8 * MPlayer is free software; you can redistribute it and/or modify |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
11 * (at your option) any later version. |
19532
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
12 * |
26743
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
13 * MPlayer is distributed in the hope that it will be useful, |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
16 * GNU General Public License for more details. |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
17 * |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
18 * You should have received a copy of the GNU General Public License along |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
19 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
0f42fb42843c
Use standard license headers with standard formatting.
diego
parents:
26029
diff
changeset
|
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19532
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
21 */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
22 |
26029 | 23 #ifndef MPLAYER_METADATA_H |
24 #define MPLAYER_METADATA_H | |
19532
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
25 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
26 typedef enum metadata_s metadata_t; |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
27 enum metadata_s { |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
28 /* common info */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
29 META_NAME = 0, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
30 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
31 /* video stream properties */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
32 META_VIDEO_CODEC, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
33 META_VIDEO_BITRATE, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
34 META_VIDEO_RESOLUTION, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
35 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
36 /* audio stream properties */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
37 META_AUDIO_CODEC, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
38 META_AUDIO_BITRATE, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
39 META_AUDIO_SAMPLES, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
40 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
41 /* ID3 tags and other stream infos */ |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
42 META_INFO_TITLE, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
43 META_INFO_ARTIST, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
44 META_INFO_ALBUM, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
45 META_INFO_YEAR, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
46 META_INFO_COMMENT, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
47 META_INFO_TRACK, |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
48 META_INFO_GENRE |
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 |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
51 char *get_metadata (metadata_t type); |
13599373bb02
added new helpers to allow easy metadata retrieval and make libmenu use them
ben
parents:
diff
changeset
|
52 |
26029 | 53 #endif /* MPLAYER_METADATA_H */ |