This is the interface for the LEAD Video Crop Filter.
Hold Cropping mode.
typedef enum eCROP_MODE
{
CROP_MODE_NORMAL = 0,
CROP_MODE_OUTLINE,
CROP_MODE_AUTO,
} CROP_MODE;
The filter operates the default way.
Highlight the cropping area with a rectangle.
The filter automatically detects the cropping coordinates.
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 filters input pin is connected. |
VARIANT_BOOL | IsLEADOutputPinConnected | Read only; returns VARIANT_TRUE if the filters 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. |
VARIANT_BOOL | IgnoreStops | Gets or sets the value of IgnoreStops. Possible values are: |
• VARIANT_TRUE - Ignore the stops and continue to calculate the automatic crop rectangle. | ||
• VARIANT_FALSE - Exit the automatic mode when graph is stopped. |
Resets the crop filter values to their default values.
Return | Description |
---|---|
S_OK | Successful. |
S_FALSE | Otherwise. |