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

int PVideoInputDevice_V4L::GetHue (  ) [virtual]

Get the hue of the image. 0xffff-High hue. -1 is unknown.

Reimplemented from PVideoDevice.

Definition at line 1349 of file vidinput_v4l.cxx.

References IsOpen().

  if (!IsOpen())
    return -1;

  struct video_picture vp;

  if (::ioctl(videoFd, VIDIOCGPICT, &vp) < 0)
    return -1;
  frameHue = vp.hue;

  return frameHue; 

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index