mmaitre314 / VideoEffect

Apply image effects (Lumia Imaging SDK, Win2D, DirectX HLSL pixel shaders) and detectors (ZXing.Net, etc.) to videos in Universal Store Apps for Windows Phone 8.1 and Windows 8.1.
http://mmaitre314.github.io/VideoEffect/
Apache License 2.0
74 stars 28 forks source link

Enable Win2D video effects #11

Closed mmaitre314 closed 9 years ago

mmaitre314 commented 9 years ago

Need a Win2D-equivalent of IBitmapVideoEffect for hardware-accelerated video effects in Bgra8 format. See https://github.com/Microsoft/Win2D. Probably need to split the NuGet package into two to avoid pulling two other NuGet packages when not needed. ShaderEffectDefinitionXxx should go into the new Graphics package.

Tentative syntax:

class MyEffect : ICanvasVideoEffect { public void Process(CanvasBitmap input, CanvasRenderTarget output, TimeSpan time) { using (var ds = output.CreateDrawingSession()) using (var brush = new CanvasImageBrush(input.device,input)) { .... }
} }

venetasoft commented 9 years ago

SUPPPPPPPPPER, can't wait :)

Thanks, David

Date: Sun, 19 Apr 2015 00:40:36 -0700 From: notifications@github.com To: VideoEffect@noreply.github.com Subject: [VideoEffect] Enable Win2D video effects (#11)

Need a Win2D-equivalent of IBitmapVideoEffect for hardware-accelerated video effects in Bgra8 format.

See https://github.com/Microsoft/Win2D. Probably need to split the NuGet package into two to avoid pulling two other NuGet packages when not needed. ShaderEffectDefinitionXxx should go into the new Graphics package.

Tentative syntax:

class MyEffect : ICanvasVideoEffect

{

 public void Process(CanvasBitmap input, CanvasRenderTarget output, TimeSpan time)

 {

         using (var ds = output.CreateDrawingSession())

         using (var brush = new CanvasImageBrush(input.device,input))

         {

              ....

         }

 }

}

— Reply to this email directly or view it on GitHub.

mmaitre314 commented 9 years ago

The implementation is checked in: cfd3f13b5834b644d040d32065ff4ed87f6194f3. I need to add more tests before publishing the NuGet.

mmaitre314 commented 9 years ago

2.3.0 is out with support for Win2D effects (aka CanvasEffect). I did some basic testing on Desktop and Lumia 520. Could you kick the tires on your side too, see if I didn't miss any major bug?

venetasoft commented 9 years ago

Thank you !!!!!!! I will try immediately :)

Dvaid

Date: Wed, 22 Apr 2015 23:02:06 -0700 From: notifications@github.com To: VideoEffect@noreply.github.com CC: david@venetasoft.it Subject: Re: [VideoEffect] Enable Win2D video effects (#11)

2.3.0 is out with support for Win2D effects (aka CanvasEffect). I did some basic testing on Desktop and Lumia 520. Could you kick the tires on your side too, see if I didn't miss any major bug?

— Reply to this email directly or view it on GitHub.