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

BOOL PVideoInputDevice_V4L::SetColour ( unsigned  newColour ) [virtual]

Set colour of the image. 0xffff-lots of colour.

Reimplemented from PVideoDevice.

Definition at line 1546 of file vidinput_v4l.cxx.

References IsOpen().

  if (!IsOpen())
    return FALSE;

  struct video_picture vp;

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

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

  frameColour = newColour;
  return TRUE;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index