ILMVConvRGBDisp Interface

Properties

Type Name Description
VARIANT_BOOL RGBOrder TRUE to use RGB mode, FALSE to use BGR mode.
long UsedBit Sets or gets the currently used bits. For possible values, refer to USEDBITS.
VARIANT_BOOL AutoStop If 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.
LM_FORMATTYPE InputVideoType Sets or gets the input video format type.
LM_FORMATTYPE OutputVideoType Sets or gets the output video format type.
VARIANT_BOOL IsLEADInputPinConnected Read only; returns TRUE if the filters input pin is connected.
VARIANT_BOOL IsLEADOutputPinConnected Read only; returns 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.

Methods

HRESULT SetInputType(long nType, VARIANT_BOOL bPalette)

Description

Sets the current media input type.

Parameters

nType

One of the LM_MEDIATYPES values.

bPalette

Determines whether the input is palletized (VARIANT_TRUE) or not (VARIANT_FALSE), this is valid only if nType is LM_MEDIATYPE_RGB8.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT GetInputType(long *pnType, VARIANT_BOOL *pbPalette)

Description

Retrieves the current media input type.

Parameters

pnType

A valid pointer to an integer variable that will receive the input type (one of the LM_MEDIATYPES constants).

pbPalette

A valid pointer to a Boolean variable that will receive the input palette status; VARIANT_TRUE if the input is palletized, VARIANT_FALSE otherwise. This is valid only if the input type is LM_MEDIATYPE_RGB8, otherwise, pbPalette will be always set to VARIANT_FALSE.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT SetOutputType(long nType, VARIANT_BOOL bPalette)

Description

Sets the current media output type.

Parameters

nType

One of the LM_MEDIATYPES values.

bPalette

Determines whether the output is palletized (VARIANT_TRUE) or not (VARIANT_FALSE), this is valid only if nType is LM_MEDIATYPE_RGB8.

Returns

Return Description
S_OK Successful.
S_FALSE Otherwise.

HRESULT GetOutputType(long *pnType, VARIANT_BOOL *pbPalette)

Description

Retrieves the current media output type.

Parameters

pnType

A valid pointer to an integer variable that will receive the output type (one of the LM_MEDIATYPES constants).

pbPalette

A valid pointer to a Boolean variable that will receive the output palette status, VARIANT_TRUE if the output is palletized, VARIANT_FALSE otherwise. This is valid only if the output type is LM_MEDIATYPE_RGB8, otherwise, pbPalette will be always set to FALSE.

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.