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

bool CVideoDevice::SetBrightness ( int  val  ) 

Set brightness in device.

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

Definition at line 1114 of file VideoDevice.cc.

   if (CamFD < 0)
     return FALSE;

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

Generated by  Doxygen 1.6.0   Back to index