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

BOOL PVideoInputDevice_V4L::SetWhiteness ( unsigned  newWhiteness ) [virtual]

Set whiteness of the image. 0xffff-Very white.

Reimplemented from PVideoDevice.

Definition at line 1380 of file vidinput_v4l.cxx.

References IsOpen().

{ 
  if (!IsOpen())
    return FALSE;

  struct video_picture vp;

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

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

  frameWhiteness = newWhiteness;
  return TRUE;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index