Skip to content

Commit

Permalink
vidmix/source_mix: add new two rows layout (full height center)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Dec 24, 2024
1 parent bcf98f1 commit 921fe97
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rem/vidmix/vidmix.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static void source_destructor(void *arg)


static inline void source_mix(struct vidframe *mframe,
const struct vidframe *frame_src,
struct vidframe *frame_src,
unsigned n, unsigned rows, unsigned idx,
bool focus, bool focus_this, bool focus_full)
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 921fe97

Please sign in to comment.