ILMVDynRateCtrl Interface

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

Data Types:

LMVDynRate_APILEVEL

typedef enum LMVDynRate_APILEVEL 
{ 
   LMVDynRate_APILEVEL_1 = 0 
} LMVDynRate_APILEVEL; 

The LMVDynRate_APILEVEL enumeration type describes API version levels for this filter's default settings.

Member

Description

LMVDynRate_APILEVEL_1

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

Interface 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 (orginal input stream playback rate), .5 = 1/2x (half as fast as original input rate), 2.0 = 2x (twice as fast as original input rate)

Interface Methods:

HRESULT GetAdjustedDuration(__int64 *pRefTime);

Parameters

pRefTime Pointer to a variable that will receive the duration.

Description

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

Returns

S_OK if successful, < 0 if an error occurred.

HRESULT ResetToDefaultsEx(LMVDynRate_APILEVEL ApiLevel)

Description

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

Comments

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

Returns

S_OK 

Success

VFW_E_WRONG_STATE

The filter is in the wrong state.

Help Version 20.0.2019.11.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help