Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Tabela automatyzacji dla filtru, pinezki lub węzła opisuje właściwości i metody obsługiwane przez filtr, przypięcie lub węzeł. Jeśli minidriver BDA dostarcza właściwość lub procedurę obsługi, która jest już zaimplementowana przez AVStream, implementacja minidrivera BDA zastępuje avStream.
Minidriver BDA powinien definiować tablice zestawów właściwości i metod, a następnie definiować tabele automatyzacji dla tych tablic zestawów, aby minidriver mógł automatycznie przetwarzać żądania. Zobacz sekcję Determining BDA Device Topology (Określanie topologii urządzeń BDA ), aby zapoznać się z przykładem sposobu, w jaki minidriver definiuje również właściwość, do której odwołuje się ta sekcja.
Poniższy fragment kodu przedstawia przykłady tabel automatyzacji filtrów i tablic właściwości i zestawów metod:
//
// Filter Level Property Set supported
//
// This array defines a property set supported by the
// filter that is exposed by the minidriver.
//
DEFINE_KSPROPERTY_SET_TABLE(FilterPropertySets)
{
DEFINE_KSPROPERTY_SET
(
&KSPROPSETID_BdaTopology, // Set
SIZEOF_ARRAY(FilterTopologyProperties), // PropertiesCount
FilterTopologyProperties, // PropertyItems
0, // FastIoCount
NULL // FastIoTable
)
};
//
// Filter Level Method Sets supported
//
// This array defines method sets supported by the
// filter that is exposed by the minidriver.
//
DEFINE_KSMETHOD_SET_TABLE(FilterMethodSets)
{
DEFINE_KSMETHOD_SET
(
&KSMETHODSETID_BdaChangeSync, // Set
SIZEOF_ARRAY(BdaChangeSyncMethods), // MethodsCount
BdaChangeSyncMethods, // MethodItems
0, // FastIoCount
NULL // FastIoTable
),
DEFINE_KSMETHOD_SET
(
&KSMETHODSETID_BdaDeviceConfiguration, // Set
SIZEOF_ARRAY(BdaDeviceConfigurationMethods),// MethodsCount
BdaDeviceConfigurationMethods, // MethodItems
0, // FastIoCount
NULL // FastIoTable
)
};
//
// Filter Automation Table
//
// Lists all arrays of property and method sets for the filter that
// is exposed by the minidriver.
//
DEFINE_KSAUTOMATION_TABLE(FilterAutomation) {
DEFINE_KSAUTOMATION_PROPERTIES(FilterPropertySets),
DEFINE_KSAUTOMATION_METHODS(FilterMethodSets),
DEFINE_KSAUTOMATION_EVENTS_NULL
};
Poniższy fragment kodu przedstawia przykład tabeli automatyzacji węzłów i tablicę zestawów właściwości:
//
// RF tuner node property set supported
//
// This array defines a property set supported by the
// RF Tuner Node associated with the antenna input pin.
//
DEFINE_KSPROPERTY_SET_TABLE(RFNodePropertySets)
{
DEFINE_KSPROPERTY_SET
(
&KSPROPSETID_BdaFrequencyFilter, // Set
SIZEOF_ARRAY(RFNodeFrequencyProperties), // PropertiesCount
RFNodeFrequencyProperties, // PropertyItems
0, // FastIoCount
NULL // FastIoTable
)
};
//
// Radio frequency tuner node automation table
//
//
DEFINE_KSAUTOMATION_TABLE(RFTunerNodeAutomation) {
DEFINE_KSAUTOMATION_PROPERTIES( RFNodePropertySets),
DEFINE_KSAUTOMATION_METHODS_NULL,
DEFINE_KSAUTOMATION_EVENTS_NULL
};