source: smplayer/trunk/src/mediadata.h@ 128

Last change on this file since 128 was 128, checked in by Silvan Scherrer, 13 years ago

SMPlayer: trunk update to latest svn

  • Property svn:eol-style set to LF
File size: 2.4 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#ifndef _MEDIADATA_H_
20#define _MEDIADATA_H_
21
22/* Here we store some volatile info about the file we need to remember */
23
24#include "tracks.h"
25#include "subtracks.h"
26#include "titletracks.h"
27#include "chapters.h"
28#include "config.h"
29
30#include <QString>
31#include <QSettings>
32
33
34// Types of media
35
36#define TYPE_UNKNOWN -1
37#define TYPE_FILE 0
38#define TYPE_DVD 1
39#define TYPE_STREAM 2
40#define TYPE_VCD 3
41#define TYPE_AUDIO_CD 4
42#define TYPE_TV 5
43
44class MediaData {
45
46public:
47 MediaData();
48 virtual ~MediaData();
49
50 virtual void reset();
51
52 QString filename;
53 double duration;
54
55 //Resolution of the video
56 int video_width;
57 int video_height;
58 double video_aspect;
59
60 int type; // file, dvd...
61 QString dvd_id;
62
63 bool novideo; // Only audio
64
65 bool initialized;
66
67 void list();
68
69#if PROGRAM_SWITCH
70 Tracks programs;
71#endif
72 Tracks videos;
73 Tracks audios;
74 TitleTracks titles; // for DVDs
75
76 SubTracks subs;
77
78 Chapters chapters;
79
80 int n_chapters;
81
82 // Clip info
83 QString clip_name;
84 QString clip_artist;
85 QString clip_author;
86 QString clip_album;
87 QString clip_genre;
88 QString clip_date;
89 QString clip_track;
90 QString clip_copyright;
91 QString clip_comment;
92 QString clip_software;
93
94 QString stream_title;
95 QString stream_url;
96
97
98 // Other data not really useful for us,
99 // just to show info to the user.
100 QString demuxer;
101 QString video_format;
102 QString audio_format;
103 int video_bitrate;
104 QString video_fps;
105 int audio_bitrate;
106 int audio_rate;
107 int audio_nch; // channels?
108 QString video_codec;
109 QString audio_codec;
110
111 /*QString info();*/
112 QString displayName(bool show_tag = true);
113};
114
115#endif
Note: See TracBrowser for help on using the repository browser.