digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Need to use Visual C to compile Avisynth filter? (http://www.digitalfaq.com/archives/avisynth/2516-visual-compile-avisynth.html)

GFR 02-07-2003 05:32 AM

Need to use Visual C to compile Avisynth filter?
 
Anybody knows if I do really need to use Visual C to compile a filter or can I use Dev-C++ or borland's free C++ builder (or better yet, can the avisynth.h be translated to pascal so I use Delphi to build the dll)?

I've searched Doom9, avisynth.org, no conclusive answers.

If someone knows an open source filter that has been built with an alternative compiler, this would be great, as I'm no C programmer and I would not mind "cheating" :) I've found a virtualdub filter built with the full borland C++ builder (conditional executing filter) how similar is a vdf to an avs-plugin?

kwag 02-07-2003 08:26 AM

I think you're going to have to compile using MSVC++ :x .
AviSynth sources are heavily molded around M$ :x :x :lol:

-kwag

GFR 02-07-2003 10:19 AM

I've downloaded dev-c++ and tried the "import MSVC project" option, and when I compile I get LOTS of errors (btw I used SansGrip's Ghostbuster sources to test).

Then I tried MSVC 6 in another machine and it's OK in the first try.

I guess I have to install it :(

vhelp 02-07-2003 10:21 PM

GFR,

I've ben researching this same thing.. searching the net through high hells ends,
but still no go. I remember having a very good book on DLL creation (old book)
but is berried somewhere's in my apartment in boxes of books and things.
It was all bout C and C++ dll correct parameter pass (C vs. Pascal calls)
Anyways, I remembered messing around w/ it on a few snips using Delphi 3 but that
was quite a while ago, and my memory has recently gone through a Purge. Some DLL's
are just hard to implement via Pascals calls if they are not Pascal in mind via
another language, an example is SansGrip's FitCD excercise. That one,
I finally got to work, where I got those number 8,8 16,16 704,448 to finally work.
It was a good excercise!

http://www.digitalfaq.com/archives/error.gif

I'll keep searching as well, and if I come up w/ anything, I'll drop some code
snip for you here and you can test or whatever.. unless you wanna experienment on
a few ideas/snips via sansGrip filters or his help ??

DLL's, as you know, can be created in Delphi 6/7. I am planning on adding
in my next project (time allows) to create a DLL of some functions I am meaning
to create, and see if C/C++ can communicate with.

The WIN API are a good reference point / building blocks. This is an area I have ben toying around with this week.

If I get any DLL ideas working, I'll also through those up too - maybe this weekend.

Some books I have are:
* Standard C++ Bible w/ Quincy 99, GCC compiler
* C++ in 15 hours 8O w/ GNU C++ compiler
* WIN32 API (great book, all 1548 pages worth)
* and a handful of others

What I don't have:
* is SansGrips C/C++ skills he, he..

So, if you need other assist besides SansGrip's and others, my reference
library may come in handy, and I'm always on-line till 4am - specially weekens.
I'm always up programming and/or researching algos and things. Soo..
Right now, i'm lookin for a filter I found on the net for video noise reduction.
I D/L'ed the source, but for the life of me, I can't fine it, sheesh!
Maybe, I'll go and mess w/ some YUV (color converts) snips I have laying around or
something.

For the 3rd time, there should be a Programming/Application area added to this
FORUM !! A place for us programmers to hang out :) I'd like to stick my apps
somewhere's around here, if possible (via my webspace) maybe I'll start a thread
on apps or projects or something, and others can do the same.

Well, I'm gonna go an make some coffee.. I've got lots of things going on.
gosh, I love this hobby!
-vhelp
PS: Kwag, I can't seem to align the time-zones. How?
It's 10:22pm

kwag 02-07-2003 11:11 PM

Quote:

Originally Posted by vhelp
GFR,
For the 3rd time, there should be a Programming/Application area added to this
FORUM !! A place for us programmers to hang out :) I'd like to stick my apps

Your wish has materialized. Check the forum in 10 minutes :D
Quote:


PS: Kwag, I can't seem to align the time-zones. How?
It's 10:22pm
KVCD.Net is set at AST Time Zone. That's -4 GMT (No daylight savings) :wink:

-kwag

vhelp 02-07-2003 11:15 PM

hay Kwag,
Tanx !!

If I was being a pain in the ZZ, sorry! :lol:

As for time zones..

You post's time, in my IE browser is syaing it's 4:11pm, and MY
current time in my tray area is saying 11:15pm.

Should your time be the same as mine ??
I'n in NY.

Thanks for everything Kwag..
-vhelp

kwag 02-07-2003 11:22 PM

Quote:

Originally Posted by vhelp

Should your time be the same as mine ??
I'n in NY.

We're one hour ahead of New York now.

-kwag

GFR 02-11-2003 06:13 AM

If I have a working C code that uses "normal" arrays, how hard is it to adapt it to Avisynth's "pitched" data structures? Is it hard to access each component (luminance, crominances) separately?

vhelp 02-11-2003 06:46 PM

Evening GFR,

I think you mean Borland's Delphi is free. I have a the
Programming Complete Guide @ $7.95 from a friend who wanted
to have a look at Delphi. So, we split the price 8)
anyways, it comes w/ a Free Delphi 6 PE version, same as mine $59
purchase. In this magazine, you have to send in a reg. e-mail and they
will release FREE the key to unlock. My friend from NJ said it worked like
a charm, and feels it's great for a free-bee. He/she (husband and wife)
are C/C++ programmers. ..hard for me to keep in touch w/ them for any
help, as their work takes them off to far places, he he..

As far as I can tell, there's no C++ Builder Free-bie. Were you mistaken ??
Else I would have D/L'ed it today !!

I'm using Quency 99 C++ a GNP product, but it has no support for windows.
So, I really can't explore my ideas further, you know. However, I did
purchase C++ Builder, but if it IS free (w/out hitch) I'd cancel it today.

This DLL project must be frustrating you like crazy he he.. It is w/ me thus
far.

What other C++ packages (windows platform) are you using so far ??
-vhelp

MrTibs 03-04-2003 04:51 AM

@GFR

There is no "easy" way to create an Avisynth filter using anything other than MS Visual C++. The reason has to do with the way different C++ compilers pass structures to their DLLs. I just finished my first filter (FixVHSOversharp) but I had to use MSVC to do it. Next I'm going to turn my attention to creating a non-MSVC filter loader that will allow filters to be compiled with any compiler that supports the C calling convention.

My problem is that I don't know C or C++ so I'm realy flying blind.


All times are GMT -5. The time now is 08:01 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.