mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-08 09:15:06 +00:00
Major repo cleanout. Removes all files marked as REMOVE or MOVED and removes Cues and all assciated referenced.
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
//using Crestron.SimplSharpPro;
|
||||
//using Crestron.SimplSharpPro.DeviceSupport;
|
||||
//using Crestron.SimplSharpPro.DM;
|
||||
//using Crestron.SimplSharpPro.DM.Cards;
|
||||
|
||||
//using PepperDash.Essentials.Core;
|
||||
//using PepperDash.Essentials.DM;
|
||||
|
||||
//namespace PepperDash.Essentials.DM.Cards
|
||||
//{
|
||||
// public class DmInputCardControllerBase : IRoutingInputsOutputs
|
||||
// {
|
||||
// public string Key { get; private set; }
|
||||
// public uint Slot { get; private set; }
|
||||
// public abstract eDmInputCardType Type { get; }
|
||||
|
||||
// //public RoutingOutputPort BackplaneVideoOut { get; private set; }
|
||||
// //public RoutingOutputPort BackplaneAudioOut { get; private set; }
|
||||
|
||||
// public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; }
|
||||
|
||||
// public RoutingPortCollection<RoutingOutputPort> OutputPorts { get; private set; }
|
||||
|
||||
// public DmInputCardControllerBase(string key, uint slot)
|
||||
// {
|
||||
// Key = key;
|
||||
// Slot = slot;
|
||||
// //BackplaneAudioOut = new RoutingOutputPort("backplaneAudioOut", eRoutingSignalType.Audio,
|
||||
// // eRoutingPortConnectionType.BackplaneOnly, slot, this);
|
||||
// //BackplaneVideoOut = new RoutingOutputPort("backplaneVideoOut", eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.BackplaneOnly, slot, this);
|
||||
// //InputPorts = new RoutingPortCollection<RoutingInputPort>();
|
||||
// //OutputPorts = new RoutingPortCollection<RoutingOutputPort> { BackplaneAudioOut, BackplaneVideoOut };
|
||||
// }
|
||||
|
||||
// ///// <summary>
|
||||
// ///// Gets a physical port by name. Returns null if doesn't exist
|
||||
// ///// </summary>
|
||||
// //public RoutingInputPort GetInputPort(string key)
|
||||
// //{
|
||||
// // return InputPorts.FirstOrDefault(p => p.Key.Equals(key, StringComparison.OrdinalIgnoreCase));
|
||||
// //}
|
||||
|
||||
// ///// <summary>
|
||||
// ///// Gets a physical port by name. Returns null if doesn't exist
|
||||
// ///// </summary>
|
||||
// //public RoutingOutputPort GetOutputPort(string key)
|
||||
// //{
|
||||
// // return OutputPorts.FirstOrDefault(p => p.Key.Equals(key, StringComparison.OrdinalIgnoreCase));
|
||||
// //}
|
||||
// }
|
||||
|
||||
// public enum eDmInputCardType
|
||||
// {
|
||||
// None, DmcHd, DmcHdDsp, Dmc4kHd, Dmc4kHdDsp, Dmc4kC, Dmc4kCDsp
|
||||
// }
|
||||
//}
|
||||
@@ -1,79 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharpPro;
|
||||
using Crestron.SimplSharpPro.DeviceSupport;
|
||||
using Crestron.SimplSharpPro.DM;
|
||||
using Crestron.SimplSharpPro.DM.Cards;
|
||||
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.DM;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Cards
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public abstract class DmSingleOutputCardControllerBase// : IRoutingInputsOutputs
|
||||
{
|
||||
public string Key { get; private set; }
|
||||
public uint Slot { get; private set; }
|
||||
public abstract eDmOutputCardType Type { get; }
|
||||
|
||||
//public RoutingInputPort BackplaneAudioIn1 { get; private set; }
|
||||
//public RoutingInputPort BackplaneVideoIn1 { get; private set; }
|
||||
//public RoutingInputPort BackplaneAudioIn2 { get; private set; }
|
||||
//public RoutingInputPort BackplaneVideoIn2 { get; private set; }
|
||||
|
||||
//public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; }
|
||||
//public RoutingPortCollection<RoutingOutputPort> OutputPorts { get; private set; }
|
||||
|
||||
public DmSingleOutputCardControllerBase(string key, uint cardSlot)
|
||||
{
|
||||
Key = key;
|
||||
Slot = cardSlot;
|
||||
//BackplaneAudioIn1 = new RoutingInputPort("backplaneAudioIn1", eRoutingSignalType.Audio,
|
||||
// eRoutingPortConnectionType.BackplaneOnly, cardSlot, this);
|
||||
//BackplaneVideoIn1 = new RoutingInputPort("backplaneVideoIn1", eRoutingSignalType.Video,
|
||||
// eRoutingPortConnectionType.BackplaneOnly, cardSlot, this);
|
||||
//BackplaneAudioIn2 = new RoutingInputPort("backplaneAudioIn2", eRoutingSignalType.Audio,
|
||||
// eRoutingPortConnectionType.BackplaneOnly, cardSlot + 1, this);
|
||||
//BackplaneVideoIn2 = new RoutingInputPort("backplaneVideoIn2", eRoutingSignalType.Video,
|
||||
// eRoutingPortConnectionType.BackplaneOnly, cardSlot + 1, this);
|
||||
//InputPorts = new RoutingPortCollection<RoutingInputPort>
|
||||
//{
|
||||
// BackplaneAudioIn1,
|
||||
// BackplaneAudioIn2,
|
||||
// BackplaneVideoIn1,
|
||||
// BackplaneVideoIn2
|
||||
//};
|
||||
//OutputPorts = new RoutingPortCollection<RoutingOutputPort>();
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// Gets a physical port by name. Returns null if doesn't exist
|
||||
///// </summary>
|
||||
//public RoutingInputPort GetInputPort(string key)
|
||||
//{
|
||||
// return InputPorts.FirstOrDefault(p => p.Key.Equals(key, StringComparison.OrdinalIgnoreCase));
|
||||
//}
|
||||
|
||||
///// <summary>
|
||||
///// Gets a physical port by name. Returns null if doesn't exist
|
||||
///// </summary>
|
||||
//public RoutingOutputPort GetOutputPort(string key)
|
||||
//{
|
||||
// return OutputPorts.FirstOrDefault(p => p.Key.Equals(key, StringComparison.OrdinalIgnoreCase));
|
||||
//}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public enum eDmOutputCardType
|
||||
{
|
||||
None, Dmc4kCoHd, Dmc4kHdo, DmcCoHd, DmcSoHd
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharpPro;
|
||||
using Crestron.SimplSharpPro.DeviceSupport;
|
||||
using Crestron.SimplSharpPro.DM;
|
||||
using Crestron.SimplSharpPro.DM.Cards;
|
||||
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.DM;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Cards
|
||||
{
|
||||
public class Dmc4kCoHdSingleOutputCard : DmSingleOutputCardControllerBase
|
||||
{
|
||||
public override eDmOutputCardType Type
|
||||
{
|
||||
get { return eDmOutputCardType.Dmc4kCoHd; }
|
||||
}
|
||||
public Dmc4kCoHdSingle Card { get; private set; }
|
||||
|
||||
//public RoutingOutputPort DmOut1 { get; private set; }
|
||||
//public RoutingOutputPort DmOut2 { get; private set; }
|
||||
//public RoutingOutputPort HdmiOut1 { get; private set; }
|
||||
|
||||
public Dmc4kCoHdSingleOutputCard(string key, Dmc4kCoHdSingle card, uint slot)
|
||||
: base(key, slot)
|
||||
{
|
||||
Card = card;
|
||||
//DmOut1 = new RoutingOutputPort(DmPortName.DmOut1, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// eRoutingPortConnectionType.DmCat, null, this);
|
||||
//DmOut2 = new RoutingOutputPort(DmPortName.DmOut2, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// eRoutingPortConnectionType.DmCat, null, this);
|
||||
//HdmiOut1 = new RoutingOutputPort(DmPortName.HdmiOut1, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// eRoutingPortConnectionType.Hdmi, null, this);
|
||||
|
||||
//OutputPorts.AddRange(new[] { DmOut1, DmOut2, HdmiOut1 });
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
//using Crestron.SimplSharpPro;
|
||||
//using Crestron.SimplSharpPro.DeviceSupport;
|
||||
//using Crestron.SimplSharpPro.DM;
|
||||
//using Crestron.SimplSharpPro.DM.Cards;
|
||||
|
||||
//using PepperDash.Core;
|
||||
//using PepperDash.Essentials.Core;
|
||||
//using PepperDash.Essentials.DM;
|
||||
|
||||
//namespace PepperDash.Essentials.DM.Cards
|
||||
//{
|
||||
// public class Dmc4kHdoSingleOutputCard : DmSingleOutputCardControllerBase
|
||||
// {
|
||||
// public override eDmOutputCardType Type
|
||||
// {
|
||||
// get { return eDmOutputCardType.Dmc4kHdo; }
|
||||
// }
|
||||
// public Dmc4kHdoSingle Card { get; private set; }
|
||||
|
||||
// //public RoutingOutputPort AudioOut1 { get; private set; }
|
||||
// //public RoutingOutputPort AudioOut2 { get; private set; }
|
||||
// //public RoutingOutputPort HdmiOut1 { get; private set; }
|
||||
// //public RoutingOutputPort HdmiOut2 { get; private set; }
|
||||
|
||||
// public Dmc4kHdoSingleOutputCard(string key, Dmc4kHdoSingle card, uint slot)
|
||||
// : base(key, slot)
|
||||
// {
|
||||
// Card = card;
|
||||
// //AudioOut1 = new RoutingOutputPort(DmPortName.BalancedAudioOut1, eRoutingSignalType.Audio,
|
||||
// // eRoutingPortConnectionType.LineAudio, null, this);
|
||||
// //AudioOut2 = new RoutingOutputPort(DmPortName.BalancedAudioOut2, eRoutingSignalType.Audio,
|
||||
// // eRoutingPortConnectionType.LineAudio, null, this);
|
||||
// //HdmiOut1 = new RoutingOutputPort(DmPortName.HdmiOut1, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
// //HdmiOut2 = new RoutingOutputPort(DmPortName.HdmiOut2, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
|
||||
// //OutputPorts.AddRange(new[] { AudioOut1, AudioOut2, HdmiOut1, HdmiOut2 });
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
@@ -1,76 +0,0 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
//using Crestron.SimplSharpPro;
|
||||
//using Crestron.SimplSharpPro.DeviceSupport;
|
||||
//using Crestron.SimplSharpPro.DM;
|
||||
//using Crestron.SimplSharpPro.DM.Cards;
|
||||
|
||||
//using PepperDash.Essentials.Core;
|
||||
//using PepperDash.Essentials.DM;
|
||||
|
||||
//namespace PepperDash.Essentials.DM.Cards
|
||||
//{
|
||||
// public class Dmc4kCController : DmInputCardControllerBase
|
||||
// {
|
||||
// public override eDmInputCardType Type
|
||||
// {
|
||||
// get { return eDmInputCardType.Dmc4kC; }
|
||||
// }
|
||||
// public Dmc4kC Card { get; private set; }
|
||||
|
||||
// //public RoutingInputPortWithVideoStatuses DmIn { get; private set; }
|
||||
// //public RoutingOutputPort HdmiLoopOut { get; private set; }
|
||||
// //public RoutingOutputPort AudioLoopOut { get; private set; }
|
||||
|
||||
// public Dmc4kCController(string key, Dmc4kC card, uint slot)
|
||||
// : base(key, slot)
|
||||
// {
|
||||
// Card = card;
|
||||
// //DmIn = new RoutingInputPortWithVideoStatuses(DmPortName.DmIn, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.DmCat, null, this,
|
||||
// // VideoStatusHelper.GetDmInputStatusFuncs(Card.DmInput));
|
||||
|
||||
// //HdmiLoopOut = new RoutingOutputPort(DmPortName.HdmiLoopOut, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
// //AudioLoopOut = new RoutingOutputPort(DmPortName.AudioLoopOut, eRoutingSignalType.Audio,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
|
||||
// //InputPorts.Add(DmIn);
|
||||
// //OutputPorts.AddRange(new[] { HdmiLoopOut, AudioLoopOut });
|
||||
// }
|
||||
// }
|
||||
|
||||
// public class Dmc4kCDspController : DmInputCardControllerBase
|
||||
// {
|
||||
// public override eDmInputCardType Type
|
||||
// {
|
||||
// get { return eDmInputCardType.Dmc4kCDsp; }
|
||||
// }
|
||||
// public Dmc4kCDsp Card { get; private set; }
|
||||
|
||||
// //public RoutingInputPortWithVideoStatuses DmIn { get; private set; }
|
||||
// //public RoutingOutputPort HdmiLoopOut { get; private set; }
|
||||
// //public RoutingOutputPort AudioLoopOut { get; private set; }
|
||||
|
||||
// public Dmc4kCDspController(string key, Dmc4kCDsp card, uint slot)
|
||||
// : base(key, slot)
|
||||
// {
|
||||
// Card = card;
|
||||
// //DmIn = new RoutingInputPortWithVideoStatuses(DmPortName.DmIn, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.DmCat, null, this,
|
||||
// // VideoStatusHelper.GetDmInputStatusFuncs(Card.DmInput));
|
||||
|
||||
// //HdmiLoopOut = new RoutingOutputPort(DmPortName.HdmiLoopOut, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
// //AudioLoopOut = new RoutingOutputPort(DmPortName.AudioLoopOut, eRoutingSignalType.Audio,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
|
||||
// //InputPorts.Add(DmIn);
|
||||
// //OutputPorts.AddRange(new[] { HdmiLoopOut, AudioLoopOut });
|
||||
// }
|
||||
// }
|
||||
|
||||
//}
|
||||
@@ -1,82 +0,0 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
//using Crestron.SimplSharpPro;
|
||||
//using Crestron.SimplSharpPro.DeviceSupport;
|
||||
//using Crestron.SimplSharpPro.DM;
|
||||
//using Crestron.SimplSharpPro.DM.Cards;
|
||||
|
||||
//using PepperDash.Essentials.Core;
|
||||
//using PepperDash.Essentials.DM;
|
||||
|
||||
//namespace PepperDash.Essentials.DM.Cards
|
||||
//{
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public class Dmc4kHdController : DmInputCardControllerBase
|
||||
// {
|
||||
// public Dmc4kHd Card { get; private set; }
|
||||
// public override eDmInputCardType Type
|
||||
// {
|
||||
// get { return eDmInputCardType.Dmc4kHd; }
|
||||
// }
|
||||
|
||||
// public RoutingInputPortWithVideoStatuses HdmiIn { get; private set; }
|
||||
// public RoutingOutputPort HdmiLoopOut { get; private set; }
|
||||
// public RoutingOutputPort AudioLoopOut { get; private set; }
|
||||
|
||||
// public Dmc4kHdController(string key, Dmc4kHd card, uint slot)
|
||||
// : base(key, slot)
|
||||
// {
|
||||
// Card = card;
|
||||
// HdmiIn = new RoutingInputPortWithVideoStatuses(DmPortName.HdmiIn, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// eRoutingPortConnectionType.Hdmi, null, this,
|
||||
// VideoStatusHelper.GetHdmiInputStatusFuncs(Card.HdmiInput));
|
||||
|
||||
// HdmiLoopOut = new RoutingOutputPort(DmPortName.HdmiLoopOut, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// eRoutingPortConnectionType.Hdmi, null, this);
|
||||
// AudioLoopOut = new RoutingOutputPort(DmPortName.AudioLoopOut, eRoutingSignalType.Audio,
|
||||
// eRoutingPortConnectionType.Hdmi, null, this);
|
||||
|
||||
// InputPorts.Add(HdmiIn);
|
||||
// OutputPorts.AddRange(new[] { HdmiLoopOut, AudioLoopOut });
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public class Dmc4kHdDspController : DmInputCardControllerBase
|
||||
// {
|
||||
// public Dmc4kHdDsp Card { get; private set; }
|
||||
// public override eDmInputCardType Type
|
||||
// {
|
||||
// get { return eDmInputCardType.Dmc4kHdDsp; }
|
||||
// }
|
||||
|
||||
// //public RoutingInputPortWithVideoStatuses HdmiIn { get; private set; }
|
||||
// //public RoutingOutputPort HdmiLoopOut { get; private set; }
|
||||
// //public RoutingOutputPort AudioLoopOut { get; private set; }
|
||||
|
||||
// public Dmc4kHdDspController(string key, Dmc4kHdDsp card, uint slot)
|
||||
// : base(key, slot)
|
||||
// {
|
||||
// Card = card;
|
||||
// //HdmiIn = new RoutingInputPortWithVideoStatuses(DmPortName.HdmiIn, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this,
|
||||
// // VideoStatusHelper.GetHdmiInputStatusFuncs(Card.HdmiInput));
|
||||
|
||||
// //HdmiLoopOut = new RoutingOutputPort(DmPortName.HdmiLoopOut, eRoutingSignalType.Audio | eRoutingSignalType.Video,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
// //AudioLoopOut = new RoutingOutputPort(DmPortName.AudioLoopOut, eRoutingSignalType.Audio,
|
||||
// // eRoutingPortConnectionType.Hdmi, null, this);
|
||||
|
||||
// //InputPorts.Add(HdmiIn);
|
||||
// //OutputPorts.AddRange(new[] { HdmiLoopOut, AudioLoopOut });
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
@@ -5,7 +5,6 @@ using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.DM.Cards;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Config
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ using Crestron.SimplSharpPro.DM;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.DM.Cards;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Config
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ using Crestron.SimplSharpPro.DM;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.DM.Cards;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Config
|
||||
{
|
||||
|
||||
@@ -5,7 +5,6 @@ using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.DM.Cards;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Config
|
||||
{
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
|
||||
//using Crestron.SimplSharpPro.DM.Streaming;
|
||||
|
||||
//using PepperDash.Core;
|
||||
//using PepperDash.Essentials.Core;
|
||||
|
||||
//namespace PepperDash.Essentials.DM.Endpoints.NVX
|
||||
//{
|
||||
// public class DmNvx35xController: DmNvxControllerBase
|
||||
// {
|
||||
|
||||
|
||||
// }
|
||||
//}
|
||||
@@ -1,30 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharpPro.DM.Streaming;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using PepperDash.Core;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Endpoints.NVX
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the "properties" property of a DM NVX device config
|
||||
/// </summary>
|
||||
public class DmNvxConfig
|
||||
{
|
||||
[JsonProperty("control")]
|
||||
public ControlPropertiesConfig Control { get; set; }
|
||||
|
||||
[JsonProperty("parrentDeviceKey")]
|
||||
public string ParentDeviceKey { get; set; }
|
||||
|
||||
[JsonProperty("deviceMode")]
|
||||
public eDeviceMode DeviceMode { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharpPro;
|
||||
using Crestron.SimplSharpPro.DM.Streaming;
|
||||
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core;
|
||||
|
||||
namespace PepperDash.Essentials.DM.Endpoints.NVX
|
||||
{
|
||||
public abstract class DmNvxControllerBase: CrestronGenericBaseDevice
|
||||
{
|
||||
public DmNvx35x DmNvx { get; private set; }
|
||||
|
||||
|
||||
|
||||
public abstract StringFeedback ActiveVideoInputFeedback { get; protected set; }
|
||||
public RoutingInputPortWithVideoStatuses AnyVideoInput { get; protected set; }
|
||||
|
||||
|
||||
public DmNvxControllerBase(string key, string name, DmNvxBaseClass hardware)
|
||||
: base(key, name, hardware)
|
||||
{
|
||||
AddToFeedbackList(ActiveVideoInputFeedback);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,12 +89,6 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="AirMedia\AirMediaPropertiesConfig.cs" />
|
||||
<Compile Include="AirMedia\AirMediaController.cs" />
|
||||
<Compile Include="Cards REMOVE\Dmc4kHdoSingleOutputCard.cs" />
|
||||
<Compile Include="Cards REMOVE\Dmc4kCoHdSingleOutputCard.cs" />
|
||||
<Compile Include="Cards REMOVE\DmOutputCardBase.cs" />
|
||||
<Compile Include="Cards REMOVE\DmcC4kInputCard.cs" />
|
||||
<Compile Include="Cards REMOVE\DmcHD4kInputCard.cs" />
|
||||
<Compile Include="Cards REMOVE\DmInputCardBase.cs" />
|
||||
<Compile Include="Chassis\DmBladeChassisController.cs" />
|
||||
<Compile Include="Chassis\DmCardAudioOutput.cs" />
|
||||
<Compile Include="Chassis\DmChassisController.cs" />
|
||||
@@ -110,9 +104,6 @@
|
||||
<Compile Include="Config\HdMdNxM4kEPropertiesConfig.cs" />
|
||||
<Compile Include="Config\InputPropertiesConfig.cs" />
|
||||
<Compile Include="DmPortName.cs" />
|
||||
<Compile Include="Endpoints\NVX\DmNvx35xController.cs" />
|
||||
<Compile Include="Endpoints\NVX\DmNvxConfig.cs" />
|
||||
<Compile Include="Endpoints\NVX\DmNvxControllerBase.cs" />
|
||||
<Compile Include="Endpoints\DGEs\DgeController.cs" />
|
||||
<Compile Include="Endpoints\DGEs\DgePropertiesConfig.cs" />
|
||||
<Compile Include="DmLite\HdMdxxxCEController.cs" />
|
||||
@@ -141,10 +132,6 @@
|
||||
<Compile Include="Extensions.cs" />
|
||||
<Compile Include="Config\DeviceFactory.cs" />
|
||||
<Compile Include="IDmHdmiInputExtensions.cs" />
|
||||
<Compile Include="MOVE IBasicVideoStatusFeedbacks.cs" />
|
||||
<Compile Include="Nvx\NvxDirectorController.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="VideoStatusHelpers.cs" />
|
||||
<None Include="app.config" />
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
using PepperDash.Essentials.Core;
|
||||
|
||||
namespace PepperDash.Essentials.DM
|
||||
{
|
||||
public interface IBasicVideoStatusFeedbacks
|
||||
{
|
||||
BoolFeedback HasVideoStatusFeedback { get; }
|
||||
BoolFeedback HdcpActiveFeedback { get; }
|
||||
StringFeedback HdcpStateFeedback { get; }
|
||||
StringFeedback VideoResolutionFeedback { get; }
|
||||
BoolFeedback VideoSyncFeedback { get; }
|
||||
}
|
||||
}
|
||||
@@ -1,746 +0,0 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using Crestron.SimplSharp;
|
||||
//using Crestron.SimplSharpPro;
|
||||
//using Crestron.SimplSharpPro.DM;
|
||||
//using Crestron.SimplSharpPro.DM.Cards;
|
||||
//using Crestron.SimplSharpPro.DM.Streaming;
|
||||
//using Crestron.SimplSharpPro.DM.Endpoints;
|
||||
//using Crestron.SimplSharpPro.DM.Endpoints.Receivers;
|
||||
|
||||
//using PepperDash.Core;
|
||||
//using PepperDash.Essentials.Core;
|
||||
//using PepperDash.Essentials.DM.Cards;
|
||||
//using PepperDash.Essentials.DM.Config;
|
||||
|
||||
//namespace PepperDash.Essentials.DM
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Builds a controller for basic DM-RMCs with Com and IR ports and no control functions
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public class NvxDirectorController : CrestronGenericBaseDevice, IRoutingInputsOutputs, IRouting, IHasFeedback//, ICardPortsDevice
|
||||
// {
|
||||
// public NvxDirectorController Chassis { get; private set; }
|
||||
|
||||
// // Feedbacks for EssentialDM
|
||||
// public Dictionary<uint, IntFeedback> VideoOutputFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, IntFeedback> AudioOutputFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, BoolFeedback> VideoInputSyncFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, BoolFeedback> InputEndpointOnlineFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, BoolFeedback> OutputEndpointOnlineFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, StringFeedback> InputNameFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, StringFeedback> OutputNameFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, StringFeedback> OutputVideoRouteNameFeedbacks { get; private set; }
|
||||
// public Dictionary<uint, StringFeedback> OutputAudioRouteNameFeedbacks { get; private set; }
|
||||
|
||||
|
||||
// // Need a couple Lists of generic Backplane ports
|
||||
// public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; }
|
||||
// public RoutingPortCollection<RoutingOutputPort> OutputPorts { get; private set; }
|
||||
|
||||
// public Dictionary<uint, string> TxDictionary { get; set; }
|
||||
// public Dictionary<uint, string> RxDictionary { get; set; }
|
||||
|
||||
// //public Dictionary<uint, DmInputCardControllerBase> InputCards { get; private set; }
|
||||
// //public Dictionary<uint, DmSingleOutputCardControllerBase> OutputCards { get; private set; }
|
||||
|
||||
// public Dictionary<uint, string> InputNames { get; set; }
|
||||
// public Dictionary<uint, string> OutputNames { get; set; }
|
||||
// public Dictionary<uint, DmCardAudioOutputController> VolumeControls { get; private set; }
|
||||
|
||||
// public const int RouteOffTime = 500;
|
||||
// Dictionary<PortNumberType, CTimer> RouteOffTimers = new Dictionary<PortNumberType, CTimer>();
|
||||
|
||||
// /// <summary>
|
||||
// /// Factory method to create a new chassis controller from config data. Limited to 8x8 right now
|
||||
// /// </summary>
|
||||
// public static NvxDirectorController GetNvxDirectorController(string key, string name,
|
||||
// string type, DMChassisPropertiesConfig properties)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// type = type.ToLower();
|
||||
// uint ipid = properties.Control.IpIdInt; // Convert.ToUInt16(properties.Id, 16);
|
||||
// NvxDirectorController controller = null;
|
||||
|
||||
|
||||
// if (type == "dmmd8x8")
|
||||
// {
|
||||
// controller = new NvxDirectorController(key, name, new DmMd8x8(ipid, Global.ControlSystem));
|
||||
|
||||
// // add the cards and port names
|
||||
// foreach (var kvp in properties.InputSlots)
|
||||
// controller.AddInputCard(kvp.Value, kvp.Key);
|
||||
// foreach (var kvp in properties.OutputSlots) {
|
||||
// controller.AddOutputCard(kvp.Value, kvp.Key);
|
||||
|
||||
// }
|
||||
|
||||
// foreach (var kvp in properties.VolumeControls)
|
||||
// {
|
||||
// // get the card
|
||||
// // check it for an audio-compatible type
|
||||
// // make a something-something that will make it work
|
||||
// // retire to mountain village
|
||||
// var outNum = kvp.Key;
|
||||
// var card = controller.Chassis.Outputs[outNum].Card;
|
||||
// Audio.Output audio = null;
|
||||
// if (card is DmcHdo)
|
||||
// audio = (card as DmcHdo).Audio;
|
||||
// else if (card is Dmc4kHdo)
|
||||
// audio = (card as Dmc4kHdo).Audio;
|
||||
// if (audio == null)
|
||||
// continue;
|
||||
// // wire up the audio to something here...
|
||||
// controller.AddVolumeControl(outNum, audio);
|
||||
// }
|
||||
|
||||
// controller.InputNames = properties.InputNames;
|
||||
// controller.OutputNames = properties.OutputNames;
|
||||
// return controller;
|
||||
// }
|
||||
// else if (type == "dmmd16x16") {
|
||||
// controller = new NvxDirectorController(key, name, new DmMd16x16(ipid, Global.ControlSystem));
|
||||
|
||||
// // add the cards and port names
|
||||
// foreach (var kvp in properties.InputSlots)
|
||||
// controller.AddInputCard(kvp.Value, kvp.Key);
|
||||
// foreach (var kvp in properties.OutputSlots) {
|
||||
// controller.AddOutputCard(kvp.Value, kvp.Key);
|
||||
|
||||
// }
|
||||
|
||||
// foreach (var kvp in properties.VolumeControls) {
|
||||
// // get the card
|
||||
// // check it for an audio-compatible type
|
||||
// // make a something-something that will make it work
|
||||
// // retire to mountain village
|
||||
// var outNum = kvp.Key;
|
||||
// var card = controller.Chassis.Outputs[outNum].Card;
|
||||
// Audio.Output audio = null;
|
||||
// if (card is DmcHdo)
|
||||
// audio = (card as DmcHdo).Audio;
|
||||
// else if (card is Dmc4kHdo)
|
||||
// audio = (card as Dmc4kHdo).Audio;
|
||||
// if (audio == null)
|
||||
// continue;
|
||||
// // wire up the audio to something here...
|
||||
// controller.AddVolumeControl(outNum, audio);
|
||||
// }
|
||||
|
||||
// controller.InputNames = properties.InputNames;
|
||||
// controller.OutputNames = properties.OutputNames;
|
||||
// return controller;
|
||||
// }
|
||||
// }
|
||||
// catch (System.Exception e)
|
||||
// {
|
||||
// Debug.Console(0, "Error creating DM chassis:\r{0}", e);
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// /// <param name="key"></param>
|
||||
// /// <param name="name"></param>
|
||||
// /// <param name="chassis"></param>
|
||||
// public NvxDirectorController(string key, string name, DmMDMnxn chassis)
|
||||
// : base(key, name, chassis)
|
||||
// {
|
||||
// Chassis = chassis;
|
||||
// InputPorts = new RoutingPortCollection<RoutingInputPort>();
|
||||
// OutputPorts = new RoutingPortCollection<RoutingOutputPort>();
|
||||
// VolumeControls = new Dictionary<uint, DmCardAudioOutputController>();
|
||||
// TxDictionary = new Dictionary<uint, string>();
|
||||
// RxDictionary = new Dictionary<uint, string>();
|
||||
// IsOnline.OutputChange += new EventHandler<FeedbackEventArgs>(IsOnline_OutputChange);
|
||||
// //IsOnline.OutputChange += new EventHandler<EventArgs>(this.IsOnline_OutputChange);
|
||||
// Chassis.DMInputChange += new DMInputEventHandler(Chassis_DMInputChange);
|
||||
// //Chassis.DMSystemChange += new DMSystemEventHandler(Chassis_DMSystemChange);
|
||||
// Chassis.DMOutputChange += new DMOutputEventHandler(Chassis_DMOutputChange);
|
||||
// VideoOutputFeedbacks = new Dictionary<uint, IntFeedback>();
|
||||
// AudioOutputFeedbacks = new Dictionary<uint, IntFeedback>();
|
||||
// VideoInputSyncFeedbacks = new Dictionary<uint, BoolFeedback>();
|
||||
// InputNameFeedbacks = new Dictionary<uint, StringFeedback>();
|
||||
// OutputNameFeedbacks = new Dictionary<uint, StringFeedback>();
|
||||
// OutputVideoRouteNameFeedbacks = new Dictionary<uint, StringFeedback>();
|
||||
// OutputAudioRouteNameFeedbacks = new Dictionary<uint, StringFeedback>();
|
||||
// InputEndpointOnlineFeedbacks = new Dictionary<uint, BoolFeedback>();
|
||||
// OutputEndpointOnlineFeedbacks = new Dictionary<uint, BoolFeedback>();
|
||||
|
||||
// for (uint x = 1; x <= Chassis.NumberOfOutputs; x++)
|
||||
// {
|
||||
// var tempX = x;
|
||||
|
||||
// VideoOutputFeedbacks[tempX] = new IntFeedback(() => {
|
||||
// if (Chassis.Outputs[tempX].VideoOutFeedback != null) { return (ushort)Chassis.Outputs[tempX].VideoOutFeedback.Number;}
|
||||
// else { return 0; };
|
||||
// });
|
||||
// AudioOutputFeedbacks[tempX] = new IntFeedback(() => {
|
||||
// if (Chassis.Outputs[tempX].AudioOutFeedback != null) { return (ushort)Chassis.Outputs[tempX].AudioOutFeedback.Number; }
|
||||
// else { return 0; };
|
||||
// });
|
||||
// VideoInputSyncFeedbacks[tempX] = new BoolFeedback(() => {
|
||||
// return Chassis.Inputs[tempX].VideoDetectedFeedback.BoolValue;
|
||||
// });
|
||||
// InputNameFeedbacks[tempX] = new StringFeedback(() => {
|
||||
// if (Chassis.Inputs[tempX].NameFeedback.StringValue != null)
|
||||
// {
|
||||
// return Chassis.Inputs[tempX].NameFeedback.StringValue;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return "";
|
||||
// }
|
||||
// });
|
||||
// OutputNameFeedbacks[tempX] = new StringFeedback(() => {
|
||||
// if (Chassis.Outputs[tempX].NameFeedback.StringValue != null)
|
||||
// {
|
||||
// return Chassis.Outputs[tempX].NameFeedback.StringValue;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return "";
|
||||
// }
|
||||
// });
|
||||
// OutputVideoRouteNameFeedbacks[tempX] = new StringFeedback(() =>
|
||||
// {
|
||||
// if (Chassis.Outputs[tempX].VideoOutFeedback != null)
|
||||
// {
|
||||
// return Chassis.Outputs[tempX].VideoOutFeedback.NameFeedback.StringValue;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return "";
|
||||
// }
|
||||
// });
|
||||
// OutputAudioRouteNameFeedbacks[tempX] = new StringFeedback(() =>
|
||||
// {
|
||||
// if (Chassis.Outputs[tempX].AudioOutFeedback != null)
|
||||
// {
|
||||
// return Chassis.Outputs[tempX].AudioOutFeedback.NameFeedback.StringValue;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return "";
|
||||
|
||||
// }
|
||||
// });
|
||||
// InputEndpointOnlineFeedbacks[tempX] = new BoolFeedback(() => { return Chassis.Inputs[tempX].EndpointOnlineFeedback; });
|
||||
|
||||
// OutputEndpointOnlineFeedbacks[tempX] = new BoolFeedback(() => { return Chassis.Outputs[tempX].EndpointOnlineFeedback; });
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <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);
|
||||
|
||||
// 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")
|
||||
// {
|
||||
// new DmcC(number, this.Chassis);
|
||||
// AddDmInCardPorts(number);
|
||||
// }
|
||||
// else if (type == "dmcCDsp")
|
||||
// {
|
||||
// new DmcCDsp(number, this.Chassis);
|
||||
// AddDmInCardPorts(number);
|
||||
// }
|
||||
// else if (type == "dmc4kC")
|
||||
// {
|
||||
// new Dmc4kC(number, this.Chassis);
|
||||
// AddDmInCardPorts(number);
|
||||
// }
|
||||
// else if (type == "dmc4kCDsp")
|
||||
// {
|
||||
// new Dmc4kCDsp(number, this.Chassis);
|
||||
// AddDmInCardPorts(number);
|
||||
// }
|
||||
// else if (type == "dmc4kzC")
|
||||
// {
|
||||
// new Dmc4kzC(number, this.Chassis);
|
||||
// AddDmInCardPorts(number);
|
||||
// }
|
||||
// else if (type == "dmc4kzCDsp")
|
||||
// {
|
||||
// new Dmc4kzCDsp(number, this.Chassis);
|
||||
// AddDmInCardPorts(number);
|
||||
// }
|
||||
// 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(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);
|
||||
// }
|
||||
// }
|
||||
|
||||
// void AddDmInCardPorts(uint number)
|
||||
// {
|
||||
// AddInputPortWithDebug(number, "dmIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmCat);
|
||||
// AddInCardHdmiAndAudioLoopPorts(number);
|
||||
// }
|
||||
|
||||
// void AddHdmiInCardPorts(uint number, ICec cecPort)
|
||||
// {
|
||||
// AddInputPortWithDebug(number, "hdmiIn", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, cecPort);
|
||||
// AddInCardHdmiAndAudioLoopPorts(number);
|
||||
// }
|
||||
|
||||
// void AddInCardHdmiAndAudioLoopPorts(uint number)
|
||||
// {
|
||||
// AddOutputPortWithDebug(number, "hdmiLoopOut", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, null);
|
||||
// AddOutputPortWithDebug(number, "audioLoopOut", eRoutingSignalType.Audio, eRoutingPortConnectionType.Hdmi, null);
|
||||
// }
|
||||
|
||||
// void AddInCardHdmiLoopPort(uint number)
|
||||
// {
|
||||
// AddOutputPortWithDebug(number, "hdmiLoopOut", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, null);
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// /// <param name="type"></param>
|
||||
// /// <param name="number"></param>
|
||||
// public void AddOutputCard(string type, uint number)
|
||||
// {
|
||||
// Debug.Console(2, this, "Adding output card '{0}', slot {1}", type, number);
|
||||
// if (type == "dmc4kHdo")
|
||||
// {
|
||||
// var outputCard = new Dmc4kHdoSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// var cecPort2 = outputCard.Card2.HdmiOutput;
|
||||
// AddDmcHdoPorts(number, cecPort1, cecPort2);
|
||||
// }
|
||||
// else if (type == "dmcHdo")
|
||||
// {
|
||||
// var outputCard = new DmcHdoSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// var cecPort2 = outputCard.Card2.HdmiOutput;
|
||||
// AddDmcHdoPorts(number, cecPort1, cecPort2);
|
||||
// }
|
||||
// else if (type == "dmc4kCoHd")
|
||||
// {
|
||||
// var outputCard = new Dmc4kCoHdSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// AddDmcCoPorts(number, cecPort1);
|
||||
// }
|
||||
// else if (type == "dmc4kzCoHd")
|
||||
// {
|
||||
// var outputCard = new Dmc4kzCoHdSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// AddDmcCoPorts(number, cecPort1);
|
||||
// }
|
||||
// else if (type == "dmcCoHd")
|
||||
// {
|
||||
// var outputCard = new DmcCoHdSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// AddDmcCoPorts(number, cecPort1);
|
||||
// }
|
||||
// else if (type == "dmCatoHd")
|
||||
// {
|
||||
// var outputCard = new DmcCatoHdSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// AddDmcCoPorts(number, cecPort1);
|
||||
// }
|
||||
// else if (type == "dmcSoHd")
|
||||
// {
|
||||
// var outputCard = new DmcSoHdSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// AddOutputPortWithDebug(number, "dmOut1", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmMmFiber, 2 * (number - 1) + 1);
|
||||
// AddOutputPortWithDebug(number, "hdmiOut1", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, 2 * (number - 1) + 1, cecPort1);
|
||||
// AddOutputPortWithDebug(number, "dmOut2", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmMmFiber, 2 * (number - 1) + 2);
|
||||
|
||||
// }
|
||||
// else if (type == "dmcS2oHd")
|
||||
// {
|
||||
// var outputCard = new DmcS2oHdSingle(number, Chassis);
|
||||
// var cecPort1 = outputCard.Card1.HdmiOutput;
|
||||
// AddOutputPortWithDebug(number, "dmOut1", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmSmFiber, 2 * (number - 1) + 1);
|
||||
// AddOutputPortWithDebug(number, "hdmiOut1", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, 2 * (number - 1) + 1, cecPort1);
|
||||
// AddOutputPortWithDebug(number, "dmOut2", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmSmFiber, 2 * (number - 1) + 2);
|
||||
// }
|
||||
// else if (type == "dmcStro")
|
||||
// {
|
||||
// var outputCard = new DmcStroSingle(number, Chassis);
|
||||
// AddOutputPortWithDebug(number, "streamOut", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Streaming, 2 * (number - 1) + 1);
|
||||
// }
|
||||
|
||||
// else
|
||||
// Debug.Console(1, this, " WARNING: Output card type '{0}' is not available", type);
|
||||
// }
|
||||
|
||||
// void AddDmcHdoPorts(uint number, ICec cecPort1, ICec cecPort2)
|
||||
// {
|
||||
// AddOutputPortWithDebug(number, "hdmiOut1", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, 2 * (number - 1) + 1, cecPort1);
|
||||
// AddOutputPortWithDebug(number, "audioOut1", eRoutingSignalType.Audio, eRoutingPortConnectionType.LineAudio, 2 * (number - 1) + 1);
|
||||
// AddOutputPortWithDebug(number, "hdmiOut2", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, 2 * (number - 1) + 2, cecPort2);
|
||||
// AddOutputPortWithDebug(number, "audioOut2", eRoutingSignalType.Audio, eRoutingPortConnectionType.LineAudio, 2 * (number - 1) + 2);
|
||||
// }
|
||||
|
||||
// void AddDmcCoPorts(uint number, ICec cecPort1)
|
||||
// {
|
||||
// AddOutputPortWithDebug(number, "dmOut1", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmCat, 2 * (number - 1) + 1);
|
||||
// AddOutputPortWithDebug(number, "hdmiOut1", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.Hdmi, 2 * (number - 1) + 1, cecPort1);
|
||||
// AddOutputPortWithDebug(number, "dmOut2", eRoutingSignalType.Audio | eRoutingSignalType.Video, eRoutingPortConnectionType.DmCat, 2 * (number - 1) + 2);
|
||||
// }
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// Adds InputPort
|
||||
// /// </summary>
|
||||
// void AddInputPortWithDebug(uint cardNum, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType)
|
||||
// {
|
||||
// var portKey = string.Format("inputCard{0}--{1}", cardNum, portName);
|
||||
// Debug.Console(2, this, "Adding input port '{0}'", portKey);
|
||||
// var inputPort = new RoutingInputPort(portKey, sigType, portType, cardNum, this);
|
||||
|
||||
// InputPorts.Add(inputPort);
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Adds InputPort and sets Port as ICec object
|
||||
// /// </summary>
|
||||
// void AddInputPortWithDebug(uint cardNum, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType, ICec cecPort)
|
||||
// {
|
||||
// var portKey = string.Format("inputCard{0}--{1}", cardNum, portName);
|
||||
// Debug.Console(2, this, "Adding input port '{0}'", portKey);
|
||||
// var inputPort = new RoutingInputPort(portKey, sigType, portType, cardNum, this);
|
||||
|
||||
// if (cecPort != null)
|
||||
// inputPort.Port = cecPort;
|
||||
|
||||
// InputPorts.Add(inputPort);
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Adds OutputPort
|
||||
// /// </summary>
|
||||
// void AddOutputPortWithDebug(uint cardNum, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType, object selector)
|
||||
// {
|
||||
// var portKey = string.Format("outputCard{0}--{1}", cardNum, portName);
|
||||
// Debug.Console(2, this, "Adding output port '{0}'", portKey);
|
||||
// OutputPorts.Add(new RoutingOutputPort(portKey, sigType, portType, selector, this));
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Adds OutputPort and sets Port as ICec object
|
||||
// /// </summary>
|
||||
// void AddOutputPortWithDebug(uint cardNum, string portName, eRoutingSignalType sigType, eRoutingPortConnectionType portType, object selector, ICec cecPort)
|
||||
// {
|
||||
// var portKey = string.Format("outputCard{0}--{1}", cardNum, portName);
|
||||
// Debug.Console(2, this, "Adding output port '{0}'", portKey);
|
||||
// var outputPort = new RoutingOutputPort(portKey, sigType, portType, selector, this);
|
||||
|
||||
// if (cecPort != null)
|
||||
// outputPort.Port = cecPort;
|
||||
|
||||
// OutputPorts.Add(outputPort);
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// void AddVolumeControl(uint number, Audio.Output audio)
|
||||
// {
|
||||
// VolumeControls.Add(number, new DmCardAudioOutputController(audio));
|
||||
// }
|
||||
|
||||
// //public void SetInputHdcpSupport(uint input, ePdtHdcpSupport hdcpSetting)
|
||||
// //{
|
||||
|
||||
// //}
|
||||
|
||||
|
||||
// void Chassis_DMSystemChange(Switch device, DMSystemEventArgs args) {
|
||||
|
||||
// }
|
||||
// void Chassis_DMInputChange(Switch device, DMInputEventArgs args) {
|
||||
// //Debug.Console(2, this, "DMSwitch:{0} Input:{1} Event:{2}'", this.Name, args.Number, args.EventId.ToString());
|
||||
|
||||
// switch (args.EventId) {
|
||||
// case (DMInputEventIds.OnlineFeedbackEventId): {
|
||||
// Debug.Console(2, this, "DMINput OnlineFeedbackEventId for input: {0}. State: {1}", args.Number, device.Inputs[args.Number].EndpointOnlineFeedback);
|
||||
// InputEndpointOnlineFeedbacks[args.Number].FireUpdate();
|
||||
// break;
|
||||
// }
|
||||
// case (DMInputEventIds.VideoDetectedEventId): {
|
||||
// Debug.Console(2, this, "DM Input {0} VideoDetectedEventId", args.Number);
|
||||
// VideoInputSyncFeedbacks[args.Number].FireUpdate();
|
||||
// break;
|
||||
// }
|
||||
// case (DMInputEventIds.InputNameEventId): {
|
||||
// Debug.Console(2, this, "DM Input {0} NameFeedbackEventId", args.Number);
|
||||
// InputNameFeedbacks[args.Number].FireUpdate();
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// ///
|
||||
// /// </summary>
|
||||
// void Chassis_DMOutputChange(Switch device, DMOutputEventArgs args)
|
||||
// {
|
||||
|
||||
// //This should be a switch case JTA 2018-07-02
|
||||
// var output = args.Number;
|
||||
// if (args.EventId == DMOutputEventIds.VolumeEventId &&
|
||||
// VolumeControls.ContainsKey(output))
|
||||
// {
|
||||
// VolumeControls[args.Number].VolumeEventFromChassis();
|
||||
// }
|
||||
// else if (args.EventId == DMOutputEventIds.OnlineFeedbackEventId)
|
||||
// {
|
||||
// OutputEndpointOnlineFeedbacks[output].FireUpdate();
|
||||
// }
|
||||
// else if (args.EventId == DMOutputEventIds.VideoOutEventId)
|
||||
// {
|
||||
// if (Chassis.Outputs[output].VideoOutFeedback != null)
|
||||
// {
|
||||
// Debug.Console(2, this, "DMSwitchVideo:{0} Routed Input:{1} Output:{2}'", this.Name, Chassis.Outputs[output].VideoOutFeedback.Number, output);
|
||||
// }
|
||||
// if (VideoOutputFeedbacks.ContainsKey(output))
|
||||
// {
|
||||
// VideoOutputFeedbacks[output].FireUpdate();
|
||||
|
||||
// }
|
||||
// if (OutputVideoRouteNameFeedbacks.ContainsKey(output))
|
||||
// {
|
||||
// OutputVideoRouteNameFeedbacks[output].FireUpdate();
|
||||
// }
|
||||
// }
|
||||
// else if (args.EventId == DMOutputEventIds.AudioOutEventId)
|
||||
// {
|
||||
// if (Chassis.Outputs[output].AudioOutFeedback != null)
|
||||
// {
|
||||
// Debug.Console(2, this, "DMSwitchAudio:{0} Routed Input:{1} Output:{2}'", this.Name, Chassis.Outputs[output].AudioOutFeedback.Number, output);
|
||||
// }
|
||||
// if (AudioOutputFeedbacks.ContainsKey(output))
|
||||
// {
|
||||
// AudioOutputFeedbacks[output].FireUpdate();
|
||||
// }
|
||||
// }
|
||||
// else if (args.EventId == DMOutputEventIds.OutputNameEventId)
|
||||
// {
|
||||
// Debug.Console(2, this, "DM Output {0} NameFeedbackEventId", output);
|
||||
// OutputNameFeedbacks[output].FireUpdate();
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// /// <param name="pnt"></param>
|
||||
// void StartOffTimer(PortNumberType pnt)
|
||||
// {
|
||||
// if (RouteOffTimers.ContainsKey(pnt))
|
||||
// return;
|
||||
// RouteOffTimers[pnt] = new CTimer(o =>
|
||||
// {
|
||||
// ExecuteSwitch(0, pnt.Number, pnt.Type);
|
||||
// }, RouteOffTime);
|
||||
// }
|
||||
|
||||
|
||||
// // Send out sigs when coming online
|
||||
// void IsOnline_OutputChange(object sender, EventArgs e)
|
||||
// {
|
||||
// if (IsOnline.BoolValue)
|
||||
// {
|
||||
// if (InputNames != null)
|
||||
// foreach (var kvp in InputNames)
|
||||
// Chassis.Inputs[kvp.Key].Name.StringValue = kvp.Value;
|
||||
// if (OutputNames != null)
|
||||
// foreach(var kvp in OutputNames)
|
||||
// Chassis.Outputs[kvp.Key].Name.StringValue = kvp.Value;
|
||||
// }
|
||||
// }
|
||||
|
||||
// #region IRouting Members
|
||||
|
||||
// public void ExecuteSwitch(object inputSelector, object outputSelector, eRoutingSignalType sigType)
|
||||
// {
|
||||
// Debug.Console(2, this, "Making an awesome DM route from {0} to {1} {2}", inputSelector, outputSelector, sigType);
|
||||
|
||||
// var input = Convert.ToUInt32(inputSelector); // Cast can sometimes fail
|
||||
// var output = Convert.ToUInt32(outputSelector);
|
||||
// // Check to see if there's an off timer waiting on this and if so, cancel
|
||||
// var key = new PortNumberType(output, sigType);
|
||||
// if (input == 0)
|
||||
// {
|
||||
// StartOffTimer(key);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if(RouteOffTimers.ContainsKey(key))
|
||||
// {
|
||||
// Debug.Console(2, this, "{0} cancelling route off due to new source", output);
|
||||
// RouteOffTimers[key].Stop();
|
||||
// RouteOffTimers.Remove(key);
|
||||
// }
|
||||
// }
|
||||
|
||||
// Card.DMICard inCard = input == 0 ? null : Chassis.Inputs[input];
|
||||
|
||||
// // NOTE THAT THESE ARE NOTS - TO CATCH THE AudioVideo TYPE
|
||||
// if (sigType != eRoutingSignalType.Audio)
|
||||
// {
|
||||
// Chassis.VideoEnter.BoolValue = true;
|
||||
// Chassis.Outputs[output].VideoOut = inCard;
|
||||
// }
|
||||
|
||||
// if (sigType != eRoutingSignalType.Video)
|
||||
// {
|
||||
// Chassis.AudioEnter.BoolValue = true;
|
||||
// Chassis.Outputs[output].AudioOut = inCard;
|
||||
// }
|
||||
// }
|
||||
|
||||
// #endregion
|
||||
|
||||
// }
|
||||
|
||||
// //public struct PortNumberType
|
||||
// //{
|
||||
// // public uint Number { get; private set; }
|
||||
// // public eRoutingSignalType Type { get; private set; }
|
||||
|
||||
// // public PortNumberType(uint number, eRoutingSignalType type) : this()
|
||||
// // {
|
||||
// // Number = number;
|
||||
// // Type = type;
|
||||
// // }
|
||||
// //}
|
||||
//}
|
||||
Reference in New Issue
Block a user