~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/corelib/mediadata.h

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-03-31 23:05:43 UTC
  • mto: (1.1.9 upstream) (3.1.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090331230543-nsklbxenl2hf2n6h
ImportĀ upstreamĀ versionĀ 0.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  smplayer, GUI front-end for mplayer.
2
 
    Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
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
 
 
27
 
#include <QString>
28
 
#include <QSettings>
29
 
 
30
 
 
31
 
// Types of media
32
 
 
33
 
#define TYPE_UNKNOWN -1
34
 
#define TYPE_FILE 0
35
 
#define TYPE_DVD 1
36
 
#define TYPE_STREAM 2
37
 
#define TYPE_VCD 3
38
 
#define TYPE_AUDIO_CD 4
39
 
 
40
 
class MediaData {
41
 
 
42
 
public:
43
 
        MediaData();
44
 
        virtual ~MediaData();
45
 
 
46
 
        virtual void reset();
47
 
 
48
 
        QString filename;
49
 
        double duration;
50
 
 
51
 
        //Resolution of the video
52
 
        int video_width;
53
 
        int video_height;
54
 
        double video_aspect;
55
 
 
56
 
        int type; // file, dvd...
57
 
        QString dvd_id;
58
 
 
59
 
        bool novideo; // Only audio
60
 
 
61
 
        bool initialized;
62
 
 
63
 
        void list();
64
 
 
65
 
        TrackList audios;
66
 
        TrackList titles; // for DVDs
67
 
 
68
 
        SubTracks subs;
69
 
 
70
 
        //int chapters, angles; // for DVDs
71
 
 
72
 
        // Matroshka chapters
73
 
        int mkv_chapters;
74
 
 
75
 
        // Clip info
76
 
        QString clip_name;
77
 
        QString clip_artist;
78
 
        QString clip_author;
79
 
        QString clip_album;
80
 
        QString clip_genre;
81
 
        QString clip_date;
82
 
        QString clip_track;
83
 
        QString clip_copyright;
84
 
        QString clip_comment;
85
 
        QString clip_software;
86
 
 
87
 
        QString stream_title;
88
 
        QString stream_url;
89
 
 
90
 
 
91
 
        // Other data not really useful for us,
92
 
        // just to show info to the user.
93
 
        QString demuxer;
94
 
        QString video_format;
95
 
        QString audio_format;
96
 
        int video_bitrate;
97
 
        QString video_fps;
98
 
        int audio_bitrate;
99
 
        int audio_rate;
100
 
        int audio_nch; // channels?
101
 
        QString video_codec;
102
 
        QString audio_codec;
103
 
 
104
 
        /*QString info();*/
105
 
        QString displayName();
106
 
};
107
 
 
108
 
#endif