compositor: expose zero-size-is-unscaled property
authorMathieu Duponchelle <mathieu@centricular.com>
Sat, 7 Nov 2020 01:59:09 +0000 (02:59 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 13 Nov 2020 14:33:54 +0000 (14:33 +0000)
commitfe20cac1a7d67558e06fd9b2a21ed76e669fea9c
treebd11159ecd7c7a896197bbb6c7156a61fd0f8bee
parentc50f4477ecb098bf3f8c9ac0e704fe340f36236a
compositor: expose zero-size-is-unscaled property

When that property is left to its default, the width and height
property considers frames from input pads with width or height <= 0
should be left unscaled in that dimension.

Setting this property to FALSE changes that behaviour to < 0, as when
animating these properties, 0 should be a valid end value (eg. shrinking
an input stream until it disappears).

The default value of the width and height properties is set to -1, so that
the default behaviour stays consistent whether that new property is set
or not.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/923>
docs/plugins/gst_plugins_cache.json
gst/compositor/compositor.c
gst/compositor/compositor.h