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

int PVideoInputDevice_V4L::GetWhiteness (  ) [virtual]

Get the whiteness of the image. 0xffff-Very white. -1 is unknown.

Reimplemented from PVideoDevice.

Definition at line 1453 of file vidinput_v4l.cxx.

References IsOpen().

  if (!IsOpen())
    return -1;

  struct video_picture vp;

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

  return frameWhiteness;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index