linuxOS_AP06/buildroot/package/gstreamer1/gst1-plugins-bad/0047-kmssink-Allow-out-of-screen-size.patch
2025-06-03 12:28:32 +08:00

35 lines
1.0 KiB
Diff

From 2dfba36e67f0227a7349ff17f8ab361e00bac479 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Thu, 30 May 2024 17:24:59 +0800
Subject: [PATCH 47/48] kmssink: Allow out of screen size
Tested with on RK3588 EVB:
gst-launch-1.0 videotestsrc ! 'video/x-raw,width=2000,height=2000' ! kmssink render-rectangle='<-100,-100,5000,5000>'
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
sys/kms/gstkmssink.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c
index 195bdb8..f85461e 100644
--- a/sys/kms/gstkmssink.c
+++ b/sys/kms/gstkmssink.c
@@ -2481,13 +2481,6 @@ retry_set_plane:
result.h = self->vdisplay;
}
- /* handle out of screen case */
- if ((result.x + result.w) > self->hdisplay)
- result.w = self->hdisplay - result.x;
-
- if ((result.y + result.h) > self->vdisplay)
- result.h = self->vdisplay - result.y;
-
if (result.w <= 0 || result.h <= 0) {
GST_WARNING_OBJECT (self, "video is out of display range");
goto sync_frame;
--
2.20.1