ILMVCrop Interface

This is the interface for the LEAD Video Crop Filter.

Data Types:

CROP_MODE

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.

Interface 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. If VARIANT_TRUE, ignore the stops and continue to calculate the automatic crop rectangle, If VARIANT_FALSE exit automatic mode when graph is stopped.

Interface Methods:

HRESULT ResetToDefaults ()

Parameters

None.

Description

Resets the crop filter values to their default values.

Returns

S_OK if connected, S_FALSE otherwise.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help

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