ILMVCrop Interface

This is the interface for the LEAD Video Crop Filter.

Data Types

CROP_MODE

Summary

Hold Cropping mode.

Syntax

typedef enum eCROP_MODE 
{ 
   CROP_MODE_NORMAL = 0, 
   CROP_MODE_OUTLINE, 
   CROP_MODE_AUTO, 
} CROP_MODE; 

Members

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 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.

Methods

HRESULT ResetToDefaults ()

Description

Resets the crop filter values to their default values.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.
Help Version 22.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.