-
Notifications
You must be signed in to change notification settings - Fork 19
ref_vfmethod_configProc
VirtualDub Plugin SDK 1.2
configProc video filter method
Opens up a Windows GUI dialog box to allow the user to configure the filter's settings.
int configProc(VDXFilterActivation *fa, const VDXFilterFunctions *ff, HWND hWnd);
| fa | Pointer to filter activation structure. |
| ff | Pointer to callback function structure. |
| hwnd | Handle of parent window to use for dialog. |
This method is not thread-safe.
This function must not throw exceptions (see Except()).
Zero if configuration is successful, non-zero on error or if the user canceled configuration.
If you do not have a configuration dialog, omit configProc. VirtualDub
attempts to open a filter's configuration dialog when a filter is first
added, and if configProc returns non-zero, the filter is not added to
the chain.
Generally, configProc is implemented as a call to DialogBoxParam()
with the given parent window handle. Remember, VirtualDub starts the
process, so you will need to use your filter's cached module handle to
access dialog box resources.
Any settings exposed here should also be replicated in the filter's scripting interface, so that the filter works properly in batch mode and in Avisynth.
Please make sure your dialog fits in a 640x480 screen -- some video cards with integrated capture do not work unless the desktop resolution is lowered, and so your filter may still be used on a system with a 640x480 or 800x600 desktop.
Copyright (C) 2007-2012 Avery Lee.
Setting up your development environment
Conventions
Plugin initialization
Dynamic loading
Reference counting
Using CPU extensions
Introduction
What's new
Breaking changes
Gotchas
Deprecated features
Migrating from the old Filter SDK
Programming model
Handling bitmaps
Creating a video filter
Setting filter parameters
Processing video frames
Managing filter data
Creating time-varying filters
Handling aspect ratio
Prefetching multiple source frames
Handling multiple sources
Making a filter configurable
Scripting support
CPU dependent optimization
VDXA index omitted
Getting started
Writing the module entry point
Creating a video filter
Adding configurability
Adding script support
Introduction
What's new
Autodetect
Direct mode
Video frames vs. samples
Video decodint model
Video decoder