示例#1
0
        /// <summary>
        /// 使用默认输出引脚连接过滤器默认输入引脚
        /// </summary>
        /// <param name="filterEx"></param>
        /// <returns></returns>
        public bool ConnectFilter(BaseFilterEx filterEx)
        {
            var op = this.DefOutPin;
            var ip = filterEx.DefInPin;

            return(op.ConnectEx(ip));
        }
示例#2
0
 /// <summary>
 /// 根据媒体类型连接过滤器合适的引脚
 /// </summary>
 /// <param name="filterEx"></param>
 /// <param name="pmt"></param>
 /// <returns></returns>
 public bool ConnectFilter(BaseFilterEx filterEx, AMMediaType pmt)
 {
     return(this.DefOutPin.ConnectEx(filterEx.DefInPin, pmt) == 0);
 }
示例#3
0
 public virtual void AddFilterEx(BaseFilterEx filterEx)
 {
     FilterExList.Add(filterEx);
 }
示例#4
0
 public int Remove(BaseFilterEx filterEx)
 {
     FilterExList.Remove(filterEx);
     return(_Remove(filterEx.BaseFilter));
 }