mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-14 03:23:43 +00:00
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+).
This commit is contained in:
committed by
GitHub
parent
fa15d9693f
commit
52a2326426
@@ -61,7 +61,7 @@ uz us_memsink_calculate_size(const char *obj) {
|
|||||||
} else if (!strcasecmp(ptr, "h264")) {
|
} else if (!strcasecmp(ptr, "h264")) {
|
||||||
return 2 * 1024 * 1024;
|
return 2 * 1024 * 1024;
|
||||||
} else if (!strcasecmp(ptr, "raw")) {
|
} else if (!strcasecmp(ptr, "raw")) {
|
||||||
return 1920 * 1200 * 3; // RGB
|
return 3840 * 2160 * 3; // RGB
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#define US_MEMSINK_MAGIC ((u64)0xCAFEBABECAFEBABE)
|
#define US_MEMSINK_MAGIC ((u64)0xCAFEBABECAFEBABE)
|
||||||
#define US_MEMSINK_VERSION ((u32)7)
|
#define US_MEMSINK_VERSION ((u32)8)
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user