Artem Titov | 8a9f3a8 | 2023-04-25 07:56:49 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2023 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 | #ifndef TEST_VIDEO_TEST_CONSTANTS_H_ |
| 11 | #define TEST_VIDEO_TEST_CONSTANTS_H_ |
| 12 | |
| 13 | #include <cstdint> |
| 14 | |
| 15 | #include "api/units/time_delta.h" |
| 16 | |
| 17 | namespace webrtc { |
| 18 | namespace test { |
| 19 | |
| 20 | class VideoTestConstants { |
| 21 | public: |
| 22 | static constexpr size_t kNumSsrcs = 6; |
| 23 | static constexpr int kNumSimulcastStreams = 3; |
| 24 | static constexpr int kDefaultWidth = 320; |
| 25 | static constexpr int kDefaultHeight = 180; |
| 26 | static constexpr int kDefaultFramerate = 30; |
| 27 | static constexpr TimeDelta kDefaultTimeout = TimeDelta::Seconds(30); |
| 28 | static constexpr TimeDelta kLongTimeout = TimeDelta::Seconds(120); |
| 29 | enum classPayloadTypes : uint8_t { |
| 30 | kSendRtxPayloadType = 98, |
| 31 | kRtxRedPayloadType = 99, |
| 32 | kVideoSendPayloadType = 100, |
| 33 | kAudioSendPayloadType = 103, |
qwu16 | ae82df7 | 2023-09-20 05:10:31 | [diff] [blame] | 34 | kPayloadTypeH265 = 117, |
Artem Titov | 8a9f3a8 | 2023-04-25 07:56:49 | [diff] [blame] | 35 | kRedPayloadType = 118, |
| 36 | kUlpfecPayloadType = 119, |
| 37 | kFlexfecPayloadType = 120, |
| 38 | kPayloadTypeH264 = 122, |
| 39 | kPayloadTypeVP8 = 123, |
| 40 | kPayloadTypeVP9 = 124, |
| 41 | kPayloadTypeGeneric = 125, |
| 42 | kFakeVideoSendPayloadType = 126, |
| 43 | }; |
| 44 | static constexpr uint32_t kSendRtxSsrcs[kNumSsrcs] = { |
| 45 | 0xBADCAFD, 0xBADCAFE, 0xBADCAFF, 0xBADCB00, 0xBADCB01, 0xBADCB02}; |
| 46 | static constexpr uint32_t kVideoSendSsrcs[kNumSsrcs] = { |
| 47 | 0xC0FFED, 0xC0FFEE, 0xC0FFEF, 0xC0FFF0, 0xC0FFF1, 0xC0FFF2}; |
| 48 | static constexpr uint32_t kAudioSendSsrc = 0xDEADBEEF; |
| 49 | static constexpr uint32_t kFlexfecSendSsrc = 0xBADBEEF; |
| 50 | static constexpr uint32_t kReceiverLocalVideoSsrc = 0x123456; |
| 51 | static constexpr uint32_t kReceiverLocalAudioSsrc = 0x1234567; |
| 52 | static constexpr int kNackRtpHistoryMs = 1000; |
| 53 | |
| 54 | private: |
| 55 | VideoTestConstants() = default; |
| 56 | }; |
| 57 | |
| 58 | } // namespace test |
| 59 | } // namespace webrtc |
| 60 | |
| 61 | #endif // TEST_VIDEO_TEST_CONSTANTS_H_ |