v4l2-ctl: add eos and decoder-stop support.
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 9 Apr 2013 06:46:49 +0000 (08:46 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Tue, 9 Apr 2013 06:46:49 +0000 (08:46 +0200)
commit20e4680551302bcb7b59f34685c3340eb0a924d9
tree2fea32cd14df8db04433f833237b7ea9f7b0692b
parent18cef09e17b2adb0e5701997e94a7d125f0e59e2
v4l2-ctl: add eos and decoder-stop support.

When dealing with compressed streams it is useful if the capture streaming
code would check for V4L2_EVENT_EOS and if the output streaming side would
be able to use a STOP DECODER command before calling STREAMOFF to give the
decoder the time to flush any pending data.

This patch adds support for that.

Thanks to Tzu-Jung Lee for testing this.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-ctl/v4l2-ctl-misc.cpp
utils/v4l2-ctl/v4l2-ctl-streaming.cpp
utils/v4l2-ctl/v4l2-ctl.cpp
utils/v4l2-ctl/v4l2-ctl.h