Ejemplo n.º 1
0
            protected override void Initialise(IFilterBase <IFilterOutput <TDescription, TValue> > value)
            {
                base.Initialise(value);

                m_ProcessData.AddInput(value.ProcessData);
                m_FilterBase = value;
            }
Ejemplo n.º 2
0
 protected override void Initialise(IFilterBase <IFilterOutput <TDescription, TValue> > value)
 {
     base.Initialise(value);
     if (!m_Description.Equals(value.Output.Description))
     {
         throw new InvalidOperationException("Generated output does not match description.");
     }
 }
Ejemplo n.º 3
0
        public FilterBase(IFilterBase <TOutput> filterBase)
        {
            if (filterBase == null)
            {
                throw new ArgumentNullException("FilterBase is not allowed to be null.");
            }

            m_FilterBase = filterBase;
        }
Ejemplo n.º 4
0
            public Bound(IFilterBase <TOutput> output, params IFilterBase[] inputs)
            {
                m_Disposed = false;

                m_Inputs = inputs;
                m_Output = output;

                foreach (var filter in inputs)
                {
                    ProcessData.AddInput(filter.ProcessData);
                }
            }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates player with set of necessary filters support.
 /// </summary>
 public override Player CreatePlayer(PlayerOutput playerOutput, IFilterBase filtersRequired)
 {
     VerifyObjectIsNotDisposed();
     //
     if (playerOutput == null)
     {
         throw new ArgumentNullException("playerOutput");
     }
     //
     if (filtersRequired is IAdjustable)
     {
     }
     return(new VlcPlayer(playerOutput, new InternalObjectsFactory(descriptor), this));
 }
Ejemplo n.º 6
0
 public static IFilterBase <B> Select <A, B>(this IFilterBase <A> filter, Func <A, B> f)
 {
     return(filter.Map(f));
 }
Ejemplo n.º 7
0
 public static IFilterBase <B> Map <A, B>(this IFilterBase <A> filter, Func <A, B> f)
 {
     return(filter.Bind(x => Return(f(x))));
 }
Ejemplo n.º 8
0
 public static IFilterBase <B> Bind <A, B>(this IFilterBase <A> filter, Func <A, IFilterBase <B> > f)
 {
     return(new Bound <B>(f(filter.Output), new[] { filter }));
 }
Ejemplo n.º 9
0
 public void CopyFrom(IFilterBase other)
 {
     this.CopyFrom(other as Filter <TState, TEntity>);
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Creates player with set of necessary filters.
 /// </summary>
 public abstract Player CreatePlayer(PlayerOutput playerOutput, IFilterBase filtersRequired);
Ejemplo n.º 11
0
 public Filter(IFilterBase <IFilterOutput <TOutput, TValue> > filterBase)
     : base(filterBase)
 {
 }
Ejemplo n.º 12
0
 public static Y Extract <X, Y>(this IFilterBase <ILendable <X> > filter, Func <X, Y> callback)
 {
     return(filter.Output.Extract(callback));
 }
Ejemplo n.º 13
0
 public static void Extract <X>(this IFilterBase <ILendable <X> > filter, Action <X> callback)
 {
     filter.Output.Extract(callback);
 }
Ejemplo n.º 14
0
 public static IFilter <A, X> Return <A, X>(IFilterBase <IFilterOutput <A, X> > filterBase)
 {
     return(new Filter <A, X>(filterBase));
 }
Ejemplo n.º 15
0
 public static IFilterBase <B> SelectMany <A, B>(this IFilterBase <A> filter, Func <A, IFilterBase <B> > f)
 {
     return(filter.Bind(f));
 }
Ejemplo n.º 16
0
 public static IFilterBase <C> SelectMany <A, B, C>(this IFilterBase <A> filter, Func <A, IFilterBase <B> > bind, Func <A, B, C> select)
 {
     return(filter
            .Bind((a) => bind(a)
                  .Map((b) => select(a, b))));
 }
Ejemplo n.º 17
0
 public TextureFilter(IFilterBase <IFilterOutput <ITextureDescription, ITexture2D> > filterBase)
     : base(filterBase)
 {
 }
Ejemplo n.º 18
0
 public AudioFilter(IFilterBase <IFilterOutput <IAudioDescription, IAudioOutput> > filterBase)
     : base(filterBase)
 {
 }
 /// <summary>
 /// Creates player with set of necessary filters.
 /// </summary>
 public abstract Player CreatePlayer(PlayerOutput playerOutput, IFilterBase filtersRequired );
 /// <summary>
 /// Creates player with set of necessary filters support.
 /// </summary>
 public override Player CreatePlayer(PlayerOutput playerOutput, IFilterBase filtersRequired) {
     VerifyObjectIsNotDisposed();
     //
     if (playerOutput == null) {
         throw new ArgumentNullException("playerOutput");
     }
     //
     if (filtersRequired is IAdjustable) {
         
     }
     return (new VlcPlayer(playerOutput, new InternalObjectsFactory(descriptor), this));
 }
Ejemplo n.º 21
0
 public void Register(IFilterBase filter)
 {
     filter.id = this.filters.Count + 1;
     this.filters.Add(filter);
 }