示例#1
0
 public Input(VideoSource id, string shortName, string longName, ExternalPortType type)
 {
     Id        = id;
     ShortName = shortName;
     LongName  = longName;
     PortType  = type;
 }
示例#2
0
        public static MacroPortType ToMacroPortType(this ExternalPortType type)
        {
            switch (type)
            {
            case ExternalPortType.HDMI:
                return(MacroPortType.HDMI);

            case ExternalPortType.Component:
                return(MacroPortType.Component);

            case ExternalPortType.Composite:
            case ExternalPortType.SVideo:
            case ExternalPortType.Internal:
            case ExternalPortType.SDI:
            default:
                return(MacroPortType.SDI);
            }
        }
示例#3
0
        public static ExternalPortTypeFlags ToFlag(this ExternalPortType type)
        {
            switch (type)
            {
            case ExternalPortType.HDMI:
                return(ExternalPortTypeFlags.HDMI);

            case ExternalPortType.Component:
                return(ExternalPortTypeFlags.Component);

            case ExternalPortType.Composite:
                return(ExternalPortTypeFlags.Composite);

            case ExternalPortType.SVideo:
                return(ExternalPortTypeFlags.SVideo);

            case ExternalPortType.Internal:
                return(ExternalPortTypeFlags.Internal);

            case ExternalPortType.XLR:
                return(ExternalPortTypeFlags.XLR);

            case ExternalPortType.AESEBU:
                return(ExternalPortTypeFlags.AESEBU);

            case ExternalPortType.RCA:
                return(ExternalPortTypeFlags.RCA);

            case ExternalPortType.TSJack:
                return(ExternalPortTypeFlags.TSJack);

            case ExternalPortType.SDI:
                return(ExternalPortTypeFlags.SDI);

            default:
                return(ExternalPortTypeFlags.Unknown);
            }
        }
示例#4
0
 public AudioPortTypeAttribute(ExternalPortType type)
 {
     Type = type;
 }