Gaussian blur
The block blurs the video stream using the Gaussian function.
Block info
Name: GaussianBlurBlock.
Pin direction | Media type | Pins count |
---|---|---|
Input | Uncompressed video | 1 |
Output | Uncompressed video | 1 |
The sample pipeline
Sample code
var pipeline = new MediaBlocksPipeline();
var filename = "test.mp4";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));
var gaussianBlur = new GaussianBlurBlock();
pipeline.Connect(fileSource.VideoOutput, gaussianBlur.Input);
var videoRenderer = new VideoRendererBlock(pipeline, VideoView1);
pipeline.Connect(gaussianBlur.Output, videoRenderer.Input);
await pipeline.StartAsync();
Platforms
Windows, macOS, Linux, iOS, Android.