blob: b9083987ed24318c706ae66651bab1579e36867d [file] [log] [blame]
Artem Titov8a9f3a82023-04-25 07:56:491/*
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
17namespace webrtc {
18namespace test {
19
20class 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,
qwu16ae82df72023-09-20 05:10:3134 kPayloadTypeH265 = 117,
Artem Titov8a9f3a82023-04-25 07:56:4935 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_