video-converter: switch to using a task pool ..
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 27 Oct 2020 23:01:16 +0000 (00:01 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 12 Nov 2020 17:38:34 +0000 (17:38 +0000)
commitc50f4477ecb098bf3f8c9ac0e704fe340f36236a
tree5f8776132bdec9b330e567a49879da8614f2b59a
parentf3dc83d2852eb9bea9fa4953bb7ffe444e117003
video-converter: switch to using a task pool ..

.. and make use of that API in videoaggregator.

When setting certain properties, such as cropping or the scaled
size of pads, a new converter is created by videoaggregator.

Before that patch, this implied spawning new threads, potentially
at each aggregate cycle when interpolating pad properties. This
is obviously wasteful, and re-using a task pool removes that
overhead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/896>
gst-libs/gst/video/gstvideoaggregator.c
gst-libs/gst/video/video-converter.c
gst-libs/gst/video/video-converter.h
tests/check/libs/video.c