/// <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)); }
/// <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); }
public virtual void AddFilterEx(BaseFilterEx filterEx) { FilterExList.Add(filterEx); }
public int Remove(BaseFilterEx filterEx) { FilterExList.Remove(filterEx); return(_Remove(filterEx.BaseFilter)); }