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 > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th August 2016, 10:45   #221  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
Don't bother with me, and i want to keep my code compatible with VS2010, so...
jpsdr is offline   Reply With Quote
Old 12th September 2016, 16:33   #222  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Not sure where I should post this, but I guess here is a good a place as any.

I've just come across a site saying that 64 bit compilation is possible in VS Express 2010 (together with Windows 7.1 SDK),
I was not aware of this, believing minimum VS 2012 Express was required (VS 2010 Express runs on XP, VS 2012 not).

Anyways, have not tried it myself (not got VS 2010 installed, [yet]),

Here the link:- http://www.zemax.com/os/resources/le...crosoft-visual

If someone tries it, be sure to say something to that effect here.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 12th September 2016, 17:28   #223  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by StainlessS View Post
Not sure where I should post this, but I guess here is a good a place as any.

I've just come across a site saying that 64 bit compilation is possible in VS Express 2010 (together with Windows 7.1 SDK),
I was not aware of this, believing minimum VS 2012 Express was required (VS 2010 Express runs on XP, VS 2012 not).

Anyways, have not tried it myself (not got VS 2010 installed, [yet]),

Here the link:- http://www.zemax.com/os/resources/le...crosoft-visual

If someone tries it, be sure to say something to that effect here.
I have no reason to doubt that what they're writing is true. I have VS2010 Ultimate so I have never tried it. I vaguely remember some problems with VS2010 and SDK 7.1, that's why most use SDK 7.0a (with which VS2010 ships) -> Google if there are still issues.
You can build 64 bit binaries on XP32 but obviously you need a 64 bit OS the test them.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 12th September 2016, 18:26   #224  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by Groucho2004 View Post
but obviously you need a 64 bit OS the test them.
There's always a catch, eh!

If you go to download the SDK via ms site (from site linked in my previous post) then before download view install instructions, as download button is 700kb web install, install instructions givelink to network install. (600mb).
Then see install instruction there to view specifics of the 3 available downloads (x86, x64, ia).
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 12th September 2016 at 18:28.
StainlessS is offline   Reply With Quote
Old 12th September 2016, 18:42   #225  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by StainlessS View Post
If you go to download the SDK via ms site (from site linked in my previous post) then before download view install instructions, as download button is 700kb web install, install instructions givelink to network install. (600mb).
Then see install instruction there to view specifics of the 3 available downloads (x86, x64, ia).
Do you have a question? Not sure what to do with this...
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 12th September 2016, 19:01   #226  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
No question, just saying that the DOWNLOAD button only downloads the miniscule web install, most would I think want the ISO (CD/DVD image) file. Just general information.

(Blank line inserted was intended to be 'end of that comment'.)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 12th September 2016, 20:13   #227  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@StainlessS,

Like Groucho2004 said it requires SDK 7.1 for VC2010 (and SDK 7.0 for VC2008). It takes some hazzle to install them correctly. Have a look at http://avisynth.nl/index.php/Filter_...mpile_AviSynth.
Wilbert is offline   Reply With Quote
Old 12th September 2016, 21:12   #228  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by StainlessS View Post
No question, just saying that the DOWNLOAD button only downloads the miniscule web install, most would I think want the ISO (CD/DVD image) file. Just general information.
Got it. I was not even considering anyone using the web installer, I always download offline installs.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 12th September 2016, 21:19   #229  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thanks Wilbert. I had no idea that 64 bit support was also possible in vs2008 as well as 2010.
Kinda makes you wonder how MS has stayed in business for so long, what with all of the hoops one has to
jump through to get things working.
Great job on the Wiki guys, much expanded since last I looked. (dont think I've viewed the Compiling Avisynth section for some time,
more likely seen Compiling Plugins more recently).

From Below post:
Quote:
The first VS with 64 bit compiler was 2005, btw.
Good to know.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 13th September 2016 at 00:12.
StainlessS is offline   Reply With Quote
Old 12th September 2016, 21:26   #230  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by StainlessS View Post
I had no idea that 64 bit support was also possible in vs2008 as well as 2010.
The first VS with 64 bit compiler was 2005, btw.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 23rd November 2017, 21:31   #231  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Course on Intel site:- https://software.intel.com/en-us/art...-applications/


Quote:
Lessons on development of 64-bit C/C++ applications

By Andrey Karpov, published on March 24, 2011

The course is devoted to creation of 64-bit applications in C/C++ language and is intended for the Windows developers who use Visual Studio 2005/2008/2010 environment. Developers working with other 64-bit operating systems will learn much interesting as well. The course will consider all the steps of creating a new safe 64-bit application or migrating the existing 32-bit code to a 64-bit system.

The course is composed of 28 lessons devoted to introduction to 64-bit systems, issues of building 64-bit applications, methods of searching errors specific to 64-bit code and code optimization. Such questions are also considered as estimate of the cost of moving to 64-bit systems and rationality of this move.
Quote:
The contents of the course

Lesson 01. What 64-bit systems are.
Lesson 02. Support of 32-bit applications.
Lesson 03. Porting code to 64-bit systems. The pros and cons.
Lesson 04. Creating the 64-bit configuration.
Lesson 05. Building a 64-bit application.
Lesson 06. Errors in 64-bit code.
Lesson 07. The issues of detecting 64-bit errors.
Lesson 08. Static analysis for detecting 64-bit errors.
Lesson 09. Pattern 01. Magic numbers.
Lesson 10. Pattern 02. Functions with variable number of arguments.
Lesson 11. Pattern 03. Shift operations.
Lesson 12. Pattern 04. Virtual functions.
Lesson 13. Pattern 05. Address arithmetic.
Lesson 14. Pattern 06. Changing an array's type.
Lesson 15. Pattern 07. Pointer packing.
Lesson 16. Pattern 08. Memsize-types in unions.
Lesson 17. Pattern 09. Mixed arithmetic.
Lesson 18. Pattern 10. Storage of integer values in double.
Lesson 19. Pattern 11. Serialization and data interchange.
Lesson 20. Pattern 12. Exceptions.
Lesson 21. Pattern 13. Data alignment.
Lesson 22. Pattern 14. Overloaded functions.
Lesson 23. Pattern 15. Growth of structures' sizes.
Lesson 24. Phantom errors.
Lesson 25. Working with patterns of 64-bit errors in practice.
Lesson 26. Optimization of 64-bit programs.
Lesson 27. Peculiarities of creating installers for a 64-bit environment.
Lesson 28. Estimating the cost of 64-bit migration of C/C++ applications.

The course's duration: the course implies that you study each of the 28 lessons on your own in 20-40 minutes. The total time of studying the material is about 18 hours.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 7th February 2019, 10:42   #232  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Has anyone written a simple Avs+ colorspace processing plugin, where source could be used as example for us novice avs+ coders ?
Ideally, all current avs+ colorspaces would be coped with by the plug source, and good avs+ practices used throughout.

Would also be of use if source well written for x64 compile with speed advantage over x86 [EDIT: should compile for both x86 & x64].
EDIT: Would also be nice if would compile on a range of compilers, and not just VS Express VS2017/2019 [Ideally VS2008+].

EDIT: I guess it could be modified to compile under VS2008+ where it is required.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 7th February 2019 at 10:57.
StainlessS is offline   Reply With Quote
Old 7th February 2019, 10:59   #233  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
The most simple one I'm aware of is Average
Contains YUV and Planar RGB, 8-32 bits, C/sse2/sse4.1/avx separation, x64 friendly SIMD intrinsics.
pinterf is offline   Reply With Quote
Old 7th February 2019, 11:00   #234  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thanx P, me will eat it all up, thanx muchly
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 16th April 2021, 12:47   #235  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Sort of tutorial for, All C++20 core language features with examples,,
maybe I read it at some point:- https://oleksandrkvl.github.io/2021/...-overview.html

EDIT: If any questions, ask Feisty2 bout it.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 16th April 2021 at 13:51.
StainlessS is offline   Reply With Quote
Old 20th April 2021, 15:26   #236  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
that's a tutorial for incremental changes in C++20 (features introduced after C++17), and the avisynth API doesn't even make much use of C++11, I kinda doubt if such tutorial matters to any avisynth developers at all.

EDIT:
speaking of introductory examples, this is the source code of an introductory VS plugin written in C++20
Code:
import <VS/PluginDevelopmentKit>;

auto Main() {
    auto Metadata = PluginInfo{
        .Namespace = "intro",
        .Identifier = "com.feisty2.examples",
        .Description = "various introductory plugin function examples"
    };
    PluginDevelopmentKit::SpecifyConfigurations(Metadata);
    PluginDevelopmentKit::RegisterFunction("Passthru(clip: vnode)", [](auto Arguments) { return Arguments["clip"]; });
    PluginDevelopmentKit::RegisterFunction("Print(txt: string?)", [](auto Arguments, auto Core) {
        auto clip = Core["std"]["BlankClip"]();
        return Core["text"]["Text"]("clip", clip, "text", Arguments["txt"].Exists() ? Arguments["txt"] : "Hello World");
    });
}

SetPluginEntryPoint(Main);
it exports the following 2 functions to Python
Code:
core.intro.Passthru(clip)
core.intro.Print(txt = 'Hello World')
as you can see, it looks nothing like the examples shown in this thread. so there's a long way to go even if you have read that tutorial. maybe I'll write a proper wrapper for the avisynth C API (the C++ API was poorly designed so it's better to rebuild abstractions from ground zero) someday in the distant future.

Last edited by feisty2; 20th April 2021 at 17:29.
feisty2 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 05:26.


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