Describes addition attributes.
typedef struct _ADDATTRIBUTES
{
BOOL bEnable;
BOOL bPreserveFrameRate;
BOOL bAverage;
INT nFrames;
INT nFactors[MAX_BUFFERS];
INT nCurFrame; /* internal use */
} ADDATTRIBUTES;
TRUE to enable the effect.
TRUE to use previous frames to enhance frame rate, the output is not exactly the same as when setting this member to FALSE.
TRUE to enable frame averaging
Number of frames to add.
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).
Determines whether the filter input pin is currently connected.
Return | Description |
---|---|
S_OK | Successful. |
S_FALSE | Otherwise. |
Determines whether the filter output pin is currently connected.
Return | Description |
---|---|
S_OK | Successful. |
S_FALSE | Otherwise. |
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.
An ADDATTRIBUTES structure that contains properties to set.
Return | Description |
---|---|
S_OK | Successful. |
S_FALSE | Otherwise. |
Retrieves the current addition attributes.
A valid pointer to an ADDATTRIBUTES structure to be updated with the current settings.
Return | Description |
---|---|
S_OK | Successful. |
S_FALSE | Otherwise. |
Retrieves the current media dimensions.
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.
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.
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.
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.
Return | Description |
---|---|
S_OK | Successful. |
S_FALSE | Otherwise. |
Gets the bits per pixel of the current connected input and output media formats.
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.
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.
Return | Description |
---|---|
S_OK | Successful. |
S_FALSE | Otherwise. |