| 68 | } |
| 69 | |
| 70 | PixelFormat 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 | |
| 76 | const char* RemoteVideoPixelFormatName(PixelFormat format) { |
| 77 | return format == PixelFormat::kYuv444p ? "yuv444p" : "yuv420p"; |
no outgoing calls
no test coverage detected