LEAD Video Resize Transform Attributes

The following attributes are supported by the LEAD Video Resize Transform through the IMFAttributes interface. 

Data type

Attribute CLSID

Description

UINT32 (BOOL)

LMF_RESIZE_ENABLERESIZE

TRUE to enable resizing, FALSE to disable resizing.

UINT32 (BOOL)

LMF_RESIZE_ENABLEQUICKRESIZE

TRUE to enable predefined ratios selection.

UINT32 (BOOL)

LMF_RESIZE_AUTOSTOP

If TRUE, allows the graph to be stopped automatically. This is necessary when the dimensions change while the graph is running. The graph needs to be re-run after the change is applied.

UINT32 (long)

LMF_RESIZE_WIDTH

New width to use.

UINT32 (long)

LMF_RESIZE_HEIGHT

New height to use.

UINT32 (QUICKRESIZE)

LMF_RESIZE_QUICKRESIZE

If EnableQuickResize is TRUE, this property must be set to one of the QUICKRESIZE constants. When using the QUICKRESIZE constants the Width and Height properties are ignored.

UINT32 (SIZETYPES)

LMF_RESIZE_FLAGS

One of the SIZETYPES constants, which specify the algorithm used for resizing.

UINT32 (long)

LMF_RESIZE_FILLCOLOR

The color that will be used to fill the different size.

UINT32 (InputAspectRatioModeConstants)

LMF_RESIZE_INPUTASPECTRATIOMODE

Use this property to specify whether to use the video input aspect ratio or override it.

UINT32 (long)

 

LMF_RESIZE_CUSTOMINPUTASPECTRATIOWIDTH

Width component for custom aspect ratio. Used only if

InputAspectRatioMode is set to INPUTASPECTRATIO_CUSTOM.

UINT32 (long)

 

LMF_RESIZE_CUSTOMINPUTASPECTRATIOHEIGHT

Height component for custom aspect ratio. Used only if

InputAspectRatioMode is set to

INPUTASPECTRATIO_CUSTOM. 

UINT32 (OutputAspectRatioModeConstants)

LMF_RESIZE_OUTPUTASPECTRATIOMODE

Use this property to specify the desired output aspect ratio. 

UINT32 (long)

 

LMF_RESIZE_CUSTOMOUTPUTASPECTRATIOWIDTH

Width component for custom aspect ratio. Used only if

OutputAspectRatioMode is set to OUTPUTASPECTRATIO_CUSTOM.

UINT32 (long)

 

LMF_RESIZE_CUSTOMOUTPUTASPECTRATIOHEIGHT

Height component for custom aspect ratio. Used only if

OutputAspectRatioMode is set to OUTPUTASPECTRATIO_CUSTOM. 

UINT32 (StretchModeConstants)

LMF_RESIZE_STRETCHMODE

Allows you to specify whether the input should be stretched to the output or whether the aspect ratio should be preserved.

UINT32 (SizeControlModeConstants)

LMF_RESIZE_WIDTHCONTROLMODE

Specifies whether the filter can modify the output width if necessary to preserve the input aspect ratio. This property is ignored if StretchMode is set to STRETCHMODE_STRETCH.

UINT32 (SizeControlModeConstants)

 

LMF_RESIZE_HEIGHTCONTROLMODE

Specifies whether the filter can modify the output height if necessary to preserve the input aspect ratio. This property is ignored if StretchMode is set to STRETCHMODE_STRETCH.

UINT32 (SquarePixelOutputModeConstants)

 

LMF_RESIZE_SQUAREPIXELOUTPUTMODE

Specifies what to do if the output does not have square pixels and the downstream filter does not preserve the aspect ratio. This setting allows you to specify how to modify the output width and height if the downstream filter insists on a square pixel output. This option overrides the WidthControlMode and HeightControlMode properties. (In other words, this indicates what should be down if the output media type is not VIDEOINFO2).

UINT32 (BOOL)

LMF_RESIZE_FORCESQUAREPIXELOUTPUT

Force the output to be square pixels (VIDEOINFO). In this case, the output might be resized as specified by the SquarePixelOutputMode property.

Note:

Changes that affect the video frame dimensions cannot be performed while the media session is active, as a result these changes will be reverted. You must close the currently open media, change the properties, and then re-open the media.

For more information on how to use the Transform Attributes, refer to Using Media Foundation Transform Attributes.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Transforms C API Help