// Token: 0x060001A5 RID: 421 RVA: 0x00012390 File Offset: 0x00010590 internal CrossbarSource(IAMCrossbar crossbar, int outputPin, int inputPin, PhysicalConnectorType connectorType) { this.Crossbar = crossbar; this.OutputPin = outputPin; this.InputPin = inputPin; this.ConnectorType = connectorType; }
//protected override void ConfigureVMR9InWindowlessMode(int numberOfStream) //{ // int hr = 0; // IVMRFilterConfig9 filterConfig = this.videoRenderer as IVMRFilterConfig9; // // Configure VMR-9 in Windowsless mode // hr = filterConfig.SetRenderingMode(VMR9Mode.Windowless); // DsError.ThrowExceptionForHR(hr); // // With 1 input stream // hr = filterConfig.SetNumberOfStreams(numberOfStream); // DsError.ThrowExceptionForHR(hr); // IVMRWindowlessControl9 windowlessControl = this.videoRenderer as IVMRWindowlessControl9; // // The main form is hosting the VMR-9 // hr = windowlessControl.SetVideoClippingWindow(this.hostingControl.Handle); // DsError.ThrowExceptionForHR(hr); // // Keep the aspect-ratio OK // //hr = windowlessControl.SetAspectRatioMode(VMR9AspectRatioMode.LetterBox); // hr = windowlessControl.SetAspectRatioMode(VMR9AspectRatioMode.None); // DsError.ThrowExceptionForHR(hr); // // Init the VMR-9 with default size values // OnResizeMoveHandler(null, null); // // Add Windows Messages handlers // AddHandlers(); //} public int FindCrossbarPin(IAMCrossbar pXBar, PhysicalConnectorType PhysicalType, PinDirection Dir, out int pIndex) { pIndex = -1; bool bInput = (Dir == PinDirection.Input ? true : false); // Find out how many pins the crossbar has. int cOut, cIn; int hr = pXBar.get_PinCounts(out cOut, out cIn); if (hr < 0) { return(hr); } // Enumerate pins and look for a matching pin. int count = (bInput ? cIn : cOut); for (int i = 0; i < count; i++) { int iRelated = 0; PhysicalConnectorType ThisPhysicalType = 0; hr = pXBar.get_CrossbarPinInfo(bInput, i, out iRelated, out ThisPhysicalType); if (hr >= 0 && ThisPhysicalType == PhysicalType) { // Found a match, return the index. pIndex = i; return(0); } } // Did not find a matching pin. return(-1); }
// --------------------------- Private methods ---------------------------- /// <summary> Retrieve the friendly name of a connectorType. </summary> private string getName( PhysicalConnectorType connectorType ) { string name; switch( connectorType ) { case PhysicalConnectorType.Video_Tuner: name = "Video Tuner"; break; case PhysicalConnectorType.Video_Composite: name = "Video Composite"; break; case PhysicalConnectorType.Video_SVideo: name = "Video S-Video"; break; case PhysicalConnectorType.Video_RGB: name = "Video RGB"; break; case PhysicalConnectorType.Video_YRYBY: name = "Video YRYBY"; break; case PhysicalConnectorType.Video_SerialDigital: name = "Video Serial Digital"; break; case PhysicalConnectorType.Video_ParallelDigital: name = "Video Parallel Digital";break; case PhysicalConnectorType.Video_SCSI: name = "Video SCSI"; break; case PhysicalConnectorType.Video_AUX: name = "Video AUX"; break; case PhysicalConnectorType.Video_1394: name = "Video Firewire"; break; case PhysicalConnectorType.Video_USB: name = "Video USB"; break; case PhysicalConnectorType.Video_VideoDecoder: name = "Video Decoder"; break; case PhysicalConnectorType.Video_VideoEncoder: name = "Video Encoder"; break; case PhysicalConnectorType.Video_SCART: name = "Video SCART"; break; case PhysicalConnectorType.Audio_Tuner: name = "Audio Tuner"; break; case PhysicalConnectorType.Audio_Line: name = "Audio Line In"; break; case PhysicalConnectorType.Audio_Mic: name = "Audio Mic"; break; case PhysicalConnectorType.Audio_AESDigital: name = "Audio AES Digital"; break; case PhysicalConnectorType.Audio_SPDIFDigital: name = "Audio SPDIF Digital"; break; case PhysicalConnectorType.Audio_SCSI: name = "Audio SCSI"; break; case PhysicalConnectorType.Audio_AUX: name = "Audio AUX"; break; case PhysicalConnectorType.Audio_1394: name = "Audio Firewire"; break; case PhysicalConnectorType.Audio_USB: name = "Audio USB"; break; case PhysicalConnectorType.Audio_AudioDecoder: name = "Audio Decoder"; break; default: name = "Unknown Connector"; break; } return( name ); }
private static string GetPhysicalPinName(PhysicalConnectorType connectorType) { switch (connectorType) { case PhysicalConnectorType.Video_Tuner: return "Video Tuner"; case PhysicalConnectorType.Video_Composite: return "Video Composite"; case PhysicalConnectorType.Video_SVideo: return "S-Video"; case PhysicalConnectorType.Video_RGB: return "Video RGB"; case PhysicalConnectorType.Video_YRYBY: return "Video YRYBY"; case PhysicalConnectorType.Video_SerialDigital: return "Video Serial Digital"; case PhysicalConnectorType.Video_ParallelDigital: return "Video Parallel Digital"; case PhysicalConnectorType.Video_SCSI: return "Video SCSI"; case PhysicalConnectorType.Video_AUX: return "Video AUX"; case PhysicalConnectorType.Video_1394: return "Video 1394"; case PhysicalConnectorType.Video_USB: return "Video USB"; case PhysicalConnectorType.Video_VideoDecoder: return "Video Decoder"; case PhysicalConnectorType.Video_VideoEncoder: return "Video Encoder"; case PhysicalConnectorType.Audio_Tuner: return "Audio Tuner"; case PhysicalConnectorType.Audio_Line: return "Audio Line"; case PhysicalConnectorType.Audio_Mic: return "Audio Microphone"; case PhysicalConnectorType.Audio_AESDigital: return "Audio AES/EBU Digital"; case PhysicalConnectorType.Audio_SPDIFDigital: return "Audio S/PDIF"; case PhysicalConnectorType.Audio_SCSI: return "Audio SCSI"; case PhysicalConnectorType.Audio_AUX: return "Audio AUX"; case PhysicalConnectorType.Audio_1394: return "Audio 1394"; case PhysicalConnectorType.Audio_USB: return "Audio USB"; case PhysicalConnectorType.Audio_AudioDecoder: return "Audio Decoder"; default: return "Unknown Type"; } }
internal CrossbarSource(IAMCrossbar crossbar, int outputPin, int inputPin, PhysicalConnectorType connectorType) { Crossbar = crossbar; OutputPin = outputPin; _InputPin = inputPin; _ConnectorType = connectorType; this.Name = getName(connectorType); }
// -------------------- Constructors/Destructors ---------------------- /// <summary> Constructor. This class cannot be created directly. </summary> internal CrossbarSource( IAMCrossbar crossbar, int outputPin, int inputPin, PhysicalConnectorType connectorType ) { this.Crossbar = crossbar; this.OutputPin = outputPin; this.InputPin = inputPin; this.ConnectorType = connectorType; this.name = getName( connectorType ); }
// --------------------------- Private methods ---------------------------- /// <summary> Retrieve the friendly name of a connectorType. </summary> private string getName(PhysicalConnectorType connectorType) { string name; switch (connectorType) { case PhysicalConnectorType.Video_Tuner: name = "Video Tuner"; break; case PhysicalConnectorType.Video_Composite: name = "Video Composite"; break; case PhysicalConnectorType.Video_SVideo: name = "Video S-Video"; break; case PhysicalConnectorType.Video_RGB: name = "Video RGB"; break; case PhysicalConnectorType.Video_YRYBY: name = "Video YRYBY"; break; case PhysicalConnectorType.Video_SerialDigital: name = "Video Serial Digital"; break; case PhysicalConnectorType.Video_ParallelDigital: name = "Video Parallel Digital"; break; case PhysicalConnectorType.Video_SCSI: name = "Video SCSI"; break; case PhysicalConnectorType.Video_AUX: name = "Video AUX"; break; case PhysicalConnectorType.Video_1394: name = "Video Firewire"; break; case PhysicalConnectorType.Video_USB: name = "Video USB"; break; case PhysicalConnectorType.Video_VideoDecoder: name = "Video Decoder"; break; case PhysicalConnectorType.Video_VideoEncoder: name = "Video Encoder"; break; case PhysicalConnectorType.Video_SCART: name = "Video SCART"; break; case PhysicalConnectorType.Audio_Tuner: name = "Audio Tuner"; break; case PhysicalConnectorType.Audio_Line: name = "Audio Line In"; break; case PhysicalConnectorType.Audio_Mic: name = "Audio Mic"; break; case PhysicalConnectorType.Audio_AESDigital: name = "Audio AES Digital"; break; case PhysicalConnectorType.Audio_SPDIFDigital: name = "Audio SPDIF Digital"; break; case PhysicalConnectorType.Audio_SCSI: name = "Audio SCSI"; break; case PhysicalConnectorType.Audio_AUX: name = "Audio AUX"; break; case PhysicalConnectorType.Audio_1394: name = "Audio Firewire"; break; case PhysicalConnectorType.Audio_USB: name = "Audio USB"; break; case PhysicalConnectorType.Audio_AudioDecoder: name = "Audio Decoder"; break; default: name = "Unknown Connector"; break; } return(name); }
/// <summary> Constructor. This class cannot be created directly. </summary> internal CrossbarSource(IAMCrossbar crossbar, int outputPin, int inputPin, int relatedInputPin, PhysicalConnectorType connectorType) { Crossbar = crossbar; OutputPin = outputPin; InputPin = inputPin; RelatedInputPin = relatedInputPin; ConnectorType = connectorType; name = GetName(connectorType); }
/// <summary> Constructor. This class cannot be created directly. </summary> internal CrossbarSource(IAMCrossbar crossbar, int outputPin, int inputPin, int relatedInputPin, PhysicalConnectorType connectorType) { this.Crossbar = crossbar; this.OutputPin = outputPin; this.InputPin = inputPin; this.RelatedInputPin = relatedInputPin; this.ConnectorType = connectorType; this.name = getName(connectorType); }
// Converts a PinType into a String public string StringFromPinType(PhysicalConnectorType type) { switch (type) { case PhysicalConnectorType.Video_Tuner: return("Video Tuner"); case PhysicalConnectorType.Video_Composite: return("Video Composite"); case PhysicalConnectorType.Video_SVideo: return("Video SVideo"); case PhysicalConnectorType.Video_RGB: return("Video RGB"); case PhysicalConnectorType.Video_YRYBY: return("Video YRYBY"); case PhysicalConnectorType.Video_SerialDigital: return("Video SerialDigital"); case PhysicalConnectorType.Video_ParallelDigital: return("Video ParallelDigital"); case PhysicalConnectorType.Video_SCSI: return("Video SCSI"); case PhysicalConnectorType.Video_AUX: return("Video AUX"); case PhysicalConnectorType.Video_1394: return("Video 1394"); case PhysicalConnectorType.Video_USB: return("Video USB"); case PhysicalConnectorType.Video_VideoDecoder: return("Video Decoder"); case PhysicalConnectorType.Video_VideoEncoder: return("Video Encoder"); case PhysicalConnectorType.Audio_Tuner: return("Audio Tuner"); case PhysicalConnectorType.Audio_Line: return("Audio Line"); case PhysicalConnectorType.Audio_Mic: return("Audio Mic"); case PhysicalConnectorType.Audio_AESDigital: return("Audio AESDigital"); case PhysicalConnectorType.Audio_SPDIFDigital: return("Audio SPDIFDigital"); case PhysicalConnectorType.Audio_SCSI: return("Audio SCSI"); case PhysicalConnectorType.Audio_AUX: return("Audio AUX"); case PhysicalConnectorType.Audio_1394: return("Audio 1394"); case PhysicalConnectorType.Audio_USB: return("Audio USB"); case PhysicalConnectorType.Audio_AudioDecoder: return("Audio Decoder"); default: return("Unknown"); } }
private string GetPhysicalPinName(PhysicalConnectorType connectorType) { switch (connectorType) { case PhysicalConnectorType.Video_Tuner: return("Video Tuner"); case PhysicalConnectorType.Video_Composite: return("Video Composite"); case PhysicalConnectorType.Video_SVideo: return("S-Video"); case PhysicalConnectorType.Video_RGB: return("Video RGB"); case PhysicalConnectorType.Video_YRYBY: return("Video YRYBY"); case PhysicalConnectorType.Video_SerialDigital: return("Video Serial Digital"); case PhysicalConnectorType.Video_ParallelDigital: return("Video Parallel Digital"); case PhysicalConnectorType.Video_SCSI: return("Video SCSI"); case PhysicalConnectorType.Video_AUX: return("Video AUX"); case PhysicalConnectorType.Video_1394: return("Video 1394"); case PhysicalConnectorType.Video_USB: return("Video USB"); case PhysicalConnectorType.Video_VideoDecoder: return("Video Decoder"); case PhysicalConnectorType.Video_VideoEncoder: return("Video Encoder"); case PhysicalConnectorType.Audio_Tuner: return("Audio Tuner"); case PhysicalConnectorType.Audio_Line: return("Audio Line"); case PhysicalConnectorType.Audio_Mic: return("Audio Microphone"); case PhysicalConnectorType.Audio_AESDigital: return("Audio AES/EBU Digital"); case PhysicalConnectorType.Audio_SPDIFDigital: return("Audio S/PDIF"); case PhysicalConnectorType.Audio_SCSI: return("Audio SCSI"); case PhysicalConnectorType.Audio_AUX: return("Audio AUX"); case PhysicalConnectorType.Audio_1394: return("Audio 1394"); case PhysicalConnectorType.Audio_USB: return("Audio USB"); case PhysicalConnectorType.Audio_AudioDecoder: return("Audio Decoder"); default: return("Unknown Type"); } }
public void ChangeVideoInputSource(PhysicalConnectorType inputType) { if (crossbar != null) { int numOutputPins; int numInputPins; int hr = crossbar.get_PinCounts(out numOutputPins, out numInputPins); DsError.ThrowExceptionForHR(hr); int outputPin = -1; //get the video output pin for (int i = 0; i < numOutputPins; i++) { int relatedPin; PhysicalConnectorType physicalType; hr = crossbar.get_CrossbarPinInfo(false, i, out relatedPin, out physicalType); DsError.ThrowExceptionForHR(hr); //VideoDecoder //AudioDecoder if (physicalType == PhysicalConnectorType.Video_VideoDecoder) { outputPin = i; break; } } int inputPin = -1; for (int i = 0; i < numInputPins; i++) { int relatedPin; PhysicalConnectorType physicalType; hr = crossbar.get_CrossbarPinInfo(true, i, out relatedPin, out physicalType); DsError.ThrowExceptionForHR(hr); if (physicalType == inputType) { inputPin = i; break; } } if (outputPin != -1 && inputPin != -1) { hr = crossbar.Route(outputPin, inputPin); videoInputDeviceSource = inputType; DsError.ThrowExceptionForHR(hr); } } }
private bool IsVideoPin(PhysicalConnectorType connectorType) { switch (connectorType) { case PhysicalConnectorType.Video_Tuner: case PhysicalConnectorType.Video_Composite: case PhysicalConnectorType.Video_SVideo: case PhysicalConnectorType.Video_RGB: case PhysicalConnectorType.Video_YRYBY: case PhysicalConnectorType.Video_SerialDigital: case PhysicalConnectorType.Video_ParallelDigital: case PhysicalConnectorType.Video_SCSI: case PhysicalConnectorType.Video_AUX: case PhysicalConnectorType.Video_1394: case PhysicalConnectorType.Video_USB: case PhysicalConnectorType.Video_VideoDecoder: case PhysicalConnectorType.Video_VideoEncoder: return(true); } return(false); }
private static bool IsVideoPin(PhysicalConnectorType connectorType) { switch (connectorType) { case PhysicalConnectorType.Video_Tuner: case PhysicalConnectorType.Video_Composite: case PhysicalConnectorType.Video_SVideo: case PhysicalConnectorType.Video_RGB: case PhysicalConnectorType.Video_YRYBY: case PhysicalConnectorType.Video_SerialDigital: case PhysicalConnectorType.Video_ParallelDigital: case PhysicalConnectorType.Video_SCSI: case PhysicalConnectorType.Video_AUX: case PhysicalConnectorType.Video_1394: case PhysicalConnectorType.Video_USB: case PhysicalConnectorType.Video_VideoDecoder: case PhysicalConnectorType.Video_VideoEncoder: return true; } return false; }
internal VideoInput( int index, PhysicalConnectorType type ) { Index = index; Type = type; }
/// <summary> /// Constructor for <see cref="AudioInput"/> class. /// </summary> /// <param name="index">Index of the video input.</param> /// <param name="type">Type of the video input.</param> public AudioInput(int index, PhysicalConnectorType type) { Index = index; Type = type; }
// Token: 0x060001A6 RID: 422 RVA: 0x000123B8 File Offset: 0x000105B8 private string getName(PhysicalConnectorType connectorType) { string result; if (connectorType == PhysicalConnectorType.Video_Tuner) { result = "Video Tuner"; } else if (connectorType == PhysicalConnectorType.Video_Composite) { result = "Video Composite"; } else if (connectorType == PhysicalConnectorType.Video_SVideo) { result = "Video S-Video"; } else if (connectorType == PhysicalConnectorType.Video_RGB) { result = "Video RGB"; } else if (connectorType == PhysicalConnectorType.Video_YRYBY) { result = "Video YRYBY"; } else if (connectorType == PhysicalConnectorType.Video_SerialDigital) { result = "Video Serial Digital"; } else if (connectorType == PhysicalConnectorType.Video_ParallelDigital) { result = "Video Parallel Digital"; } else if (connectorType == PhysicalConnectorType.Video_SCSI) { result = "Video SCSI"; } else if (connectorType == PhysicalConnectorType.Video_AUX) { result = "Video AUX"; } else if (connectorType == PhysicalConnectorType.Video_1394) { result = "Video Firewire"; } else if (connectorType == PhysicalConnectorType.Video_USB) { result = "Video USB"; } else if (connectorType == PhysicalConnectorType.Video_VideoDecoder) { result = "Video Decoder"; } else if (connectorType == PhysicalConnectorType.Video_VideoEncoder) { result = "Video Encoder"; } else if (connectorType == PhysicalConnectorType.Video_SCART) { result = "Video SCART"; } else if (connectorType == PhysicalConnectorType.Audio_Tuner) { result = "Audio Tuner"; } else if (connectorType == PhysicalConnectorType.Audio_Line) { result = "Audio Line In"; } else if (connectorType == PhysicalConnectorType.Audio_Mic) { result = "Audio Mic"; } else if (connectorType == PhysicalConnectorType.Audio_AESDigital) { result = "Audio AES Digital"; } else if (connectorType == PhysicalConnectorType.Audio_SPDIFDigital) { result = "Audio SPDIF Digital"; } else if (connectorType == PhysicalConnectorType.Audio_SCSI) { result = "Audio SCSI"; } else if (connectorType == PhysicalConnectorType.Audio_AUX) { result = "Audio AUX"; } else if (connectorType == PhysicalConnectorType.Audio_1394) { result = "Audio Firewire"; } else if (connectorType == PhysicalConnectorType.Audio_USB) { result = "Audio USB"; } else if (connectorType == PhysicalConnectorType.Audio_AudioDecoder) { result = "Audio Decoder"; } else { result = "Unknown Connector"; } return(result); }
private string getName(PhysicalConnectorType connectorType) { switch (connectorType) { case PhysicalConnectorType.Video_Tuner: return("Video Tuner"); case PhysicalConnectorType.Video_Composite: return("Video Composite"); case PhysicalConnectorType.Video_SVideo: return("Video S-Video"); case PhysicalConnectorType.Video_RGB: return("Video RGB"); case PhysicalConnectorType.Video_YRYBY: return("Video YRYBY"); case PhysicalConnectorType.Video_SerialDigital: return("Video Serial Digital"); case PhysicalConnectorType.Video_ParallelDigital: return("Video Parallel Digital"); case PhysicalConnectorType.Video_SCSI: return("Video SCSI"); case PhysicalConnectorType.Video_AUX: return("Video AUX"); case PhysicalConnectorType.Video_1394: return("Video Firewire"); case PhysicalConnectorType.Video_USB: return("Video USB"); case PhysicalConnectorType.Video_VideoDecoder: return("Video Decoder"); case PhysicalConnectorType.Video_VideoEncoder: return("Video Encoder"); case PhysicalConnectorType.Video_SCART: return("Video SCART"); case PhysicalConnectorType.Audio_Tuner: return("Audio Tuner"); case PhysicalConnectorType.Audio_Line: return("Audio Line In"); case PhysicalConnectorType.Audio_Mic: return("Audio Mic"); case PhysicalConnectorType.Audio_AESDigital: return("Audio AES Digital"); case PhysicalConnectorType.Audio_SPDIFDigital: return("Audio SPDIF Digital"); case PhysicalConnectorType.Audio_SCSI: return("Audio SCSI"); case PhysicalConnectorType.Audio_AUX: return("Audio AUX"); case PhysicalConnectorType.Audio_1394: return("Audio Firewire"); case PhysicalConnectorType.Audio_USB: return("Audio USB"); case PhysicalConnectorType.Audio_AudioDecoder: return("Audio Decoder"); } return("Unknown Connector"); }
// Converts a PinType into a String public string StringFromPinType(PhysicalConnectorType type) { switch (type) { case PhysicalConnectorType.Video_Tuner: return "Video Tuner"; case PhysicalConnectorType.Video_Composite: return "Video Composite"; case PhysicalConnectorType.Video_SVideo: return "Video SVideo"; case PhysicalConnectorType.Video_RGB: return "Video RGB"; case PhysicalConnectorType.Video_YRYBY: return "Video YRYBY"; case PhysicalConnectorType.Video_SerialDigital: return "Video SerialDigital"; case PhysicalConnectorType.Video_ParallelDigital: return "Video ParallelDigital"; case PhysicalConnectorType.Video_SCSI: return "Video SCSI"; case PhysicalConnectorType.Video_AUX: return "Video AUX"; case PhysicalConnectorType.Video_1394: return "Video 1394"; case PhysicalConnectorType.Video_USB: return "Video USB"; case PhysicalConnectorType.Video_VideoDecoder: return "Video Decoder"; case PhysicalConnectorType.Video_VideoEncoder: return "Video Encoder"; case PhysicalConnectorType.Audio_Tuner: return "Audio Tuner"; case PhysicalConnectorType.Audio_Line: return "Audio Line"; case PhysicalConnectorType.Audio_Mic: return "Audio Mic"; case PhysicalConnectorType.Audio_AESDigital: return "Audio AESDigital"; case PhysicalConnectorType.Audio_SPDIFDigital: return "Audio SPDIFDigital"; case PhysicalConnectorType.Audio_SCSI: return "Audio SCSI"; case PhysicalConnectorType.Audio_AUX: return "Audio AUX"; case PhysicalConnectorType.Audio_1394: return "Audio 1394"; case PhysicalConnectorType.Audio_USB: return "Audio USB"; case PhysicalConnectorType.Audio_AudioDecoder: return "Audio Decoder"; default: return "Unknown"; } }
internal VideoInput(int index, PhysicalConnectorType type) { Index = index; Type = type; }
private string getName(PhysicalConnectorType connectorType) { switch (connectorType) { case PhysicalConnectorType.Video_Tuner: return "Video Tuner"; case PhysicalConnectorType.Video_Composite: return "Video Composite"; case PhysicalConnectorType.Video_SVideo: return "Video S-Video"; case PhysicalConnectorType.Video_RGB: return "Video RGB"; case PhysicalConnectorType.Video_YRYBY: return "Video YRYBY"; case PhysicalConnectorType.Video_SerialDigital: return "Video Serial Digital"; case PhysicalConnectorType.Video_ParallelDigital: return "Video Parallel Digital"; case PhysicalConnectorType.Video_SCSI: return "Video SCSI"; case PhysicalConnectorType.Video_AUX: return "Video AUX"; case PhysicalConnectorType.Video_1394: return "Video Firewire"; case PhysicalConnectorType.Video_USB: return "Video USB"; case PhysicalConnectorType.Video_VideoDecoder: return "Video Decoder"; case PhysicalConnectorType.Video_VideoEncoder: return "Video Encoder"; case PhysicalConnectorType.Video_SCART: return "Video SCART"; case PhysicalConnectorType.Audio_Tuner: return "Audio Tuner"; case PhysicalConnectorType.Audio_Line: return "Audio Line In"; case PhysicalConnectorType.Audio_Mic: return "Audio Mic"; case PhysicalConnectorType.Audio_AESDigital: return "Audio AES Digital"; case PhysicalConnectorType.Audio_SPDIFDigital: return "Audio SPDIF Digital"; case PhysicalConnectorType.Audio_SCSI: return "Audio SCSI"; case PhysicalConnectorType.Audio_AUX: return "Audio AUX"; case PhysicalConnectorType.Audio_1394: return "Audio Firewire"; case PhysicalConnectorType.Audio_USB: return "Audio USB"; case PhysicalConnectorType.Audio_AudioDecoder: return "Audio Decoder"; } return "Unknown Connector"; }
public VideoInput(int index, PhysicalConnectorType type) { this.Index = index; this.Type = type; }
public Routing(Routing routing) { leftRouting = routing.leftRouting; rightRouting = routing.rightRouting; inputIndex = routing.inputIndex; outputIndex = routing.outputIndex; inputIndexRelated = routing.inputIndexRelated; outputIndexRelated = routing.outputIndexRelated; crossbar = routing.crossbar; inputPhysicalType = routing.inputPhysicalType; outputPhysicalType = routing.outputPhysicalType; depth = routing.depth; inputName = routing.inputName; }
//protected override void ConfigureVMR9InWindowlessMode(int numberOfStream) //{ // int hr = 0; // IVMRFilterConfig9 filterConfig = this.videoRenderer as IVMRFilterConfig9; // // Configure VMR-9 in Windowsless mode // hr = filterConfig.SetRenderingMode(VMR9Mode.Windowless); // DsError.ThrowExceptionForHR(hr); // // With 1 input stream // hr = filterConfig.SetNumberOfStreams(numberOfStream); // DsError.ThrowExceptionForHR(hr); // IVMRWindowlessControl9 windowlessControl = this.videoRenderer as IVMRWindowlessControl9; // // The main form is hosting the VMR-9 // hr = windowlessControl.SetVideoClippingWindow(this.hostingControl.Handle); // DsError.ThrowExceptionForHR(hr); // // Keep the aspect-ratio OK // //hr = windowlessControl.SetAspectRatioMode(VMR9AspectRatioMode.LetterBox); // hr = windowlessControl.SetAspectRatioMode(VMR9AspectRatioMode.None); // DsError.ThrowExceptionForHR(hr); // // Init the VMR-9 with default size values // OnResizeMoveHandler(null, null); // // Add Windows Messages handlers // AddHandlers(); //} public int FindCrossbarPin(IAMCrossbar pXBar, PhysicalConnectorType PhysicalType, PinDirection Dir, out int pIndex) { pIndex = -1; bool bInput = (Dir == PinDirection.Input ? true : false); // Find out how many pins the crossbar has. int cOut, cIn; int hr = pXBar.get_PinCounts(out cOut, out cIn); if (hr < 0) return hr; // Enumerate pins and look for a matching pin. int count = (bInput ? cIn : cOut); for (int i = 0; i < count; i++) { int iRelated = 0; PhysicalConnectorType ThisPhysicalType = 0; hr = pXBar.get_CrossbarPinInfo(bInput, i, out iRelated, out ThisPhysicalType); if (hr >= 0 && ThisPhysicalType == PhysicalType) { // Found a match, return the index. pIndex = i; return 0; } } // Did not find a matching pin. return -1; }