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

BOOL PVideoInputDevice_V4L::SetBrightness ( unsigned  newBrightness ) [virtual]

Set brightness of the image. 0xffff-Very bright.

Reimplemented from PVideoDevice.

Definition at line 1511 of file vidinput_v4l.cxx.

References IsOpen().

  if (!IsOpen())
    return FALSE;

  struct video_picture vp;

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

  vp.brightness = newBrightness;
  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