/*
* Copyright ( c ) 2023 The WebRTC project authors . All Rights Reserved .
*
* Use of this source code is governed by a BSD - style license
* that can be found in the LICENSE file in the root of the source
* tree . An additional intellectual property rights grant can be found
* in the file PATENTS . All contributing project authors may
* be found in the AUTHORS file in the root of the source tree .
*/
#ifndef TEST_VIDEO_TEST_CONSTANTS_H_
#define TEST_VIDEO_TEST_CONSTANTS_H_
#include <cstddef>
#include <cstdint>
#include "api/units/time_delta.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
namespace webrtc {
namespace test {
class VideoTestConstants {
public :
static constexpr size_t kNumSsrcs = 6 ;
static constexpr int kNumSimulcastStreams = 3 ;
static constexpr int kDefaultWidth = 320 ;
static constexpr int kDefaultHeight = 180 ;
static constexpr int kDefaultFramerate = 30 ;
static constexpr TimeDelta kDefaultTimeout = TimeDelta::Seconds(30 );
static constexpr TimeDelta kLongTimeout = TimeDelta::Seconds(120 );
enum classPayloadTypes : uint8_t {
kSendRtxPayloadType = 98 ,
kRtxRedPayloadType = 99 ,
kVideoSendPayloadType = 100 ,
kAudioSendPayloadType = 103 ,
kPayloadTypeH265 = 117 ,
kRedPayloadType = 118 ,
kUlpfecPayloadType = 119 ,
kFlexfecPayloadType = 120 ,
kPayloadTypeH264 = 122 ,
kPayloadTypeVP8 = 123 ,
kPayloadTypeVP9 = 124 ,
kPayloadTypeGeneric = 125 ,
kFakeVideoSendPayloadType = 126 ,
};
static constexpr uint32_t kSendRtxSsrcs[kNumSsrcs] = {
0 xBADCAFD, 0 xBADCAFE, 0 xBADCAFF, 0 xBADCB00, 0 xBADCB01, 0 xBADCB02};
static constexpr uint32_t kVideoSendSsrcs[kNumSsrcs] = {
0 xC0FFED, 0 xC0FFEE, 0 xC0FFEF, 0 xC0FFF0, 0 xC0FFF1, 0 xC0FFF2};
static constexpr uint32_t kAudioSendSsrc = 0 xDEADBEEF;
static constexpr uint32_t kFlexfecSendSsrc = 0 xBADBEEF;
// When there is no send stream, the SSRC of receiver RTCP reports
// will always send from these two values.
static constexpr uint32_t kReceiverLocalVideoSsrc = kFallbackRtcpSsrcForVideo;
static constexpr uint32_t kReceiverLocalAudioSsrc = kFallbackRtcpSsrcForAudio;
static constexpr int kNackRtpHistoryMs = 1000 ;
private :
VideoTestConstants() = default ;
};
} // namespace test
} // namespace webrtc
#endif // TEST_VIDEO_TEST_CONSTANTS_H_
Messung V0.5 in Prozent C=91 H=100 G=95
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-29)
¤
*© Formatika GbR, Deutschland