From caf530d2374a8b0378df0501ab6a407c18cab702 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Tue, 10 Dec 2024 08:08:18 +0100 Subject: [PATCH] vidmix/source_mix: use vidconv_center (full height center) --- rem/vidmix/vidmix.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rem/vidmix/vidmix.c b/rem/vidmix/vidmix.c index 4eeb4e5d0..f4a3b5e73 100644 --- a/rem/vidmix/vidmix.c +++ b/rem/vidmix/vidmix.c @@ -132,6 +132,14 @@ static inline void source_mix(struct vidframe *mframe, source_mix_full(mframe, frame_src); return; } + else if (n <= 3) { + rect.w = mframe->size.w / n; + rect.h = mframe->size.h; + rect.x = (rect.w) * (idx % n); + rect.y = 0; + vidconv_center(mframe, frame_src, &rect); + return; + } else { rect.w = mframe->size.w / rows; rect.h = mframe->size.h / rows;