IMVSCSetupVideoStream
The IMVSCSetupVideoStream Interface from the MontiVision Smart Control provides methods to change the video output format from video sources. Therefore the filter graph must have the state: STATE_STOP to change the video format.
Use the MV VideoFormatComboBox nad MV VideoSizeComboBox to change the video output formt.
Methods:
| GetCurrentVideoFormat | Get the current video format. |
| GetVideoFormatCount | Get the count of available video formats. |
| GetVideoFormatLabel | Get the label for a video format. |
| GetVideoSizeInfo | Get the video size information for a video format. |
| GetVideoSizeInfoCount | Get the count of video size info for a media format. |
| SetVideoFormat | Set the video format. |
Typelib: MV SmartControl
Method IMVSCSetupVideoStream::GetCurrentVideoFormat
Declaration: Sub GetCurrentVideoFormat(SourceFilter As String, Format As Long, Size As Long)Get the current video format.
Parameter:
Prototype:
SourceFilter Video source filter label within the filter graph configuration. Format Current format index. Size Current size index. HRESULT GetCurrentVideoFormat(BSTR SourceFilter, LONG Format, LONG Size);
Method IMVSCSetupVideoStream::GetVideoFormatCount
Declaration: Function GetVideoFormatCount(SourceFilter As String) As LongGet the count of available video formats.
Parameter:
Prototype:
SourceFilter Video source filter label within the filter graph configuration. HRESULT GetVideoFormatCount(BSTR SourceFilter, LONG* value);
Method IMVSCSetupVideoStream::GetVideoFormatLabel
Declaration: Function GetVideoFormatLabel(Filter As String, Index As Long) As StringGet the label for a video format.
Parameter:
Prototype:
Filter Video source filter label within the filter graph configuration. Index Video format index. HRESULT GetVideoFormatLabel(BSTR Filter, LONG Index, BSTR* value);
Method IMVSCSetupVideoStream::GetVideoSizeInfo
Declaration: Sub GetVideoSizeInfo(SourceFilter As String, Format As Long, Index As Long, xRes As Long, yRes As Long, VideoStandard As Long)Get the video size information for a video format.
Parameter:
SourceFilter Video source filter label within the filter graph configuration. Format Video format index. Index Video size index. xRes Video width from the size index. yRes Video height from the size index. VideoStandard Video standard, e.g. PAL, NTSC. Video Standards
Prototype:
Video Standard Value None 0 NTSC 1 PAL 2 SECAM 3 HRESULT GetVideoSizeInfo(BSTR SourceFilter, LONG Format, LONG Index, LONG* xRes, LONG* yRes, LONG* VideoStandard);
Method IMVSCSetupVideoStream::GetVideoSizeInfoCount
Declaration: Function GetVideoSizeInfoCount(SourceFilter As String, Format As Long) As LongGet the count of video size info for a media format
Parameter:
Prototype:
SourceFilter Video source filter label within the filter graph configuration. Format Video format index. HRESULT GetVideoSizeInfoCount(BSTR SourceFilter, LONG Format, LONG* value);
Method IMVSCSetupVideoStream::SetVideoFormat
Declaration: Sub SetVideoFormat(SourceFilter As String, Format As Long, Size As Long)Set the video format.
Parameter:
Prototype:
SourceFilter Video source filter label within the filter graph configuration. Format Video format index. Size Video size index. HRESULT SetVideoFormat(BSTR SourceFilter, LONG Format, LONG Size);