enum REFERENCE_FRAME
{
REF_USEBUFFER,
REF_USENEXTFRAME,
REF_USECOLOR,
};
typedef [v1_enum] enum HorizontalDirectionConstants
{
HORIZONTAL_DIRECTION_LEFT = 0,
HORIZONTAL_DIRECTION_RIGHT = 1
} HorizontalDirectionConstants;
typedef [v1_enum] enum VerticalDirectionConstants
{
VERTICAL_DIRECTION_UP = 0,
VERTICAL_DIRECTION_DOWN = 1
} VerticalDirectionConstants;
Type |
Name |
Description |
VARIANT_BOOL |
Enabled |
Enables or disables the effect. If set to VARIANT_FALSE, the filter will pass the video samples intact. |
VARIANT_BOOL |
FirstFrameIsReference |
Enables or disables setting the first frame in every play session as the reference frame. If this is VARIANT_TRUE, the first frame in every play session will be set as the reference frame (Usually the first frame in a movie). |
Long |
Threshold |
Value used to control an object's detection level. A lower threshold provides stronger object detection. Range: 1 to 100. |
Long |
HorizontalPixels |
Gets or sets the number of horizontal displacement pixels. The value ranges from 0 to video width. |
Long |
VerticalPixels |
Gets or sets the number of vertical displacement pixels. The value ranges from 0 to video height. |
HorizontalDirectionConstants |
HorizontalDirection |
Gets or sets the horizontal displacement direction. Possible value can be on of the following: HORIZONTAL_DIRECTION_LEFT: The pixels displace from right to left. HORIZONTAL_DIRECTION_RIGHT: The pixels displace from left to right. |
VerticalDirectionConstants |
VerticalDirection |
Gets or sets the vertical displacement direction. Possible value can be on of the following: VERTICAL_DIRECTION_UP: The pixels displace from down to up. VERTICAL_DIRECTION_DOWN: The pixels displace from up to down. |
Methods:
Method | Parameters | Description | |||||||||||||
SetReferenceFrame | byte* pBuffer, [in] long lRGBColor, [in] REFERENCE_FRAME opt | Sets the reference frame of the movie. | |||||||||||||
pBuffer | Buffer contains the reference frame. This buffer should have the same dimensions (width and height), and the same bits per pixel as the movie. | ||||||||||||||
lRGBColor | pixel color (RGB 24-bit). The reference frame will be set as a solid frame with the color specified in this parameter. | ||||||||||||||
Opt |
flag that controls the reference frame. Possible values are:
|