diff options
author | Huang Chaofan <chaofan.huang@nxp.com> | 2018-05-10 19:54:41 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:31:40 +0800 |
commit | 947418533396d01ebb94824482b00ef07fd6c3fb (patch) | |
tree | 096249c80c2c4233b5948551d8625e2b88a2117f /arch/arm/configs | |
parent | 5dfbec7b2b59763b2021de47f06d536182f72110 (diff) |
MLK-18273 VPU: Modify behavior of end of stream for decoder
Change behaviour of end-of-stream behaviour. When application signals stream
feed complete by sending a V4L2_DEC_CMD_STOP, rather than immediately inserting
the EOS marker into the buffer, instead set a flag to do the insertion on the
next LWM from hardware. This involves both driver and firmware changes.
New flow
-------
1. Receive V4L2_DEC_CMD_STOP, set ctx->stream_feed_complete = true
2. On next VID_API_EVENT_FIFO_LOW call add_eos() to insert an EOS
and padding. Set ctx->eos_stop_added = true
3. On VID_API_EVENT_FINISHED generate V4L2_EVENT_EOS from driver
Additional control also present to ensure that...
1. If an abort is triggered prior to the end of stream EOS marker
being added, then the EOS is not added by driver
2. If an abort is triggered after the driver has inserted the EOS
marker to signify end of stream then the abort is ignored
Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
Diffstat (limited to 'arch/arm/configs')
0 files changed, 0 insertions, 0 deletions