1
/* smplayer, GUI front-end for mplayer.
2
Copyright (C) 2006-2008 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"
24
MediaData::MediaData() {
28
MediaData::~MediaData() {
31
void MediaData::reset() {
41
video_aspect= (double) 4/3;
83
QString MediaData::displayName() {
84
if (!clip_name.isEmpty()) return clip_name;
86
if (!stream_title.isEmpty()) return stream_title;
88
QFileInfo fi(filename);
90
return fi.fileName(); // filename without path
96
void MediaData::list() {
97
qDebug("MediaData::list");
99
qDebug(" filename: '%s'", filename.toUtf8().data());
100
qDebug(" duration: %f", duration);
102
qDebug(" video_width: %d", video_width);
103
qDebug(" video_height: %d", video_height);
104
qDebug(" video_aspect: %f", video_aspect);
106
qDebug(" type: %d", type);
107
qDebug(" novideo: %d", novideo);
108
qDebug(" dvd_id: '%s'", dvd_id.toUtf8().data());
110
qDebug(" initialized: %d", initialized);
112
qDebug(" mkv_chapters: %d", mkv_chapters);
123
//qDebug(" chapters: %d", chapters);
124
//qDebug(" angles: %d", angles);
126
qDebug(" demuxer: '%s'", demuxer.toUtf8().data() );
127
qDebug(" video_format: '%s'", video_format.toUtf8().data() );
128
qDebug(" audio_format: '%s'", audio_format.toUtf8().data() );
129
qDebug(" video_bitrate: %d", video_bitrate );
130
qDebug(" video_fps: '%s'", video_fps.toUtf8().data() );
131
qDebug(" audio_bitrate: %d", audio_bitrate );
132
qDebug(" audio_rate: %d", audio_rate );
133
qDebug(" audio_nch: %d", audio_nch );
134
qDebug(" video_codec: '%s'", video_codec.toUtf8().data() );
135
qDebug(" audio_codec: '%s'", audio_codec.toUtf8().data() );