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

BOOL PVideoInputDevice_V4L::SetHue ( unsigned  newHue ) [virtual]

Set hue of the image. 0xffff-High hue.

Reimplemented from PVideoDevice.

Definition at line 1581 of file vidinput_v4l.cxx.

References IsOpen().

  if (!IsOpen())
    return FALSE;

  struct video_picture vp;

  if (::ioctl(videoFd, VIDIOCGPICT, &vp) < 0)
    return FALSE;

  vp.hue = newHue;
  if (::ioctl(videoFd, VIDIOCSPICT, &vp) < 0)
    return FALSE;

  return TRUE;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index