link流程 建立时需要注意的地方

Link-chain Framework

This framework is developed (as an example) so that it becomes easier for the individual modules to integrate themselves

with others, create a chain of different modules and test them together for a particular use case. It is based on few

assumptions and may not be suitable for all possible use cases.

A link is a stand-alone independent task which is created on top of a specific module (like capture, scalar, noise

filter etc) and is meant to perform a predefined operation. For e.g. the display link will only take care of the display

related functionalities, a noise-filter link will only look towards noise filtering etc.

A chain is a set of links joined together to perform a complete sequence of operations desired for the specific use

case. For e.g. capture and display links can be joined to form a chain which will capture frames from the input source

and display them on the connected output.

During initialization, each link registers itself with this framework and then creates its own individual task. This

task listens to the incoming messages and takes the appropriate actions.

Each link accepts messages from the previous link(s) (the only exception is capture link) and sends output to the

connected link(s) (an exception is display). The link is informed by its predecessor link once the data is available for

its use. The link can then start processing the data and once it is done, it informs the next link. The next connected

link in the chain will then start processing the data and the process continues.

 

1)System_linkCreate() API. Links MUST be created in the order of source link to sink link.

2)Next the chain is started by calling System_linkStart() for each link in the chain.The links are started in the order of sink link to source link. This is not a hard requirement but is usually desired in the application, since this allows all links to get ready to receive input before the source link itself is started.

3)After the user is done with a chain he can stop it by calling System_linkStop() API for each link of the chain.A chains MUST be stopped in the order of source to sink.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值