ILMVMotionEmboss Interface

Data Types

REFERENCE_FRAME

Summary

Specifies the reference frame.

Syntax

enum REFERENCE_FRAME 
{ 
   REF_USEBUFFER, 
   REF_USENEXTFRAME, 
   REF_USECOLOR, 
}; 

Properties

Type Name Description
VARIANT_BOOL Enabled Enables or disables the effect. If set to VARIANT_FALSE, the filter will pass the video samples intact.
VARIANT_BOOL Embossp Flag that indicates weather to emboss with a bump map. Possible values are:
• VARIANT_TRUE - emboss with a bump map
• VARIANT_FALSE - do not emboss with a bump map.
long Depth Depth of the emboss effect. Range: 1 to 100.
long Elevation Elevation angle. Range of values is from 0 to 180 degrees, where 0 will cause outer embossing, and 180 will cause inner embossing.
long LightAngle The direction of the light, in degrees. Range: 0 to 360 degrees.
VARIANT_BOOL FirstFrameIsReference Enables or disables setting the first frame in every play session as the reference frame. Possible values are:
• VARIANT_TRUE - the first frame in every play session will be set as the reference frame (Usually the first frame in a movie).
• VARIANT_FALSE - then the reference frame should be set manually after a number of frames. Setting this property after the stream starts will have no effect.
long Threshold Value used to control an object's detection level. A lower threshold provides stronger object detection. Range: 1 to 100.
VARIANT_BOOL NoReferenceFrame Flag that controls the reference frame. Possible values are:
• VARIANT_TRUE - the reference frame is assumed to be a black buffer.
• VARIANT_FALSE - the reference frame will be the frame set by the user through the SetReferenceFrame method or by setting the FirstFrameAsReference property.

Methods

HRESULT SetReferenceFrame (byte *pBuffer, long lRGBColor, REFERENCE_FRAME opt)

Description

Sets the reference frame of the movie.

Parameters

pBuffer

Buffer contains the reference frame. This buffer should have the same dimensions (width and height), and the same bits per pixel as the movie.

lRGBColor

Pixel color (RGB 24-bit). The reference frame will be set as a solid frame with the color specified in this parameter.

opt

Flag that controls the reference frame. Possible values are:

Value Meaning
REF_USEBUFFER only the pBuffer member is used.
REF_USENEXTFRAME the next frame in the movie is taken as the reference frame.
REF_USECOLOR the lRGBColor parameter is used.

Returns

Return Description
S_OK Connected.
S_FALSE Otherwise.
Help Version 23.0.2024.9.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.