remove useless casts
[mplayer/glamo.git] / metadata.h
blob5c0451b04cac04888ab66ffb19219353b815e212
1 /*
2 * Copyright (C) 2006 Benjamin Zores
3 * Set of helper routines for stream metadata and properties retrieval.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef METADATA_H
21 #define METADATA_H
23 typedef enum metadata_s metadata_t;
24 enum metadata_s {
25 /* common info */
26 META_NAME = 0,
28 /* video stream properties */
29 META_VIDEO_CODEC,
30 META_VIDEO_BITRATE,
31 META_VIDEO_RESOLUTION,
33 /* audio stream properties */
34 META_AUDIO_CODEC,
35 META_AUDIO_BITRATE,
36 META_AUDIO_SAMPLES,
38 /* ID3 tags and other stream infos */
39 META_INFO_TITLE,
40 META_INFO_ARTIST,
41 META_INFO_ALBUM,
42 META_INFO_YEAR,
43 META_INFO_COMMENT,
44 META_INFO_TRACK,
45 META_INFO_GENRE
48 char *get_metadata (metadata_t type);
50 #endif /* METADATA_H */