ILMVDynRateCtrl Interface

This is the interface for the LEAD Video Dynamic Rate Control Filter.

Data Types

LMVDynRate_APILEVEL

Summary

Lists the valid values for the ApiLevel parameter that can be passed to the ResetToDefaultsEx method.

Syntax

typedef enum LMVDynRate_APILEVEL 
{ 
   LMVDynRate_APILEVEL_1 = 0 
} LMVDynRate_APILEVEL; 

Members

LMVDynRate_APILEVEL_1

API Version 1 defaults. Enabled=TRUE, Rate=1.0

Properties

Type Name Description
VARIANT_BOOL Enable Set to VARIANT_TRUE to enable the filter. If set to VARIANT_FALSE, the filter will pass the video stream as is, without changing the frame rate.
double Rate Sets or gets the dynamic playback rate, relative to input sample times. Eg. 1.0 = 1x (original input stream playback rate), .5 = 1/2x (half as fast as original input rate), 2.0 = 2x (twice as fast as original input rate)

Methods

HRESULT GetAdjustedDuration(__int64 *pRefTime);

Description

Gets the adjusted duration after the dynamic playback rate is being applied.

Parameters

pRefTime

Pointer to a variable that will receive the duration.

Returns

Return Description
S_OK Successful.
< 0 An error occurred.

HRESULT ResetToDefaultsEx(LMVDynRate_APILEVEL ApiLevel)

Description

Resets the filter properties to their default values based on the API Level version passed.

Parameters

ApiLevel

Specifies which defaults should be used by the filter. Current applications should set ApiLevel to LMVDynRate_APILEVEL_1 = 0.

Comments

The method will fail if the filter is in the running state.

Returns

Return Description
S_OK Successful.
VFW_E_WRONG_STATE The filter is in the wrong state.
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.