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

int PVideoInputDevice_V4L::GetNumChannels (  ) [virtual]

Get the number of video channels available on the device.

Default behaviour returns 1.

Reimplemented from PVideoDevice.

Definition at line 972 of file vidinput_v4l.cxx.

References IsOpen().

{
  /* If Opened, return the capability value, else 1 as in videoio.cxx */
  if (IsOpen ())
    return videoCapability.channels;
  else
    return 1;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index