View Full Version : C++ sample code: AviSynth Direct2D Rendering
stax76
23rd January 2020, 00:15
C++ sample application that renders a AviSynth script using Direct2D:
https://github.com/stax76/AviSynth-Direct2D-Rendering
amayra
23rd January 2020, 13:33
wait what did AviSynth used before this to renders ?
stax76
23rd January 2020, 18:54
There are a couple of different APIs that can be used for rendering, some old some new, Direct2D is one of the newer and better one (exists since Win 7). I think it's build on top of Direct3D, that has as far as I know better driver support than OpenGL and Vulkan. Old ones are DrawDIBDraw (VFW) and GDI.
LoRd_MuldeR
23rd January 2020, 21:57
wait what did AviSynth used before this to renders ?
AviSynth is just a frame server. It passes the generated frames (i.e. the output of your AvisynthScript) to the "main" application and that's it.
It's totally up to the "main" application to decide what to do with those frames. If presenting the frames on the screen is a relevant part of the application – for many applications, such as x264 CLI encoder, it is not – then the application itself has to take care of that; AviSynth in not involved. And there's a zillion of ways to implement a video render, ranging from GDI and SDL over various flavors of DirectX (DirectDraw, Direct3D and now Direct2D) to OpenGL and maybe Vulkan...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.