Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmFilterEnum::put_Merit

Show in webframe

#include "ltmm.h"

C Syntax

HRESULT IltmmFilterEnum_put_Merit(pInput, Name, newVal)

C++ Syntax

HRESULT put_Merit(Name, newVal)

 

IltmmFilterEnum *pInput;

/* pointer to an interface */

BSTR Name

/* string */

long newVal;

/* filter Merit */

Sets DirectShow filter Merit.

Parameter

Description

pInput

Pointer to an IltmmFilterEnum Interface.

Name

Name is a string that can show either the Display Name or the Friendly Name of the filter. It is better to use Display Name since display names are unique. Two filters can be different and yet still have the same Friendly Name. When two Friendly Names are used, this function works on the first filter it internally enumerates with the specified friendly name.

pVal

The new merit value for the specified DirectShow filter  .

Returns

S_OK

The function was successful.

<> S_OK

An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

Merit values are used when building filter graphs. A DirectShow filter is enabled if its Merit is above 0x00200000. Otherwise it is disabled.  For more information, refer to the Microsoft documentation for DirectShow Merit.

A Display Name uniquely identifies a DirectShow filter (or any filter). Display names for software filters have the following format:

 @device:sw:GUID\\GUID

For example, the display name for Microsofts MPEG-2 Splitter is:

@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\\{3AE86B20-7BE8-11D1-ABE6-00A0C905F375

Since a Friendly Name is not unique there can be more than one filter with the same name. Despite this, it is useful as a descriptive name in user interfaces. For example, the Friendly Name for Microsofts MPEG-2 Splitter is

MPEG-2 Splitter

Required DLLs and Libraries

LTMM

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64

See Also

Elements:

IltmmFilterEnum::get_Merit

Topics:

Multimedia Function Groups

Example

For a C++ example, refer to IltmmFilterEnum Example for C++.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.