Merge pull request 'proto: bump PROTO_MAX_PAYLOAD 64 KiB → 1 MiB (closes #19)' (#20) from noether/issue-19-bump-proto-payload-1mib into main

Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
2026-05-22 18:47:46 +00:00
+12 -1
View File
@@ -71,7 +71,18 @@ struct daedalus_msg_hdr {
__u32 reserved; __u32 reserved;
}; };
#define DAEDALUS_PROTO_MAX_PAYLOAD (64u * 1024u) /* 64 KiB */ /*
* Wire-protocol payload cap. Sized to comfortably hold real-world
* H.264 / VP9 / AV1 access-unit bitstreams:
* - 720p H.264 worst-case I-frame: ~200 KiB
* - 1080p H.264 worst-case I-frame: ~500 KiB
* - 4K H.264 worst-case I-frame: ~2 MiB (would need a bump)
* 1 MiB is the conservative end of what cedrus / rkvdec / hantro
* report as OUTPUT_MPLANE sizeimage. Allocations (chardev kmalloc
* / kmemdup, daemon read buffer, vb2 plane backing) are sized per-
* payload at runtime; this only sets the ceiling. Issue #19.
*/
#define DAEDALUS_PROTO_MAX_PAYLOAD (1024u * 1024u) /* 1 MiB */
/* -- REQ_DECODE / RESP_FRAME payload structures ---------------------- */ /* -- REQ_DECODE / RESP_FRAME payload structures ---------------------- */