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
#ifndef _MEDIASETTINGS_H_
20
#define _MEDIASETTINGS_H_
23
/* Settings the user has set for this file, and that we need to */
24
/* restore the video after a restart */
35
enum Denoise { NoDenoise = 0, DenoiseNormal = 1, DenoiseSoft = 2 };
37
enum Aspect { AspectAuto = 1, Aspect43 = 2, Aspect169 = 3, Aspect235 = 4,
38
Aspect149 = 8, Aspect1610 = 9, Aspect54 = 10 };
40
enum Aspect { AspectAuto = 1, Aspect43 = 2, Aspect169 = 3, Aspect235 = 4,
41
Aspect43Letterbox = 5, Aspect43Panscan = 6,
42
Aspect43To169 = 7, Aspect149 = 8, Aspect1610 = 9,
43
Aspect54 = 10, Aspect169Letterbox = 11 };
44
enum LetterboxType { NoLetterbox = 0, Letterbox_43 = 1, Letterbox_169 = 2 };
46
enum Deinterlace { NoDeinterlace = 0, L5 = 1, Yadif = 2, LB = 3,
47
Yadif_1 = 4, Kerndeint = 5 };
48
enum AudioChannels { ChDefault = 0, ChStereo = 2, ChSurround = 4,
50
enum StereoMode { Stereo = 0, Left = 1, Right = 2 };
52
enum Rotate { NoRotate = -1, Clockwise_flip = 0, Clockwise = 1,
53
Counterclockwise = 2, Counterclockwise_flip = 3 };
55
enum IDs { NoneSelected = -1000, SubNone = 90000 };
58
virtual ~MediaSettings();
68
int current_chapter_id;
78
int brightness, contrast, gamma, hue, saturation;
80
QString external_subtitles;
81
QString external_audio; // external audio file
86
// Subtitles position (0-100)
93
double speed; // Speed of playback: 1.0 = normal speed
95
int current_deinterlacer;
100
LetterboxType letterbox; // Force letterbox
101
QString panscan_filter;
102
QString crop_43to169_filter;
107
int current_denoiser;
111
bool postprocessing_filter;
112
bool upscaling_filter; //!< Software scaling
115
bool extrastereo_filter;
118
int audio_use_channels;
121
double panscan_factor; // mplayerwindow zoom
124
bool flip; //!< Flip image
126
// This a property of the video and it should be
127
// in mediadata, but we have to save it to preserve
128
// this data among restarts.
129
double starting_time; // Some videos don't start at 0
131
//! The codec of the video is ffh264 and it's high definition
135
QString forced_demuxer;
136
QString forced_video_codec;
137
QString forced_audio_codec;
139
// A copy of the original values, so we can restore them.
140
QString original_demuxer;
141
QString original_video_codec;
142
QString original_audio_codec;
144
// Options to mplayer (for this file only)
145
QString mplayer_additional_options;
146
QString mplayer_additional_video_filters;
147
QString mplayer_additional_audio_filters;
149
// Some things that were before in mediadata
150
// They can vary, because of filters, so better here
152
//Resolution used by mplayer
153
//Can be bigger that video resolution
154
//because of the aspect ratio or expand filter
162
#ifndef NO_USE_INI_FILES
163
void save(QSettings * set);
164
void load(QSettings * set);