Skip to content

Commit 52a2326

Browse files
authored
Increase default raw memsink size to support 4k video (#327)
With this change, it's possible to use ustreamer to handle 4k HDMI input on RK3588-based boards (tested on Orange Pi 5+ and Radxa ROCK 5B+).
1 parent fa15d96 commit 52a2326

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libs/memsinksh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ uz us_memsink_calculate_size(const char *obj) {
6161
} else if (!strcasecmp(ptr, "h264")) {
6262
return 2 * 1024 * 1024;
6363
} else if (!strcasecmp(ptr, "raw")) {
64-
return 1920 * 1200 * 3; // RGB
64+
return 3840 * 2160 * 3; // RGB
6565
}
6666
}
6767
return 0;

src/libs/memsinksh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
#define US_MEMSINK_MAGIC ((u64)0xCAFEBABECAFEBABE)
30-
#define US_MEMSINK_VERSION ((u32)7)
30+
#define US_MEMSINK_VERSION ((u32)8)
3131

3232

3333
typedef struct {

0 commit comments

Comments
 (0)