1 /* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2021 Ricardo Villalba <ricardo@smplayer.info>
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
VDPAUProperties(QWidget * parent,Qt::WindowFlags f)21 VDPAUProperties::VDPAUProperties(QWidget * parent, Qt::WindowFlags f)
22 : QDialog(parent, f)
23 {
24 setupUi(this);
25
26 layout()->setSizeConstraint(QLayout::SetFixedSize);
27 }
28
~VDPAUProperties()29 VDPAUProperties::~VDPAUProperties() {
30 }
31
setffh264vdpau(bool b)32 void VDPAUProperties::setffh264vdpau(bool b) {
33 ffh264vdpau_check->setChecked(b);
34 }
35
setffmpeg12vdpau(bool b)36 void VDPAUProperties::setffmpeg12vdpau(bool b) {
37 ffmpeg12vdpau_check->setChecked(b);
38 }
39
setffwmv3vdpau(bool b)40 void VDPAUProperties::setffwmv3vdpau(bool b) {
41 ffwmv3vdpau_check->setChecked(b);
42 }
43
setffvc1vdpau(bool b)44 void VDPAUProperties::setffvc1vdpau(bool b) {
45 ffvc1vdpau_check->setChecked(b);
46 }
47
setffodivxvdpau(bool b)48 void VDPAUProperties::setffodivxvdpau(bool b) {
49 ffodivxvdpau_check->setChecked(b);
50 }
51
setffhevcvdpau(bool b)52 void VDPAUProperties::setffhevcvdpau(bool b) {
53 ffhevcvdpau_check->setChecked(b);
54 }
55
setDisableFilters(bool b)56 void VDPAUProperties::setDisableFilters(bool b) {
57 disable_filters_check->setChecked(b);
58 }
59
ffh264vdpau()60 bool VDPAUProperties::ffh264vdpau() {
61 return ffh264vdpau_check->isChecked();
62 }
63
ffmpeg12vdpau()64 bool VDPAUProperties::ffmpeg12vdpau() {
65 return ffmpeg12vdpau_check->isChecked();
66 }
67
ffwmv3vdpau()68 bool VDPAUProperties::ffwmv3vdpau() {
69 return ffwmv3vdpau_check->isChecked();
70 }
71
ffvc1vdpau()72 bool VDPAUProperties::ffvc1vdpau() {
73 return ffvc1vdpau_check->isChecked();
74 }
75
ffodivxvdpau()76 bool VDPAUProperties::ffodivxvdpau() {
77 return ffodivxvdpau_check->isChecked();
78 }
79
ffhevcvdpau()80 bool VDPAUProperties::ffhevcvdpau() {
81 return ffhevcvdpau_check->isChecked();
82 }
83
disableFilters()84 bool VDPAUProperties::disableFilters() {
85 return disable_filters_check->isChecked();
86 }
87
88 #include "moc_vdpauproperties.cpp"
89
90