summaryrefslogtreecommitdiff
path: root/gst/compositor/compositor.h
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-08-04 00:51:24 +0900
committerSeungha Yang <seungha@centricular.com>2021-08-20 18:43:26 +0900
commit1ae8b61ec09c48a9f82b3173472903c13d513c74 (patch)
tree6cd5179dab7a0cc7bf0c42e665be3bf720f8471e /gst/compositor/compositor.h
parentbf71ef17e31543d6e082a08018ac28b193794ade (diff)
downloadgstreamer-plugins-base-1ae8b61ec09c48a9f82b3173472903c13d513c74.tar.gz
compositor: Add "max-threads" property
Adding new property for user to be able to set expected the maximum number of blend task threads. This can be useful in case that user wants to restrict the number of parallel task runners for system resource management or debugging/development purpose. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1242>
Diffstat (limited to 'gst/compositor/compositor.h')
-rw-r--r--gst/compositor/compositor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/compositor/compositor.h b/gst/compositor/compositor.h
index 2a6f38ba4..863bb126c 100644
--- a/gst/compositor/compositor.h
+++ b/gst/compositor/compositor.h
@@ -134,6 +134,9 @@ struct _GstCompositor
*/
gboolean zero_size_is_unscaled;
+ /* Max num of allowed for blending/rendering threads */
+ guint max_threads;
+
/* The 'blend' compositing function does not preserve the alpha value of the
* background, while 'overlay' does; i.e., COMPOSITOR_OPERATOR_ADD is the
* same as COMPOSITOR_OPERATOR_OVER when using the 'blend' BlendFunction. */