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

bool CVideoDevice::SetWhiteness ( int  val  ) 

Set gamma value in device.

val An integer in the range 0-65535.
FALSE if the device is closed or the call failed.
Whiteness is sometimes used as brightness, but usually this sets the gamma correction the device will apply to the image.

The value returned by GetWhiteness may be slightly different from what is set with SetWhiteness.

Definition at line 1250 of file VideoDevice.cc.

   if (CamFD < 0)
     return FALSE;

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

Generated by  Doxygen 1.6.0   Back to index