Share via


IBDAComparable Interface

 
Microsoft DirectShow 9.0

IBDAComparable Interface

This topic applies to Update Rollup 2 for Microsoft Windows XP Media Center Edition 2005 and later.

The IBDAComparable interface compares two objects to determine whether they contain the same or equivalent tuning information. DirectShow supports this interface in its implementation of the IComponent, IComponentType, ITuneRequest, ILocator, and ITuningSpace base interfaces and in the derived interfaces that inherit from these base interfaces. An application can query a component, component-type, tune-request, locator, or tuning-space object for an IBDAComparable interface that it can use to compare the tuning properties of the object to those of another object of the same type.

To support comparisons of the tuning properties of similar objects, two of the methods in this interface compare the property values directly. The remaining methods generate 64-bit CRC values from the property values for each object that the caller can compare to determine whether the objects have the same or equivalent properties.

In addition to the methods inherited from IUnknown, the IBDAComparable interface exposes the following methods.

Method Description
CompareEquivalent Compares two objects to determine whether they contain equivalent tuning information.
CompareExact Compares two objects to determine whether they contain the same tuning information.
HashEquivalent Generates a hash code for a subset of the tuning properties of an object.
HashEquivalentIncremental Incrementally generates a hash code for a subset of the tuning properties of an object.
HashExact Generates a hash code for all of the tuning properties of an object.
HashExactIncremental Incrementally generates a hash code for all of the tuning properties of an object.

Requirements

Header: Include Bdaiface.h.

See Also