Logo Search packages:      
Sourcecode: camstream version File versions  Download package

bool CVideoDevice::SetColour ( int  val  ) 

Set colour saturation in device.

Parameters:
val An integer in the range 0-65535.
Returns:
FALSE if the device is closed or the call failed.
Colour saturation sets how bright colours should appear. A saturation of 0 yields grayscale images.

The value returned by GetColour may be slightly different from what is set with SetColour.

Definition at line 1214 of file VideoDevice.cc.

{
   if (CamFD < 0)
     return FALSE;

   VPic.colour = val & 0xffff;
   if (ioctl(CamFD, VIDIOCSPICT, &VPic) < 0)
     return FALSE;
   return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index