1. P2StreamingNode overview
P2StreamingNode 是 Pipeline 中的一个 HW Node 。 功能类似于旧版的 P2FreatureNode 。
-
P2S 整个架构分4层。其中的 SFP 是 StreamingFeaturePipe 的缩写。
-
SFP Node 是 SFP 下的各个 node。request 传到 SFP 后,SFP 会往下丢到 SFP Node 处理。
-
SFP Node 的 flow 总是从 RootNode 开始,中间根据不同的处理需求,流经各个不同的node 处理,最终都会流到 HelperNode 处理。 HelperNode 会将处理结果 callback 回 StreamingProcessor。
-
TPINode 是用于挂载三方算法的 Node。
每一部分的作用
-
P2StreamingNode : 接收 Pipeline Frame, 转成 MWFrame 。
-
DispatchProcessor : 控制 feature 的 dispatch。将一般的 Streaming request dispatch 给 StreamingProcessor 处理。 将 slow motion 和debug 的 request dispatch 给 BasiceProcessor 处理。还可以控制 debug 机制(dump buffer, sanline 等) 。
-
StreamingProcessor : 准备 feature on/off/combination parameters ;准备output buffer 的crop calculation;enque 到 StreamingFeaturePipe 中做 feature 处理。
-
StreamingFeaturePipe : 做 Raw 转YUV ;结合 MTK HW 和三方 algo 实现各种 feature。