diff options
author | Seungha Yang <seungha@centricular.com> | 2021-08-04 00:51:24 +0900 |
---|---|---|
committer | Seungha Yang <seungha@centricular.com> | 2021-08-20 18:43:26 +0900 |
commit | 1ae8b61ec09c48a9f82b3173472903c13d513c74 (patch) | |
tree | 6cd5179dab7a0cc7bf0c42e665be3bf720f8471e /gst/compositor/compositor.h | |
parent | bf71ef17e31543d6e082a08018ac28b193794ade (diff) | |
download | gstreamer-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.h | 3 |
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. */ |