-
Notifications
You must be signed in to change notification settings - Fork 18
ref_iface_IVDXVideoDecoderModel_GetNextRequiredSample
VirtualDub Plugin SDK 1.2
IVDXVideoDecoderModel interface
Returns the next source sample required to decode the current target frame, or -1 if no more samples are required.
sint64 GetNextRequiredSample(bool& is_preroll);
| is_preroll | [Out] Set to true if the sample is only required for internal decoding, or false if the sample is decoded to the final frame. |
This method is not thread-safe.
Errors may not be returned from this function (see SetError()).
SetDesiredFrame() must be called before GetNextRequiredSample(). If this method immediately returns -1 after the target frame is set, it means that the frame is already resident in an internal decoder buffer, in which case the client must call IVDXVideoDecoder::DecodeFrame() with a zero-byte frame to decode the frame.
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