You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  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. #include "api/rtp_headers.h"
  11. namespace webrtc {
  12. RTPHeaderExtension::RTPHeaderExtension()
  13. : hasTransmissionTimeOffset(false),
  14. transmissionTimeOffset(0),
  15. hasAbsoluteSendTime(false),
  16. absoluteSendTime(0),
  17. hasTransportSequenceNumber(false),
  18. transportSequenceNumber(0),
  19. hasAudioLevel(false),
  20. voiceActivity(false),
  21. audioLevel(0),
  22. hasVideoRotation(false),
  23. videoRotation(kVideoRotation_0),
  24. hasVideoContentType(false),
  25. videoContentType(VideoContentType::UNSPECIFIED),
  26. has_video_timing(false),
  27. has_frame_marking(false),
  28. frame_marking({false, false, false, false, false, 0xFF, 0, 0}) {}
  29. RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension& other) =
  30. default;
  31. RTPHeaderExtension& RTPHeaderExtension::operator=(
  32. const RTPHeaderExtension& other) = default;
  33. RTPHeader::RTPHeader()
  34. : markerBit(false),
  35. payloadType(0),
  36. sequenceNumber(0),
  37. timestamp(0),
  38. ssrc(0),
  39. numCSRCs(0),
  40. arrOfCSRCs(),
  41. paddingLength(0),
  42. headerLength(0),
  43. payload_type_frequency(0),
  44. extension() {}
  45. RTPHeader::RTPHeader(const RTPHeader& other) = default;
  46. RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default;
  47. } // namespace webrtc