Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd January 2020, 00:15 | #1 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
C++ sample code: AviSynth Direct2D Rendering
C++ sample application that renders a AviSynth script using Direct2D:
https://github.com/stax76/AviSynth-Direct2D-Rendering
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
23rd January 2020, 18:54 | #3 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
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.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 23rd January 2020 at 18:58. |
23rd January 2020, 21:57 | #4 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
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...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 23rd January 2020 at 22:10. |
Thread Tools | Search this Thread |
Display Modes | |
|
|