-
Notifications
You must be signed in to change notification settings - Fork 18
ref_iface_IVDXVideoSource_IsKey
VirtualDub Plugin SDK 1.2
IVDXVideoSource interface
Returns true if the sample corresponds to a key frame, false otherwise.
bool IsKey(sint64 sample_num);
| sample_num | Number of sample being queried. |
This method is not thread-safe.
Errors may not be returned from this function (see SetError()).
The result of IsKey() should be consistent between calls for the same sample, and with the information returned by GetSampleInfo().
For a video source that follows the traditional AVI predictive model, this function returns true for a key frame and false for a delta frame or null frame. The first frame in the source should always be a key frame.
Video sources that use bidirectional prediction, such as MPEG-1/2, should return true for an I frame and false for P and B frames.
When using the default I/P decoder model, IsKey() is called frequently.
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