MCPcopy Create free account
hub / github.com/78/tenbox / AlignDisplaySize

Function AlignDisplaySize

src/daemon/cloud_tunnel.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60uint32_t AlignDisplaySize(uint32_t value) {
61 value = std::max<uint32_t>(320, std::min<uint32_t>(3840, value));
62 return (value + 4u) & ~7u;
63}
64
65uint32_t ClampVideoBitrate(uint32_t value) {
66 if (value == 0) return 4'000'000;

Callers 2

CreateRemoteSessionMethod · 0.85
ResizeRemoteSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected