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