compositor: Add scaling policy to support PAR-aware scaling
authorSeungha Yang <seungha@centricular.com>
Wed, 19 May 2021 07:22:46 +0000 (16:22 +0900)
committerSeungha Yang <seungha@centricular.com>
Tue, 29 Jun 2021 14:06:37 +0000 (23:06 +0900)
commit058f1e92b73bedf65d5b81520695d80e0b5403de
tree7395ae0273bf3930511a0b7c45b4979e3c2f5c89
parent2551b1d976dba885f5950a7b3b170389b0f05c2c
compositor: Add scaling policy to support PAR-aware scaling

Adding "sizing-policy" property for user to be able to specify
scaling policy (aspect-ratio for example).
At the moment, supported mode is only keep-aspect-ratio, but we might
be able to add more policies such as cropping, etc.

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