v4l2videodec : refactor the setup process of capture 27/272927/1
authorMing Qian <ming.qian@nxp.com>
Tue, 26 Oct 2021 02:03:42 +0000 (10:03 +0800)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 25 Mar 2022 09:34:57 +0000 (18:34 +0900)
commitf25d008d24e6837264ab1795f4e5ad28340ddf9c
tree306fc6a8bc919b0aee5f4da1e90e8caa32fa10d1
parentb39a88a73729a0580af66bce0c114adee5ed22f5
v4l2videodec : refactor the setup process of capture

v4l2videodec do some refactoring so that it can support
dynamic resolution change event.

1.wrap the setup process of capture as a function,
as decoder need setup the capture again when
dynamic resolution change event is received.

2.move the function "remove_padding"

Change-Id: I31fc55b5247e80f4ee7692cf925ca4f06fac2d3b
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1381>
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.h
subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c