From 9666c702ee489acbafef27a8c753c9ffdb7b69e5 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Tue, 10 Dec 2024 08:08:18 +0100 Subject: [PATCH] vidmix/source_mix: add new two rows layout (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..29cec084a 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 (rows == 2) { + rect.w = mframe->size.w / 2; + rect.h = mframe->size.h; + rect.x = (rect.w) * (idx % 2); + rect.y = 0; + vidconv_center(mframe, frame_src, &rect); + return; + } else { rect.w = mframe->size.w / rows; rect.h = mframe->size.h / rows;