I am writing a plugin for a low level video editing application I've developed. The plugin takes numerous information parameters from the application and displays a brightness/contrast dialog with a preview of what it will look like. The dialog has two sliders for controlling the brightness and contrast individually. When you accept the dialog, the same algorithm used on the preview is applied to the whole frame in the animation.
the full plugin source code for vc++6.0 or higher (compiled with .net) is at the bottom of the page (link). A beta of the application is also provided so you can test the plugin in the \plugins\ directory
The problem is really in FilterFrame() where it allocated the preview frame memory then calls PropertiesOK() then unallocates it. If I dont call PropertiesOK then it works (i think) but if I do and it shows the dialog, the pointer is getting corrupted somehow maybe, even though it is exactly the same value before and after and the data looks fine.
You may see something striaght away ive misse dor it may take a while to debug, im not really sure. Please keep me up to date with comments of any questions/queries you may have and I will answer them without delay.
to test the plugin code you can go frames->import frame in av3 and then make sure brightness/contrast is selected on the adjust panel to the right, and just click apply now. you should then see the dialog
Thanks for your time,
note: im reasonably new to this website