3
* Ekiga -- A VoIP and Video-Conferencing application
4
* Copyright (C) 2000-2007 Damien Sandras
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or (at
9
* your option) any later version. This program is distributed in the hope
10
* that it will be useful, but WITHOUT ANY WARRANTY; without even the
11
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
* See the GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18
* Ekiga is licensed under the GPL license and as a special exception, you
19
* have permission to link or otherwise combine this program with the
20
* programs OPAL, OpenH323 and PWLIB, and distribute the combination, without
21
* applying the requirements of the GNU GPL to the OPAL, OpenH323 and PWLIB
22
* programs, as long as you do follow the requirements of the GNU GPL for all
23
* the rest of the software thus combined.
28
* videooutput-info.h - description
29
* ------------------------------------------
30
* begin : written in 2007 by Matthias Schneider
31
* copyright : (c) 2007 by Matthias Schneider
32
* description : Declaration of structs and classes used for communication
33
* with the VideoOutputManagers
37
#ifndef __VIDEOOUTPUT_INFO_H__
38
#define __VIDEOOUTPUT_INFO_H__
70
/* Toggle operations for Fullscreen */
76
} VideoOutputFSToggle;
78
/* Video Acceleration Status */
87
enum VideoOutputErrorCodes {
108
widget_info_set = false;
119
config_info_set = false;
121
disable_hw_accel = false;
122
allow_pip_sw_scaling = true;
123
sw_scaling_algorithm = 0;
125
mode = VO_MODE_UNSET;
129
void operator= ( const DisplayInfo& rhs) {
131
if (rhs.widget_info_set) {
132
widget_info_set = rhs.widget_info_set;
140
xdisplay = rhs.xdisplay;
144
if (rhs.config_info_set) {
145
config_info_set = rhs.config_info_set;
147
disable_hw_accel = rhs.disable_hw_accel;
148
allow_pip_sw_scaling = rhs.allow_pip_sw_scaling;
149
sw_scaling_algorithm = rhs.sw_scaling_algorithm;
151
if (rhs.mode != VO_MODE_UNSET) mode = rhs.mode;
152
if (rhs.zoom != 0) zoom = rhs.zoom;
155
bool widget_info_set;
167
bool config_info_set;
169
bool disable_hw_accel;
170
bool allow_pip_sw_scaling;
171
unsigned int sw_scaling_algorithm;
173
VideoOutputMode mode;