[Mplayer-cvslog] CVS: main/vidix/drivers mga_vid.c,1.10,1.11
Nick Kurshev
nick at mplayer.dev.hu
Wed Jan 23 17:55:28 CET 2002
Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv21885/main/vidix/drivers
Modified Files:
mga_vid.c
Log Message:
intense -> intensity + capability extension
Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mga_vid.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- mga_vid.c 20 Jan 2002 13:11:23 -0000 1.10
+++ mga_vid.c 23 Jan 2002 16:55:26 -0000 1.11
@@ -1441,12 +1441,17 @@
}
#ifdef MGA_EQUALIZER
-static vidix_video_eq_t equal = { 0, 0, 0, 0, 0, 0, 0, 0 };
+static vidix_video_eq_t equal =
+{
+ VEQ_CAP_BRIGHTNESS | VEQ_CAP_CONTRAST,
+ 0, 0, 0, 0, 0, 0, 0, 0 };
int vixPlaybackSetEq( const vidix_video_eq_t * eq)
{
uint32_t beslumactl;
int brightness,contrast;
- memcpy(&equal,eq,sizeof(vidix_video_eq_t));
+ if(eq->cap & VEQ_CAP_BRIGHTNESS) equal.brightness = eq->brightness;
+ if(eq->cap & VEQ_CAP_CONTRAST) equal.contrast = eq->contrast;
+ equal.flags = eq->flags;
//Enable contrast and brightness control
writel(readl(mga_mmio_base + BESGLOBCTL) & ~((1<<5) + (1<<7)),mga_mmio_base + BESGLOBCTL);
brightness = (equal.brightness * 128) / 1000;
@@ -1460,7 +1465,8 @@
if (is_g400)
writel(beslumactl,mga_mmio_base + BESLUMACTL);
else
- printf("[mga] equalizer isn't supported with G200\n");
+ if (mga_verbose > 1)
+ printf("[mga] equalizer isn't supported with G200\n");
return 0;
}
More information about the MPlayer-cvslog
mailing list