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

Function ParseRemoteVideoPixelFormat

src/daemon/cloud_tunnel.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70PixelFormat ParseRemoteVideoPixelFormat(const nlohmann::json& payload) {
71 const std::string value = payload.value("video_pixel_format", "yuv420p");
72 if (value == "yuv444p") return PixelFormat::kYuv444p;
73 return PixelFormat::kYuv420p;
74}
75
76const char* RemoteVideoPixelFormatName(PixelFormat format) {
77 return format == PixelFormat::kYuv444p ? "yuv444p" : "yuv420p";

Callers 2

CreateRemoteSessionMethod · 0.85
HandleRemoteSignalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected