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

bool CVideoDevice::SetContrast ( int  val  ) 

Set contrast in device.

val An integer in the range 0-65535.
FALSE if the device is closed or the call failed.
The value returned by GetContrast may be slightly different from what is set with SetContrast.

Definition at line 1144 of file VideoDevice.cc.

   if (CamFD < 0)
     return FALSE;

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

Generated by  Doxygen 1.6.0   Back to index