source: smplayer/trunk/src/vdpauproperties.cpp@ 176

Last change on this file since 176 was 176, checked in by Silvan Scherrer, 9 years ago

smplayer: update trunk to version 16.4

File size: 2.1 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2016 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#include "vdpauproperties.h"
20
21VDPAUProperties::VDPAUProperties(QWidget * parent, Qt::WindowFlags f)
22 : QDialog(parent, f)
23{
24 setupUi(this);
25
26 layout()->setSizeConstraint(QLayout::SetFixedSize);
27}
28
29VDPAUProperties::~VDPAUProperties() {
30}
31
32void VDPAUProperties::setffh264vdpau(bool b) {
33 ffh264vdpau_check->setChecked(b);
34}
35
36void VDPAUProperties::setffmpeg12vdpau(bool b) {
37 ffmpeg12vdpau_check->setChecked(b);
38}
39
40void VDPAUProperties::setffwmv3vdpau(bool b) {
41 ffwmv3vdpau_check->setChecked(b);
42}
43
44void VDPAUProperties::setffvc1vdpau(bool b) {
45 ffvc1vdpau_check->setChecked(b);
46}
47
48void VDPAUProperties::setffodivxvdpau(bool b) {
49 ffodivxvdpau_check->setChecked(b);
50}
51
52void VDPAUProperties::setDisableFilters(bool b) {
53 disable_filters_check->setChecked(b);
54}
55
56bool VDPAUProperties::ffh264vdpau() {
57 return ffh264vdpau_check->isChecked();
58}
59
60bool VDPAUProperties::ffmpeg12vdpau() {
61 return ffmpeg12vdpau_check->isChecked();
62}
63
64bool VDPAUProperties::ffwmv3vdpau() {
65 return ffwmv3vdpau_check->isChecked();
66}
67
68bool VDPAUProperties::ffvc1vdpau() {
69 return ffvc1vdpau_check->isChecked();
70}
71
72bool VDPAUProperties::ffodivxvdpau() {
73 return ffodivxvdpau_check->isChecked();
74}
75
76bool VDPAUProperties::disableFilters() {
77 return disable_filters_check->isChecked();
78}
79
80#include "moc_vdpauproperties.cpp"
81
Note: See TracBrowser for help on using the repository browser.