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

bool CVideoDevice::SetHue ( int  val  ) 

Set hue in device.

val An integer in the range 0-65535.
FALSE if the device is closed or the call failed.
Hue is a way to correct for colour deviations. The value returned by GetHue may be slightly different from what is set with SetHue.

Definition at line 1178 of file VideoDevice.cc.

   if (CamFD < 0)
     return FALSE;

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

Generated by  Doxygen 1.6.0   Back to index