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

BOOL PVideoInputDevice_1394AVC::SetChannel ( int  channelNumber  )  [virtual]

Set the video channel to be used on the device. The channel number is an integer from 0 to GetNumChannels()-1. The special value of -1 will find the first working channel number.

Default behaviour sets the value of the channelNumber variable and then returns TRUE.

Parameters:
channelNumber  New channel number for device.

Reimplemented from PVideoDevice.

Definition at line 326 of file vidinput_avc.cxx.

References IsCapturing(), PVideoDevice::SetChannel(), Start(), and Stop().

Referenced by Open().

{
  if (PVideoDevice::SetChannel(newChannel) == FALSE)
    return FALSE;

  if(IsCapturing()) {
    Stop();
    Start();
  }
  
  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index