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. |
|
|
Thread Tools | Search this Thread | Display Modes |
27th January 2013, 13:00 | #1 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Writing to and reading from a file for a 2 pass filter plugin
I remember that long time back there was a facility in Avisynth for plugins to save a string but when I used it, I could not read back even within the same frame it was written. I do not know whether it still exists. My search for writing a file failed to get useful results
I am trying to code a plugin that operates in two passes ( or two plugins second operating after first one finishes , communicating through a text or hex file. Is it possible to do such I/O operations from within plugin? Similar to something from a script one can do a writeFile? Can such a facility be available as an input spec in filter creation (c,s,i,f,a) |
27th January 2013, 15:12 | #2 | Link |
Beyond Kawaii
Join Date: Feb 2008
Location: Russia
Posts: 724
|
Nothing prevents you from creating, reading and writing files within your plugin. Nothing prevents you to do anything at all within your plugin. You can even do as much as create windows to display custom information every time a frame is requested, or even put controls in them to adjust your filter on the fly.
__________________
...desu! |
28th January 2013, 05:10 | #4 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Code:
FILE *fp; fopen_s(&fp, "stuff.txt", "w"); if (fp == 0) { printf("Cannot open stuff file.\n"); return 0; } fprintf(fp, "%s\n", "Some data.\n"); fclose(fp); |
Thread Tools | Search this Thread |
Display Modes | |
|
|