Microsoft DirectX 8.1 (C++) |
Determines if the filter should start, continue, or stop skipping frames.
Syntax
BOOL ShouldSkipFrame(
IMediaSample *pIn
);
Parameters
pIn
Pointer to the received sample to be transformed or skipped.
Return Value
Returns TRUE if the filter should skip this sample; otherwise, returns FALSE.
Remarks
This member function sets the m_bSkipping member variable to FALSE if the sample is a key frame (sync point) and returns FALSE. This stops any skipping that has started. This member function starts skipping samples (sets m_bSkipping to TRUE and returns TRUE) only if all the following conditions are true.
This member function sends an EC_QUALITY_CHANGE notification when sample skipping starts. After skipping starts, all samples are skipped until the next key frame arrives.
See Also