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

BOOL PVideoInputDevice_V4L::SetContrast ( unsigned  newContrast ) [virtual]

Set contrast of the image. 0xffff-High contrast.

Reimplemented from PVideoDevice.

Definition at line 1563 of file vidinput_v4l.cxx.

References IsOpen().

{ 
  if (!IsOpen())
    return FALSE;

  struct video_picture vp;

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

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

  frameContrast = newContrast;
  return TRUE;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index