[Mux] add the new sync_mode:REFRESH
authorHyoung Joo Ahn <hello.ahn@samsung.com>
Thu, 25 Jun 2020 03:13:58 +0000 (12:13 +0900)
committerGeunsik Lim <leemgs@users.noreply.github.com>
Thu, 25 Jun 2020 23:22:54 +0000 (08:22 +0900)
commitc850e12504df34d3cdf9a1f38303679cf0ef217a
treeb3f3288a9ef7544ac476c90899b45995318b7eb0
parentf646290c42c2040bf3ec07918c1edf1139c7e5ca
[Mux] add the new sync_mode:REFRESH

This new sync mode allows PUSHING with only one new buffer of sinkpads of `tensor_mux`. Previously, if `tensor_mux` want to push its buffers to srcpad, all of sink pads had to be filled with new buffers. However, this new mode, REFRESH, push buffers when `tensor_mux` receive a new buffer. For the other sink pads, except the one received the new buffer, will use again the previous one. It decides EOS when any of the sink pads receive it.

Signed-off-by: Hyoung Joo Ahn <hello.ahn@samsung.com>
gst/nnstreamer/tensor_common.h
gst/nnstreamer/tensor_common_pipeline.c
gst/nnstreamer/tensor_mux/gsttensormux.c