-
Notifications
You must be signed in to change notification settings - Fork 12
ref_vfmethod_startProc
VirtualDub Plugin SDK 1.2
startProc video filter method
Prepares a filter instance for processing video frames.
int startProc(VDXFilterActivation *fa, const VDXFilterFunctions *ff);
fa | Pointer to filter activation structure. |
ff | Pointer to callback function structure. |
This method is not thread-safe.
Exceptions may be thrown from this function (see Except()).
Zero if successful, non-zero on unknown failure.
If omitted, no default action is taken.
This function is the ideal place for memory allocation and table initialization to take place. Filter chain startup is comparatively rare, so this is the ideal place to put lengthy precomputation.
If you allocate a number of resources in this function, and one of the
allocations fails, you do not have to release the resources that were
allocated successfully. VirtualDub always calls endProc
for all
filters on failure, so you can free the resources there.
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