Log in

View Full Version : C interface version of SimpleSample?


MrTibs
5th February 2004, 17:34
First sorry for the double post but I think my original post may have been overlooked.

Would it be possible for someone to modify the SimpleSample for the C interface? Specifically, I would like an example using the YV12 frame format.

In the past I've been able to produce 2.x and 2.5.x filters with MSVC 5 but I haven't had any luck with SimpleSample so I thought I would switch to the C interface and a non-MS compiler. (Now that Sh0dan has made the support native to Avisynth - thanks Sh0dan and Kevina!) It would also allow me to protype my filters in Delphi (my perferred environment).

albertgasset
8th February 2004, 01:58
The C interface has a detailed example and good documentation, see Kevina's avisynth_c (http://kevin.atkinson.dhs.org/avisynth_c/) web. Also see the info in Avisynth webpage about colorspaces (http://www.avisynth.org/index.php?page=ColorSpaces). Look at the GetFrame function in SimpleSample for info about how to use YV12 data, although it's in C++, it can be translated to C interface without too much problem.

If I have time I'll translate the SimpleSample to the C interface.

Albert