1
/* smplayer, GUI front-end for mplayer.
2
Copyright (C) 2007 Ricardo Villalba <rvm@escomposlinux.org>
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.
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.
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
19
#include "mediadata.h"
20
#include <qsettings.h>
21
#include <qfileinfo.h>
25
MediaData::MediaData() {
29
MediaData::~MediaData() {
32
void MediaData::reset() {
40
// Some defaults in case file is only audio...
47
video_aspect= (double) 4/3;
52
#if SUBTITLES_BY_INDEX
90
QString MediaData::displayName() {
91
QFileInfo fi(filename);
93
return fi.fileName(); // filename without path
99
void MediaData::list() {
100
qDebug("MediaData::list");
102
qDebug(" filename: '%s'", filename.utf8().data());
103
qDebug(" duration: %f", duration);
105
qDebug(" video_width: %d", video_width);
106
qDebug(" video_height: %d", video_height);
107
qDebug(" video_aspect: %f", video_aspect);
109
qDebug(" type: %d", type);
110
qDebug(" novideo: %d", novideo);
111
qDebug(" dvd_id: '%s'", dvd_id.utf8().data());
113
qDebug(" initialized: %d", initialized);
115
qDebug(" mkv_chapters: %d", mkv_chapters);
118
#if SUBTITLES_BY_INDEX
130
//qDebug(" chapters: %d", chapters);
131
//qDebug(" angles: %d", angles);
133
qDebug(" demuxer: '%s'", demuxer.utf8().data() );
134
qDebug(" video_format: '%s'", video_format.utf8().data() );
135
qDebug(" audio_format: '%s'", audio_format.utf8().data() );
136
qDebug(" video_bitrate: %d", video_bitrate );
137
qDebug(" video_fps: '%s'", video_fps.utf8().data() );
138
qDebug(" audio_bitrate: %d", audio_bitrate );
139
qDebug(" audio_rate: %d", audio_rate );
140
qDebug(" audio_nch: %d", audio_nch );
141
qDebug(" video_codec: '%s'", video_codec.utf8().data() );
142
qDebug(" audio_codec: '%s'", audio_codec.utf8().data() );