Esempio n. 1
0
        private readonly Stopwatch timer = Stopwatch.StartNew(); //timer used in the update of the framerate integer.

        #endregion

        #region Device Moniker - Check, Return, Base.

        public bool Monikercheck()
        {
            if (DeviceMonikers.Count() <= 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a specific capture device
        /// </summary>
        /// <param name="moniker">Moniker string that represents a specific device</param>
        public CapDevice(string moniker)
        {
            // Store moniker (since dependency properties are not thread-safe, store it locally as well)
            _monikerString = moniker;
            MonikerString  = moniker;

            // Find the name
            var filterInfo = DeviceMonikers.FirstOrDefault(fi => fi.MonikerString == moniker);

            if (filterInfo != null)
            {
                Name = filterInfo.Name;
            }
        }
Esempio n. 3
0
 public FilterInfo[] DeviceList() //Checker method that passes through monkier list if one is available
 {
     return(DeviceMonikers.ToArray());
 }