Function Topology (Functional topology) : Bad The goal is to keep the overall architecture unchanged regardless of the hardware or reception signal. Bytes Introduces the concept of a functional topology. DirectShow Filter As a node (Node) , Including Receiver Filter So Filter You can do a lot of work, depending on Filter Included Node And Node Which functions are available. Functional Topology It only describes a structure, and the specific work is distributed to each Node . In ourProgram, An externally visible Filter : Tunner Filter Actually contains two Node , Tuner And Demodulator . In the Topology Node It is not applicable to any type, only in Categornode category guids List Node Type, can be added to the graph, Node All functions are completed by registering the distribution routine.
Categornode category guids:
Ksnode_bda_rf_tuner
Ksnode_bda_qam_demodulator
Ksnode_bda_qpsk_demodulator
Ksnode_bda_8vsb_demodulator
Ksnode_bda_opencable_pod
Ksnode_bda_pid_filter
Ksnode_bda_ip_sink
Each typeNodeAll have specificGuid, WhenNetwork provider FilterConnectedTunner FilterIt willGuidFind the correspondingNodeAnd generate an instance.Tunner FilterIs also usedTemplate TopologyTo describe eachPinAndNodeType, connection mode, and other information.
As shown in, the entire graph is a functional topology , Tunner node and demodualator node are two node , they all have specific guid , they are all dynamically generated when network provider filter is connected Tunner filter . pin1 and Tunner node are connected instead of demodulator connected, Tunner node before demodulator node instead of after template topology , the entire graph is connected network provider filter connected Tunner filter template topology Status.
but a filter contains several nodes it is not hard to specify, for example, in the figure above, it can be a filter that contains two nodes , you can also split it into two filter , each filter contains a node .
common node Yes network provider , tuner , demodulator and capture , network provider currently, many filters are available, you may need to modify DMB . You can use it most of the time; Tunner and demodulator it is now placed in the same filter , Tunner filter ; capture filter is the core part, reads data from hardware and transmits data back. Generally, A filter is created separately. nodes provides many other node , I have done a lot of work for us. For example, PID filter node actually does demultiplexer filter ., however, I do not need to PID filter node , instead, use DirectShow demultiplexer filter .