|
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:
Typelib: MV SmartControl
Method
IMVSCSetupVideoStream::GetCurrentVideoFormat
Declaration: Sub
GetCurrentVideoFormat(SourceFilter As String, Format As Long, Size
As Long)
Get the current video format.
Parameter:
|
|
SourceFilter |
Video source filter label within the filter
graph configuration. |
|
|
Format |
Current format index. |
|
|
Size |
Current size index. |
Prototype:
HRESULT GetCurrentVideoFormat(BSTR
SourceFilter, LONG Format, LONG Size);
Method
IMVSCSetupVideoStream::GetVideoFormatCount
Declaration:
Function GetVideoFormatCount(SourceFilter As String) As Long
Get the count of available video formats.
Parameter:
|
|
SourceFilter |
Video source filter label within the filter
graph configuration. |
Prototype:
HRESULT GetVideoFormatCount(BSTR
SourceFilter, LONG* value);
Method
IMVSCSetupVideoStream::GetVideoFormatLabel
Declaration:
Function GetVideoFormatLabel(Filter As String, Index As Long) As
String
Get the label for a video format.
Parameter:
|
|
Filter |
Video source filter label within the filter
graph configuration. |
|
|
Index |
Video format index. |
Prototype:
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
| Video Standard
|
Value
|
| None |
0 |
| NTSC |
1 |
| PAL |
2 |
| SECAM |
3 |
Prototype:
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 Long
Get the count of video size info for a media format
Parameter:
|
|
SourceFilter |
Video source filter label within the filter
graph configuration. |
|
|
Format |
Video format index. |
Prototype:
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:
|
|
SourceFilter |
Video source filter label within the filter
graph configuration. |
|
|
Format |
Video format index. |
|
|
Size |
Video size index. |
Prototype:
HRESULT SetVideoFormat(BSTR
SourceFilter, LONG Format, LONG Size);
|