ILMVAdd Interface

Data Types

ADDATTRIBUTES

Summary

Describes addition attributes.

Syntax

typedef struct _ADDATTRIBUTES 
{ 
   BOOL bEnable; 
   BOOL bPreserveFrameRate; 
   BOOL bAverage; 
   INT nFrames; 
   INT nFactors[MAX_BUFFERS]; 
   INT nCurFrame; /* internal use */ 
} ADDATTRIBUTES; 

Members

bEnable

TRUE to enable the effect.

bReserveFrameRate

TRUE to use previous frames to enhance frame rate, the output is not exactly the same as when setting this member to FALSE.

bAverage

TRUE to enable frame averaging

nFrames

Number of frames to add.

nFactors

Array of nFrames that contains the usage factors of each frame (i.e. nFactors[0] = 80% then 80 percent of the values in the first frame is used in the addition process).

Methods

HRESULT IsLEADInputPinConnected()

Description

Determines whether the filter input pin is currently connected.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT IsLEADOutputPinConnected()

Description

Determines whether the filter output pin is currently connected.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT SetAddAttributes(ADDATTRIBUTES AddAttributes)

Description

Sets the properties for the add effect. Attributes are set permanently and they can not be canceled. If the filter is streaming, the effect will take place immediately.

Parameters

AddAttributes

An ADDATTRIBUTES structure that contains properties to set.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT GetAddAttributes(ADDATTRIBUTES * pAddAttributes )

Description

Retrieves the current addition attributes.

Parameters

pAddAttributes

A valid pointer to an ADDATTRIBUTES structure to be updated with the current settings.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT GetIODimensions(long *plInWidth, long *plInHeight, long *plOutWidth, long *plOutHeight)

Description

Retrieves the current media dimensions.

Parameters

plInWidth

A valid pointer to a long variable to be updated with the input media width. NULL can be passed if this value is not needed.

plInHeight

A valid pointer to a long variable to be updated with the input media height. NULL can be passed if this value is not needed.

plOutWidth

A valid pointer to a long variable to be updated with the output media width. NULL can be passed if this value is not needed.

plOutHeight

A valid pointer to a long variable to be updated with the output media height. NULL can be passed if this value is not needed.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT GetIOBitCount(int *plInBits, int *plOutBits)

Description

Gets the bits per pixel of the current connected input and output media formats.

Parameters

pInBitCount

A valid pointer to an integer to be updated with the input media bits per pixel value. NULL can be passed if this value is not needed.

pOutBitCount

A valid pointer to an integer to be updated with the output media bits per pixel value. NULL can be passed if this value is not needed.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.
Help Version 22.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.