Grabber::setVideoFormat Method

This method sets the video format to be used by the currently active video capture device.
Syntax:
bool setVideoFormat( const VideoFormatItem& videoformat );
bool setVideoFormat( const std::string& videoformatstring );
bool setVideoFormat( const std::wstring& videoformatstring );

Parameter Description
videoformat

Specifies the new video format to be used by the currently active video capture device.

videoformatstring

Specifies the name of the new video format to be used by the currently active video capture device.

Return value:

true, if the video format could be changed successfully, false otherwise.

Remarks:

This method sets the video format to be used by the current video capture device. The selectable video formats depend on the currently active video norm (see Grabber::setVideoNorm ).

See also: Grabber, VideoFormatItem, Grabber::getAvailableVideoFormats, Grabber::getVideoFormat

<< Grabber