Quantcast Need to use Visual C to Compile Avisynth Filter? - digitalFAQ.com Forums [Archives]
  #1  
02-07-2003, 05:32 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-07-2003, 08:26 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
I think you're going to have to compile using MSVC++ .
AviSynth sources are heavily molded around M$

-kwag
Reply With Quote
  #3  
02-07-2003, 10:19 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4  
02-07-2003, 10:21 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
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!



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 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
Reply With Quote
  #5  
02-07-2003, 11:11 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
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)

-kwag
Reply With Quote
  #6  
02-07-2003, 11:15 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
hay Kwag,
Tanx !!

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

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
Reply With Quote
  #7  
02-07-2003, 11:22 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
02-11-2003, 06:13 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #9  
02-11-2003, 06:46 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
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
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
Reply With Quote
  #10  
03-04-2003, 04:51 AM
MrTibs MrTibs is offline
Free Member
 
Join Date: Aug 2002
Location: Canada
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
@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.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: HQdn3d - mplayer filter ported to avisynth incredible Avisynth Scripting 1 10-25-2004 09:51 AM
DVD Lab Runtime error! Program compile.aux khusru Authoring VCD, DVD, Blu-ray 6 03-26-2004 04:23 AM
Unable to compile mpeg1 DVD over 3GB? Bishop Video Encoding and Conversion 7 02-23-2004 07:37 PM
Avisynth: Audio and Visual Sync problems, incomplete encodes? gyrene2083 Avisynth Scripting 7 02-03-2003 04:50 PM
Avisynth: Auto crop using avisynth filter beta? black prince Avisynth Scripting 6 11-28-2002 08:51 AM

Thread Tools



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