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.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd January 2020, 00:15   #1  |  Link
stax76
Registered User
 
stax76's Avatar
 
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
stax76 is offline   Reply With Quote
Old 23rd January 2020, 13:33   #2  |  Link
amayra
Quality Checker
 
amayra's Avatar
 
Join Date: Aug 2013
Posts: 284
wait what did AviSynth used before this to renders ?
__________________
I love Doom9
amayra is offline   Reply With Quote
Old 23rd January 2020, 18:54   #3  |  Link
stax76
Registered User
 
stax76's Avatar
 
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.

Last edited by stax76; 23rd January 2020 at 18:58.
stax76 is offline   Reply With Quote
Old 23rd January 2020, 21:57   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by amayra View Post
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...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 23rd January 2020 at 22:10.
LoRd_MuldeR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.