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

int PVideoInputDevice_V4L::GetBrightness (  ) [virtual]

Get the brightness of the image. 0xffff-Very bright. -1 is unknown.

Reimplemented from PVideoDevice.

Definition at line 1290 of file vidinput_v4l.cxx.

References IsOpen().

  if (!IsOpen())
    return -1;

  struct video_picture vp;

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

  return frameBrightness; 

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index