blob: a0b1a15cbbeb332f2041ddad4e1194ecd50a66cf [file] [log] [blame]
Patrik Höglund3e113432017-12-15 14:40:10 +01001/*
2 * Copyright (c) 2017 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#include "api/rtp_headers.h"
12
13#include <string.h>
14#include <algorithm>
15#include <limits>
16#include <type_traits>
17
18#include "rtc_base/checks.h"
19#include "rtc_base/stringutils.h"
20
21namespace webrtc {
22
23RTPHeaderExtension::RTPHeaderExtension()
24 : hasTransmissionTimeOffset(false),
25 transmissionTimeOffset(0),
26 hasAbsoluteSendTime(false),
27 absoluteSendTime(0),
28 hasTransportSequenceNumber(false),
29 transportSequenceNumber(0),
30 hasAudioLevel(false),
31 voiceActivity(false),
32 audioLevel(0),
33 hasVideoRotation(false),
34 videoRotation(kVideoRotation_0),
35 hasVideoContentType(false),
36 videoContentType(VideoContentType::UNSPECIFIED),
37 has_video_timing(false) {}
38
39RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension& other) =
40 default;
41
42RTPHeaderExtension& RTPHeaderExtension::operator=(
43 const RTPHeaderExtension& other) = default;
44
45RTPHeader::RTPHeader()
46 : markerBit(false),
47 payloadType(0),
48 sequenceNumber(0),
49 timestamp(0),
50 ssrc(0),
51 numCSRCs(0),
52 arrOfCSRCs(),
53 paddingLength(0),
54 headerLength(0),
55 payload_type_frequency(0),
56 extension() {}
57
58RTPHeader::RTPHeader(const RTPHeader& other) = default;
59
60RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default;
61
62} // namespace webrtc