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

CVideoDeviceInput * CVideoDevice::GetVideoInput ( int  number = -1  )  const

Returns an video input channel (source) object.

number The desired input channel; -1 for the current one
An object of type CVideoDeviceInput, or NULL if number is out of range
This returns a pointer to a CVideoDeviceInput object; when number is -1 (the default value), it returns the current input.

Definition at line 987 of file VideoDevice.cc.

   if (number == -1) {
     if (CurrentVideoInput < 0)
       return NULL;
       return VideoInputs.at((uint)CurrentVideoInput);
     return VideoInputs.at((uint) number);

Generated by  Doxygen 1.6.0   Back to index