Nota
O acesso a esta página requer autorização. Podes tentar iniciar sessão ou mudar de diretório.
O acesso a esta página requer autorização. Podes tentar mudar de diretório.
Uma tabela de automação para um filtro, pino ou nó é o que descreve as propriedades e os métodos suportados pelo filtro, pino ou nó. Se um minidriver BDA fornecer uma propriedade ou manipulador de método que já esteja implementado pelo AVStream, a implementação do minidriver BDA substituirá a do AVStream.
Um minidriver BDA deve definir matrizes de propriedades e conjuntos de métodos e, em seguida, definir tabelas de automação para essas matrizes definidas para que o minidriver possa processar solicitações automaticamente. Consulte a seção Determinando a topologia do dispositivo BDA para obter um exemplo de como o minidriver também define um conjunto de propriedades ao qual esta seção se refere.
O trecho de código a seguir mostra exemplos de tabelas de automação de filtro e matrizes de conjuntos de propriedades e métodos:
//
// 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
};
O trecho de código a seguir mostra um exemplo de uma tabela de automação de nó e uma matriz de conjuntos de propriedades:
//
// 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
};