IMVSCSelectInput
The IMVSCSelectInput Interface Interface from the MontiVision Smart Control provides methods to select the physical input from a capture source crossbar with multiple physical input ports. The MV SelectInputComboBox uses this interface.
Methods:
| CheckConnection | Check if a connection between an input and output pin is possible. |
| Connect | Connects a input to an output from a crossbar. |
| CurrentConnection | Get the current connected input pin for an output pin. |
| GetInputLabel | Get the label from a output pin. |
| GetOutputLabel | Get the label from a output pin. |
| InputCount | Get the input pin count from the crossbar of a video source filter. |
| IsAvailable | Test if the crossbar is available |
| OutputCount | Get the output pin count from a crossbar of a video source filter. |
Typelib: MV SMartCOntrol
Method IMVSCSelectInput::CheckConnection
Declaration: Sub CheckConnection(SourceFilter As String, Input As Long, Output As Long)Check if a connection between an input and output pin is possible. The method returns S_OK (0) if the connection is possible or S_FALSE (1) if no connection between the two pins is possible.
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. Input Input pin index. Output Output pin index. HRESULT CheckConnection(BSTR SourceFilter, LONG Input, LONG Output);
Method IMVSCSelectInput::Connect
Declaration: Sub Connect(SourceFilter As String, Input As Long, Output As Long)Connects a input to an output from a crossbar.
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. Input Input pin index. Output Output pin index. HRESULT Connect(STRING SourceFilter, LONG Input, LONG Output);
Method IMVSCSelectInput::CurrentConnection
Declaration: Function CurrentConnection(SourceFilter As String, Output As Long) As LongGet the current connected input pin for an output pin. It returns the index from the current connected input pin.
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. Output Output pin index. HRESULT CurrentConnection(BSTR SourceFilter, LONG Output, LONG* value);
Method IMVSCSelectInput::GetInputLabel
Declaration: Function GetInputLabel(SourceFilter As String, Index As Long) As StringGet the label from a output pin.
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. Index Input pin index. HRESULT GetInputLabel(BSTR SourceFilter, LONG Index, BSTR* value);
Method IMVSCSelectInput::GetOutputLabel
Declaration: Function GetOutputLabel(SourceFilter As String, Index As Long) As StringGet the label from a output pin.
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. Index Output pin index. HRESULT GetOutputLabel(BSTR SourceFilter, LONG Index, BSTR* value);
Method IMVSCSelectInput::InputCount
Declaration: Function InputCount(SourceFilter As String) As LongGet the input pin count from the crossbar of a video source filter.
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. HRESULT InputCount(BSTR SourceFilter, LONG* value);
Method IMVSCSelectInput::IsAvailable
Declaration: Function IsAvailable(SourceFilter As String) As BooleanTest if the crossbar is available
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. HRESULT IsAvailable(BSTR SourceFilter, BOOL* value);
Method IMVSCSelectInput::OutputCount
Declaration: Function OutputCount(SourceFilter As String) As LongGet the output pin count from a crossbar og a video source filter.
Parameter:
Prototype:
SourceFilter Source filter label within the filter graph configuration. HRESULT OutputCount(BSTR SourceFilter, LONG* value);