DOCS/man/zh_CN: sync with en/mplayer.1 rev. 32661
[mplayer/glamo.git] / metadata.h
blob06c3822d81177026b734a32ea061531ce951943b
1 /*
2 * set of helper routines for stream metadata and properties retrieval
4 * Copyright (C) 2006 Benjamin Zores
6 * This file is part of MPlayer.
8 * MPlayer is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * MPlayer is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef MPLAYER_METADATA_H
24 #define MPLAYER_METADATA_H
26 typedef enum metadata_s metadata_t;
27 enum metadata_s {
28 /* common info */
29 META_NAME = 0,
31 /* video stream properties */
32 META_VIDEO_CODEC,
33 META_VIDEO_BITRATE,
34 META_VIDEO_RESOLUTION,
36 /* audio stream properties */
37 META_AUDIO_CODEC,
38 META_AUDIO_BITRATE,
39 META_AUDIO_SAMPLES,
41 /* ID3 tags and other stream infos */
42 META_INFO_TITLE,
43 META_INFO_ARTIST,
44 META_INFO_ALBUM,
45 META_INFO_YEAR,
46 META_INFO_COMMENT,
47 META_INFO_TRACK,
48 META_INFO_GENRE
51 struct MPContext;
53 char *get_metadata(struct MPContext *mpctx, metadata_t type);
55 #endif /* MPLAYER_METADATA_H */