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

int PVideoInputDevice_V4L::GetColour (  ) [virtual]

Get the colour of the image. 0xffff-lots of colour. -1 is unknown.

Reimplemented from PVideoDevice.

Definition at line 1467 of file vidinput_v4l.cxx.

References IsOpen().

{ 
  if (!IsOpen())
    return -1;

  struct video_picture vp;

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

  return frameColour; 
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index