FilterEnum Constructor

Summary
The constructor for the FilterEnum object.
Syntax
C#
C++/CLI
public FilterEnum() 
public: 
FilterEnum(); 
Remarks

The constructor for the FilterEnum object.

Example

The examples below contain two kinds of C# and VB code for the following tasks:

  1. Using SetMerit/GetMerit to increase a filter's merit by a given value.

  2. Toggling the LEAD SPDIF Passthru.

C#
using Leadtools; 
using Leadtools.Multimedia; 
using LeadtoolsMultimediaExamples.Fixtures; 
 
 
public bool _result = false; 
public ConvertCtrlForm _form = new ConvertCtrlForm(); 
 
public void FilterEnumMeritExample() 
{ 
   FilterEnum filterEnum = new FilterEnum(); 
 
   try 
   { 
      // Get LEAD H264 Decoder/Decompressor Merit 
      int currentMerit = filterEnum.GetMerit(Constants.PreferredFilters.H264Decompressor); 
 
      // Increase the value by "one" 
      int newMerit = currentMerit + 1; 
 
      // Set the new merit value to LEAD H264 Decoder/Decompressor 
      filterEnum.SetMerit(Constants.PreferredFilters.H264Decompressor, newMerit); 
 
      // Get the merit value again 
      currentMerit = filterEnum.GetMerit(Constants.PreferredFilters.H264Decompressor); 
 
      // Check and see whether the value has been set correctly 
      _result = (currentMerit == newMerit) ? true : false; 
   } 
   catch (Exception) 
   { 
      _result = false; 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.