Benjamin Wright | 8efafdf | 2019-01-11 18:48:42 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef TEST_CALL_CONFIG_UTILS_H_ |
| 12 | #define TEST_CALL_CONFIG_UTILS_H_ |
| 13 | |
| 14 | #include "call/video_receive_stream.h" |
| 15 | #include "rtc_base/strings/json.h" |
| 16 | |
| 17 | namespace webrtc { |
| 18 | namespace test { |
| 19 | |
Tommi | f6f4543 | 2022-05-20 13:21:20 | [diff] [blame] | 20 | // Deserializes a JSON representation of the VideoReceiveStreamInterface::Config |
| 21 | // back into a valid object. This will not initialize the decoders or the |
| 22 | // renderer. |
| 23 | VideoReceiveStreamInterface::Config ParseVideoReceiveStreamJsonConfig( |
Benjamin Wright | 8efafdf | 2019-01-11 18:48:42 | [diff] [blame] | 24 | webrtc::Transport* transport, |
| 25 | const Json::Value& json); |
| 26 | |
Tommi | f6f4543 | 2022-05-20 13:21:20 | [diff] [blame] | 27 | // Serialize a VideoReceiveStreamInterface::Config into a Json object. |
Benjamin Wright | 9db8b88 | 2019-01-14 23:30:20 | [diff] [blame] | 28 | Json::Value GenerateVideoReceiveStreamJsonConfig( |
Tommi | f6f4543 | 2022-05-20 13:21:20 | [diff] [blame] | 29 | const VideoReceiveStreamInterface::Config& config); |
Benjamin Wright | 9db8b88 | 2019-01-14 23:30:20 | [diff] [blame] | 30 | |
Benjamin Wright | 8efafdf | 2019-01-11 18:48:42 | [diff] [blame] | 31 | } // namespace test |
| 32 | } // namespace webrtc |
| 33 | |
| 34 | #endif // TEST_CALL_CONFIG_UTILS_H_ |