Sets DirectShow filter Merit.
#include "ltmm.h"
Language | Syntax |
---|---|
C | HRESULT IltmmFilterEnum_put_Merit(pInput, Name, newValue) |
C++ | HRESULT put_Merit(Name, newValue) |
Pointer to an IltmmFilterEnum Interface.
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.
The new merit value for the specified DirectShow filter.
Value | Meaning |
---|---|
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. |
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 Microsoft 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 Microsoft MPEG-2 Splitter is
MPEG-2 Splitter
Win32, x64.
Language | Example |
---|---|
C++ | IltmmFilterEnum |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document