typedef struct _ADDATTRIBUTES
{
BOOL bEnable;
BOOL bPreserveFrameRate;
BOOL bAverage;
INT nFrames;
INT nFactors[MAX_BUFFERS];
INT nCurFrame; /* internal use */
} ADDATTRIBUTES;
Describes addition attributes.
Member |
Description |
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). |
None.
Determines whether the filter input pin is currently connected.
S_OK if connected, S_FALSE otherwise.
None.
Determines whether the filter output pin is currently connected.
S_OK if connected, S_FALSE otherwise.
AddAttributes |
An ADDATTRIBUTES structure that contains properties to set. |
Sets the properties for the add effect. Attributes are set permanently and they cant be canceled. If the filter is streaming, the effect will take place immediately.
S_OK if successful, S_FALSE otherwise.
pAddAttributes |
A valid pointer to an ADDATTRIBUTES structure to be updated with the current settings. |
Retrieves the current addition attributes.
S_OK if successful, S_FALSE otherwise.
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. |
Retrieves the current media dimensions.
S_OK if successful, S_FALSE otherwise.
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. |
Gets the bits per pixel of the current connected input and output media formats.
Return
S_OK if successful, S_FALSE otherwise.