v4l2videodec : refactor the setup process of capture
authorMing Qian <ming.qian@nxp.com>
Tue, 26 Oct 2021 02:03:42 +0000 (10:03 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Mar 2022 00:00:50 +0000 (00:00 +0000)
commitfe56af607b7e8ceb265f30b1806833048fbbce98
treef1ac12602f1631bbb66aa19c4a7884828cdf4b8a
parentcabff7a20fecc625d26a2d6cce7df65d93d6827e
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"

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