libv4l-rockchip_v2: Add support for selection API

Upstream kernel has deprecated the old crop API and removed support for
it from all drivers. It is replaced by the selection API. However the
compatibility layer for crop-to-selection does not work for our use
case.

Add support for the selection API in the plugin, so that it can properly
tweak the cropping range for H.264 encoding.

BUG=b:206718749
TEST=Run vea_tests with LIBV4L_PLUGIN_LOG_LEVEL=4

Change-Id: I395aa8e303f4916b83224c947b8c1e8442d30e47
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libv4lplugins/+/3308616
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Commit-Queue: Chen-Yu Tsai <wenst@chromium.org>
1 file changed
tree: d7b697b5c05fed216dfad2efd014aa5eae13aff2
  1. libv4l-rockchip/
  2. libv4l-rockchip_v2/
  3. OWNERS
  4. PRESUBMIT.cfg