Available as an Add-on to LEADTOOLS Multimedia toolkits. |
This is the interface for the LEAD Video Crop Filter.
typedef enum
eCROP_MODE
{
CROP_MODE_NORMAL = 0,
CROP_MODE_OUTLINE,
CROP_MODE_AUTO,
}CROP_MODE
Hold Cropping mode
Constant |
Description |
CROP_MODE_NORMAL |
The filter operates the default way. |
CROP_MODE_OUTLINE |
Highlight the cropping area with a rectangle. |
CROP_MODE_AUTO |
The filter automatically detects the cropping coordinates. |
Properties:
Type |
Name |
Description |
VARIANT_BOOL |
Enabled |
Set to VARIANT_TRUE to enable Cropping. |
long |
Left |
The left coordinate of the cropped rectangle. |
long |
Top |
The top coordinate of the cropped rectangle. |
long |
Right |
The right coordinate of the cropped rectangle. |
long |
Bottom |
The bottom coordinate of the cropped rectangle. |
VARIANT_BOOL |
AutoStop |
If VARIANT_TRUE, allows stopping the graph automatically, this is needed when the dimensions change while the graph is running. You need to re-run the graph after the change is applied. |
VARIANT_BOOL |
IsLEADInputPinConnected |
Read only; returns VARIANT_TRUE if the filter’s input pin is connected. |
VARIANT_BOOL |
IsLEADOutputPinConnected |
Read only; returns VARIANT_TRUE if the filter’s output pin is connected. |
long |
InWidth |
Read only; the input stream width. |
long |
InHeight |
Read only; the input stream height. |
long |
OutWidth |
Read only; the output stream width. |
long |
OutHeight |
Read only; the output stream height. |
long |
InBits |
Read only; the input stream bits per pixel. |
long |
OutBits |
Read only; the output stream bits per pixel. |
CROP_MODE |
CroppingMode |
Set the Cropping mode, the cropping mode is one of the CROP_MODE values |
VARIANT_BOOL |
ChangeSettings |
Set to VARIANT_TRUE to start setting the cropping attributes, the new settings will take effect when setting the ChangeSettings property to VARIANT_FALSE. |
Interface Methods:
HRESULT ResetToDefaults ()
Parameters
None.
Description
Resets the crop filter values to their default values.
Returns
S_OK if connected, S_FALSE otherwise.