示例#1
0
        public DmMd8x8 DMFrame(uint paramIpId, CrestronControlSystem paramControlSystem)
        {
            _frame = new DmMd8x8(paramIpId, paramControlSystem);

            ErrorLog.Notice("TDS: this is inside the frame");

            input1    = new DmcC(1, _frame);
            input2    = new DmcDvi(2, _frame);
            input3    = new DmcHd(3, _frame);
            input4    = new DmcS(4, _frame);
            input5    = new DmcC(5, _frame);
            input6    = new Dmc4kHd(6, _frame);
            input7    = new DmcVga(7, _frame);
            input8    = new DmcStr(8, _frame);
            output1_2 = new Dmc4kCoHdSingle(1, _frame);
            output3_4 = new Dmc4kHdoSingle(2, _frame);
            output5_6 = new DmcStroSingle(3, _frame);
            output7_8 = new DmcCoHdSingle(4, _frame);

            _frame.VideoEnter.BoolValue = true;

            return(_frame);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        /// <param name="number"></param>
        public void AddInputCard(string type, uint number)
        {
            Debug.Console(2, this, "Adding input card '{0}', slot {1}", type, number);

            type = type.ToLower();

            if (type == "dmchd")
            {
                var inputCard = new DmcHd(number, this.Chassis);
                var cecPort   = inputCard.HdmiInput as ICec;
                AddHdmiInCardPorts(number, cecPort);
            }
            else if (type == "dmchddsp")
            {
                var inputCard = new DmcHdDsp(number, this.Chassis);
                var cecPort   = inputCard.HdmiInput as ICec;
                AddHdmiInCardPorts(number, cecPort);
            }
            else if (type == "dmc4khd")
            {
                var inputCard = new Dmc4kHd(number, this.Chassis);
                var cecPort   = inputCard.HdmiInput as ICec;
                AddHdmiInCardPorts(number, cecPort);
            }
            else if (type == "dmc4khddsp")
            {
                var inputCard = new Dmc4kHdDsp(number, this.Chassis);
                var cecPort   = inputCard.HdmiInput as ICec;
                AddHdmiInCardPorts(number, cecPort);
            }
            else if (type == "dmc4kzhd")
            {
                var inputCard = new Dmc4kzHd(number, this.Chassis);
                var cecPort   = inputCard.HdmiInput as ICec;
                AddHdmiInCardPorts(number, cecPort);
            }
            else if (type == "dmc4kzhddsp")
            {
                var inputCard = new Dmc4kzHdDsp(number, this.Chassis);
                var cecPort   = inputCard.HdmiInput as ICec;
                AddHdmiInCardPorts(number, cecPort);
            }
            else if (type == "dmcc")
            {
                var inputCard = new DmcC(number, this.Chassis);
                var cecPort   = inputCard.DmInput as ICec;
                AddDmInCardPorts(number, cecPort);
            }
            else if (type == "dmccdsp")
            {
                var inputCard = new DmcCDsp(number, this.Chassis);
                var cecPort   = inputCard.DmInput as ICec;
                AddDmInCardPorts(number, cecPort);
            }
            else if (type == "dmc4kc")
            {
                var inputCard = new Dmc4kC(number, this.Chassis);
                var cecPort   = inputCard.DmInput as ICec;
                AddDmInCardPorts(number, cecPort);
            }
            else if (type == "dmc4kcdsp")
            {
                var inputCard = new Dmc4kCDsp(number, this.Chassis);
                var cecPort   = inputCard.DmInput as ICec;
                AddDmInCardPorts(number, cecPort);
            }
            else if (type == "dmc4kzc")
            {
                var inputCard = new Dmc4kzC(number, this.Chassis);
                var cecPort   = inputCard.DmInput as ICec;
                AddDmInCardPorts(number, cecPort);
            }
            else if (type == "dmc4kzcdsp")
            {
                var inputCard = new Dmc4kzCDsp(number, this.Chassis);
                var cecPort   = inputCard.DmInput as ICec;
                AddDmInCardPorts(number, cecPort);
            }
            else if (type == "dmccat")
            {
                new DmcCat(number, this.Chassis);
                AddDmInCardPorts(number);
            }
            else if (type == "dmccatdsp")
            {
                new DmcCatDsp(number, this.Chassis);
                AddDmInCardPorts(number);
            }
            else if (type == "dmcs")
            {
                new DmcS(number, Chassis);
                AddInputPortWithDebug(number, "dmIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmMmFiber);
                AddInCardHdmiAndAudioLoopPorts(number);
            }
            else if (type == "dmcsdsp")
            {
                new DmcSDsp(number, Chassis);
                AddInputPortWithDebug(number, "dmIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmMmFiber);
                AddInCardHdmiAndAudioLoopPorts(number);
            }
            else if (type == "dmcs2")
            {
                new DmcS2(number, Chassis);
                AddInputPortWithDebug(number, "dmIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmSmFiber);
                AddInCardHdmiAndAudioLoopPorts(number);
            }
            else if (type == "dmcs2dsp")
            {
                new DmcS2Dsp(number, Chassis);
                AddInputPortWithDebug(number, "dmIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmSmFiber);
                AddInCardHdmiAndAudioLoopPorts(number);
            }
            else if (type == "dmcsdi")
            {
                new DmcSdi(number, Chassis);
                AddInputPortWithDebug(number, "sdiIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Sdi);
                AddOutputPortWithDebug(string.Format("inputCard{0}", number), "sdiOut", eRoutingSignalType.Audio | eRoutingSignalType.Video,
                                       eRoutingPortConnectionType.Sdi, null);
                AddInCardHdmiAndAudioLoopPorts(number);
            }
            else if (type == "dmcdvi")
            {
                new DmcDvi(number, Chassis);
                AddInputPortWithDebug(number, "dviIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Dvi);
                AddInputPortWithDebug(number, "audioIn", eRoutingSignalType.Audio, eRoutingPortConnectionType.LineAudio);
                AddInCardHdmiLoopPort(number);
            }
            else if (type == "dmcvga")
            {
                new DmcVga(number, Chassis);
                AddInputPortWithDebug(number, "vgaIn", eRoutingSignalType.Video, eRoutingPortConnectionType.Vga);
                AddInputPortWithDebug(number, "audioIn", eRoutingSignalType.Audio, eRoutingPortConnectionType.LineAudio);
                AddInCardHdmiLoopPort(number);
            }
            else if (type == "dmcvidbnc")
            {
                new DmcVidBnc(number, Chassis);
                AddInputPortWithDebug(number, "componentIn", eRoutingSignalType.Video, eRoutingPortConnectionType.Component);
                AddInputPortWithDebug(number, "audioIn", eRoutingSignalType.Audio, eRoutingPortConnectionType.LineAudio);
                AddInCardHdmiLoopPort(number);
            }
            else if (type == "dmcvidrcaa")
            {
                new DmcVidRcaA(number, Chassis);
                AddInputPortWithDebug(number, "componentIn", eRoutingSignalType.Video, eRoutingPortConnectionType.Component);
                AddInputPortWithDebug(number, "audioIn", eRoutingSignalType.Audio, eRoutingPortConnectionType.LineAudio);
                AddInCardHdmiLoopPort(number);
            }
            else if (type == "dmcvidrcad")
            {
                new DmcVidRcaD(number, Chassis);
                AddInputPortWithDebug(number, "componentIn", eRoutingSignalType.Video, eRoutingPortConnectionType.Component);
                AddInputPortWithDebug(number, "audioIn", eRoutingSignalType.Audio, eRoutingPortConnectionType.DigitalAudio);
                AddInCardHdmiLoopPort(number);
            }
            else if (type == "dmcvid4")
            {
                new DmcVid4(number, Chassis);
                AddInputPortWithDebug(number, "compositeIn1", eRoutingSignalType.Video, eRoutingPortConnectionType.Composite);
                AddInputPortWithDebug(number, "compositeIn2", eRoutingSignalType.Video, eRoutingPortConnectionType.Composite);
                AddInputPortWithDebug(number, "compositeIn3", eRoutingSignalType.Video, eRoutingPortConnectionType.Composite);
                AddInputPortWithDebug(number, "compositeIn4", eRoutingSignalType.Video, eRoutingPortConnectionType.Composite);
                AddInCardHdmiLoopPort(number);
            }
            else if (type == "dmcstr")
            {
                new DmcStr(number, Chassis);
                AddInputPortWithDebug(number, "streamIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Streaming);
                AddInCardHdmiAndAudioLoopPorts(number);
            }
        }