summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_vidix.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-10-23 15:17:06 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-10-23 15:17:06 +0000
commit7b65c8b1b967474c2dd6b852fbcefc1e6bcd7240 (patch)
tree2ed3efcbd70780554538f0c696d96ae17e2393d6 /src/video_out/video_out_vidix.c
parent558b00644651500abb40a7f4d73854312b571343 (diff)
downloadxine-lib-7b65c8b1b967474c2dd6b852fbcefc1e6bcd7240.tar.gz
xine-lib-7b65c8b1b967474c2dd6b852fbcefc1e6bcd7240.tar.bz2
cleanup in video_out.h
* some obsolete VO_CAP_* constants removed * VO_ZOOM_* constants replaced by their XINE_VO_ZOOM_* equivalents from xine.h * moved some bits around * proc_frame() needs only one parameter: the frame * renamed copy_called to proc_called * changed logic in video_out.c to call proc_* functions a bit (call proc_frame() first, then call proc_slice() if proc_frame() has not set proc_called, this allows video out plugins to have both hooks called) CVS patchset: 5576 CVS date: 2003/10/23 15:17:06
Diffstat (limited to 'src/video_out/video_out_vidix.c')
-rw-r--r--src/video_out/video_out_vidix.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/src/video_out/video_out_vidix.c b/src/video_out/video_out_vidix.c
index 356d5278b..fe422b823 100644
--- a/src/video_out/video_out_vidix.c
+++ b/src/video_out/video_out_vidix.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_vidix.c,v 1.48 2003/10/22 20:38:10 komadori Exp $
+ * $Id: video_out_vidix.c,v 1.49 2003/10/23 15:17:07 mroi Exp $
*
* video_out_vidix.c
*
@@ -692,14 +692,14 @@ static int vidix_set_property (vo_driver_t *this_gen,
}
if ( property == VO_PROP_ZOOM_X ) {
- this->sc.zoom_factor_x = (double)value / (double)VO_ZOOM_STEP;
+ this->sc.zoom_factor_x = (double)value / (double)XINE_VO_ZOOM_STEP;
vidix_compute_ideal_size (this);
this->sc.force_redraw = 1;
}
if ( property == VO_PROP_ZOOM_Y ) {
- this->sc.zoom_factor_y = (double)value / (double)VO_ZOOM_STEP;
+ this->sc.zoom_factor_y = (double)value / (double)XINE_VO_ZOOM_STEP;
vidix_compute_ideal_size (this);
this->sc.force_redraw = 1;
@@ -906,32 +906,24 @@ static vidix_driver_t *open_plugin (video_driver_class_t *class_gen) {
printf("video_out_vidix: couldn't get equalizer capabilities: %s\n", strerror(err));
} else {
if(this->vidix_eq.cap & VEQ_CAP_BRIGHTNESS) {
- this->capabilities |= VO_CAP_BRIGHTNESS;
-
this->props[VO_PROP_BRIGHTNESS].value = 0;
this->props[VO_PROP_BRIGHTNESS].min = -1000;
this->props[VO_PROP_BRIGHTNESS].max = 1000;
}
if(this->vidix_eq.cap & VEQ_CAP_CONTRAST) {
- this->capabilities |= VO_CAP_CONTRAST;
-
this->props[VO_PROP_CONTRAST].value = 0;
this->props[VO_PROP_CONTRAST].min = -1000;
this->props[VO_PROP_CONTRAST].max = 1000;
}
if(this->vidix_eq.cap & VEQ_CAP_SATURATION) {
- this->capabilities |= VO_CAP_SATURATION;
-
this->props[VO_PROP_SATURATION].value = 0;
this->props[VO_PROP_SATURATION].min = -1000;
this->props[VO_PROP_SATURATION].max = 1000;
}
if(this->vidix_eq.cap & VEQ_CAP_HUE) {
- this->capabilities |= VO_CAP_HUE;
-
this->props[VO_PROP_HUE].value = 0;
this->props[VO_PROP_HUE].min = -1000;
this->props[VO_PROP_HUE].max = 1000;
@@ -972,12 +964,12 @@ static vidix_driver_t *open_plugin (video_driver_class_t *class_gen) {
this->props[VO_PROP_ASPECT_RATIO].max = XINE_VO_ASPECT_NUM_RATIOS;
this->props[VO_PROP_ZOOM_X].value = 100;
- this->props[VO_PROP_ZOOM_X].min = VO_ZOOM_MIN;
- this->props[VO_PROP_ZOOM_X].max = VO_ZOOM_MAX;
+ this->props[VO_PROP_ZOOM_X].min = XINE_VO_ZOOM_MIN;
+ this->props[VO_PROP_ZOOM_X].max = XINE_VO_ZOOM_MAX;
this->props[VO_PROP_ZOOM_Y].value = 100;
- this->props[VO_PROP_ZOOM_Y].min = VO_ZOOM_MIN;
- this->props[VO_PROP_ZOOM_Y].max = VO_ZOOM_MAX;
+ this->props[VO_PROP_ZOOM_Y].min = XINE_VO_ZOOM_MIN;
+ this->props[VO_PROP_ZOOM_Y].max = XINE_VO_ZOOM_MAX;
this->vo_driver.get_capabilities = vidix_get_capabilities;
this->vo_driver.alloc_frame = vidix_alloc_frame;
@@ -1097,7 +1089,6 @@ static vo_driver_t *vidix_open_plugin (video_driver_class_t *class_gen, const vo
/* We'll assume all drivers support colour keying (which they do
at the moment) */
- this->capabilities |= VO_CAP_COLORKEY;
this->vidix_grkey.ckey.op = CKEY_TRUE;
/* Colour key components */