Grabber::setInputChannel Method

Sets the input channel of the currently active video capture device.
Syntax:
bool setInputChannel( const tInputChannelItem& inChnItem );
bool setInputChannel( DWORD channel );
bool setInputChannel( const std::string& inputchannel );
bool setInputChannel( const std::wstring& inputchannel );
Parameter Description
inChnItem

Specifies the input channel. A list of available input channels may be obtained by calling Grabber::getAvailableInputChannels.

channel

Specifies the input channel as a numerical index. The index is the position of the desired input channel in the list of available input channels, starting at 0.

inputchannel

Specifies the input channel as a string representation.

Return value:

true, if the channel could be changed successfully, false otherwise.

Remarks:

Not all devices provide channels. In order to determine whether the selection of an input channel is supported by the current device you can use Grabber::isInputChannelAvailableWithCurDev.

See also: Grabber, Grabber::isInputChannelAvailableWithCurDev, Grabber::getAvailableInputChannels, Grabber::getInputChannel

<< Grabber

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.