gstreamer/sys/kms
Devarsh Thakkar d2a7b763be kmssink: Fix fallback path for driver not able to scale scenario
When driver return error on update plane request, kmssink
disables the scaling and retries plane update.
While doing so kmssink was matching the source rectangle dimensions
to the target rectangle dimensions which were calculated
as per scaling but this is incorrect, instead what we want here is
that target rectangle dimensions should match the source rectangle
dimensions as scaling is disabled now and so we match result
rectangle dimensions with source rectangle dimensions.

While at it, also match the result rectangle coordinates for
horizontal and vertical offsets with source rectange coordinates,
as since there is no scaling being done so no recentering is
required.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2415>
2021-07-23 14:06:33 +00:00
..
gstkmsallocator.c kmssink: Add support for P010 and P016 formats 2020-04-22 22:39:04 +00:00
gstkmsallocator.h kms: Export DMABuf from Dumb buffer when possible 2017-10-05 16:16:16 -04:00
gstkmsbufferpool.c kms: Export DMABuf from Dumb buffer when possible 2017-10-05 16:16:16 -04:00
gstkmsbufferpool.h kms: Export DMABuf from Dumb buffer when possible 2017-10-05 16:16:16 -04:00
gstkmssink.c kmssink: Fix fallback path for driver not able to scale scenario 2021-07-23 14:06:33 +00:00
gstkmssink.h plugins-sys: allow per feature registration 2021-04-09 19:23:40 +00:00
gstkmsutils.c kmssink: Add support for P010 and P016 formats 2020-04-22 22:39:04 +00:00
gstkmsutils.h kmssink: remove dependency on libkms 2016-11-23 16:43:28 +01:00
meson.build kmssink: Add support for P010 and P016 formats 2020-04-22 22:39:04 +00:00