ILMVGamma Interface

Data Types

GAMMA_ATTRIBUTES

Summary

Describes gamma correction attributes.

Syntax

typedef struct 
{ 
   long lGamma; 
   BOOL bGammaEqualize; 
   long lDGamma; 
   BOOL bDGammaEqualize; 
} GAMMA_ATTRIBUTES; 

Members

lGamma

Gamma correction value, range between 1 and 500.

bGammaEqualize

TRUE to enable gamma correction.

lDGamma

Default Gamma correction value. Original default value is 1.0.

bDGammaEqualize

Default gamma correction Enable flag.

Methods

HRESULT IsLEADInputPinConnected()

Description

Determines whether the filter input pin is currently connected.

Returns

Return Description
S_OK Connected.
S_FALSE Otherwise.

HRESULT IsLEADOutputPinConnected()

Description

Determines whether the filter output pin is currently connected.

Returns

Return Description
S_OK Connected.
S_FALSE Otherwise.

HRESULT GetGamma_Attributes(GAMMA_ATTRIBUTES* gamma_attributes)

Description

Gets the current gamma correction attributes.

Parameters

gamma_attributes

A valid pointer to a GAMMA_ATTRIBUTES structure.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT SetGamma_Attributes(GAMMA_ATTRIBUTES gamma_attributes)

Description

Sets the gamma correction attributes. If the gamma value is out of the permitted range, it is clipped.

Parameters

gamma_attributes

A GAMMA_ATTRIBUTES structure that contains gamma correction attributes to set.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT GetIODimensions(long *plInWidth, long *plInHeight, long *plOutWidth, long *plOutHeight)

Description

Retrieves the current media dimensions.

Parameters

plInWidth

A valid pointer to a long variable to be updated with the input media width. NULL can be passed if this value is not needed.

plInHeight

A valid pointer to a long variable to be updated with the input media height. NULL can be passed if this value is not needed.

plOutWidth

A valid pointer to a long variable to be updated with the output media width. NULL can be passed if this value is not needed.

plOutHeight

A valid pointer to a long variable to be updated with the output media height. NULL can be passed if this value is not needed.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT GetIOBitCount(int *plInBits, int *plOutBits)

Description

Gets the bits per pixel of the current connected input and output media formats.

Parameters

pInBitCount

A valid pointer to an integer that will receive the input media bits per pixel value. NULL can be passed if this value is not needed.

pPBitCount

A valid pointer to an integer that will receive the output media bits per pixel value. NULL can be passed if this value is not needed.

Returns

Return Description
S_OK Successful.
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.