summaryrefslogtreecommitdiff
path: root/src/vdpauproperties.cpp
blob: 8d3d6a48e23aa4c3136c874df60bdd142f92045e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*  smplayer, GUI front-end for mplayer.
    Copyright (C) 2006-2018 Ricardo Villalba <rvm@users.sourceforge.net>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include "vdpauproperties.h"

VDPAUProperties::VDPAUProperties(QWidget * parent, Qt::WindowFlags f)
	: QDialog(parent, f) 
{
	setupUi(this);

	layout()->setSizeConstraint(QLayout::SetFixedSize);
}

VDPAUProperties::~VDPAUProperties() {
}

void VDPAUProperties::setffh264vdpau(bool b) {
	ffh264vdpau_check->setChecked(b);
}

void VDPAUProperties::setffmpeg12vdpau(bool b) {
	ffmpeg12vdpau_check->setChecked(b);
}

void VDPAUProperties::setffwmv3vdpau(bool b) {
	ffwmv3vdpau_check->setChecked(b);
}

void VDPAUProperties::setffvc1vdpau(bool b) {
	ffvc1vdpau_check->setChecked(b);
}

void VDPAUProperties::setffodivxvdpau(bool b) {
	ffodivxvdpau_check->setChecked(b);
}

void VDPAUProperties::setffhevcvdpau(bool b) {
	ffhevcvdpau_check->setChecked(b);
}

void VDPAUProperties::setDisableFilters(bool b) {
	disable_filters_check->setChecked(b);
}

bool VDPAUProperties::ffh264vdpau() {
	return ffh264vdpau_check->isChecked();
}

bool VDPAUProperties::ffmpeg12vdpau() {
	return ffmpeg12vdpau_check->isChecked();
}

bool VDPAUProperties::ffwmv3vdpau() {
	return ffwmv3vdpau_check->isChecked();
}

bool VDPAUProperties::ffvc1vdpau() {
	return ffvc1vdpau_check->isChecked();
}

bool VDPAUProperties::ffodivxvdpau() {
	return ffodivxvdpau_check->isChecked();
}

bool VDPAUProperties::ffhevcvdpau() {
	return ffhevcvdpau_check->isChecked();
}

bool VDPAUProperties::disableFilters() {
	return disable_filters_check->isChecked();
}

#include "moc_vdpauproperties.cpp"