1 diff -u -r1.24 trident_video.c
2 --- XFree86-4.2.0/xc/programs/Xserver/hw/xfree86/drivers/trident/trident_video.c 2002/04/01 12:06:20 1.24
3 +++ XFree86-4.2.0/xc/programs/Xserver/hw/xfree86/drivers/trident/trident_video.c 2002/04/03 22:47:27
5 static int TRIDENTQueryImageAttributes(ScrnInfoPtr,
6 int, unsigned short *, unsigned short *, int *, int *);
7 static void TRIDENTVideoTimerCallback(ScrnInfoPtr pScrn, Time time);
9 static void tridentSetVideoGamma(TRIDENTPtr pTrident,int value,int brightness);
11 static void tridentSetVideoContrast(TRIDENTPtr pTrident,int value);
12 static void tridentSetVideoParameters(TRIDENTPtr pTrident, int brightness,
13 int saturation, int hue);
19 tridentSetVideoGamma(pTrident,pPriv->Gamma,pPriv->Brightness);
21 tridentSetVideoContrast(pTrident,pPriv->Contrast);
22 tridentSetVideoParameters(pTrident,pPriv->Brightness,pPriv->Saturation,
25 pPriv->Brightness = 45;
26 pPriv->Saturation = 80;
32 pPriv->videoStatus = 0;
33 pPriv->fixFrame = 100;
35 xvBrightness = MAKE_ATOM("XV_BRIGHTNESS");
36 xvSaturation = MAKE_ATOM("XV_SATURATION");
37 xvHUE = MAKE_ATOM("XV_HUE");
39 xvGamma = MAKE_ATOM("XV_GAMMA");
41 xvContrast = MAKE_ATOM("XV_CONTRAST");
46 tridentSetVideoParameters(pTrident, pPriv->Brightness, pPriv->Saturation,
49 tridentSetVideoGamma(pTrident,pPriv->Gamma,pPriv->Brightness);
50 } else if (attribute == xvGamma) {
51 if ((value < -128) || (value > 127))
54 tridentSetVideoGamma(pTrident,value,pPriv->Brightness);
56 } else if (attribute == xvContrast) {
57 if ((value < 0) || (value > 127))
60 *value = pPriv->Saturation;
61 } else if (attribute == xvHUE) {
64 } else if (attribute == xvGamma) {
65 *value = pPriv->Gamma;
67 } else if (attribute == xvContrast) {
68 *value = pPriv->Contrast;