Example #1
0
        protected override void DoProcessing(FilterProcessingContext context, Frame outputFrame)
        {
            var src = context.GetFrame("source");
            var sbmp = src.Video[0];

            if (sbmp is BitmapRGB32)
                this.BoxBlurRGB32(sbmp as BitmapRGB32, outputFrame.Video[0] as BitmapRGB32);
            else if (sbmp is BitmapRGB24)
                this.BoxBlurRGB24(sbmp as BitmapRGB24, outputFrame.Video[0] as BitmapRGB24);
        }
Example #2
0
        protected override void DoProcessing(FilterProcessingContext inputFrames, Frame outputFrame)
        {
            Console.WriteLine("decoding tga frame");

            using (var stream = this.OpenStreamForFrame(0))
            {
                using (var decoder = new TGADecoder(stream))
                {
                    decoder.Initialize();
                    decoder.Decode(outputFrame);
                }
            }
        }
Example #3
0
        protected override void DoProcessing(FilterProcessingContext context, Frame outputFrame)
        {
            var src  = context.GetFrame("source");
            var sbmp = src.Video[0];

            if (sbmp is BitmapRGB32)
            {
                this.BoxBlurRGB32(sbmp as BitmapRGB32, outputFrame.Video[0] as BitmapRGB32);
            }
            else if (sbmp is BitmapRGB24)
            {
                this.BoxBlurRGB24(sbmp as BitmapRGB24, outputFrame.Video[0] as BitmapRGB24);
            }
        }
Example #4
0
 protected override void DoProcessing(FilterProcessingContext context, Frame outputFrame)
 {
 }
Example #5
0
 protected override void DoProcessing(FilterProcessingContext context, Frame outputFrame)
 {
 }