OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool WriteHeader(const PacketInfo& packet_info, | 84 bool WriteHeader(const PacketInfo& packet_info, |
85 uint8_t* buffer, | 85 uint8_t* buffer, |
86 size_t* header_length) const; | 86 size_t* header_length) const; |
87 | 87 |
88 const RTPVideoHeaderVP9 hdr_; | 88 const RTPVideoHeaderVP9 hdr_; |
89 const size_t max_payload_length_; // The max length in bytes of one packet. | 89 const size_t max_payload_length_; // The max length in bytes of one packet. |
90 const uint8_t* payload_; // The payload data to be packetized. | 90 const uint8_t* payload_; // The payload data to be packetized. |
91 size_t payload_size_; // The size in bytes of the payload data. | 91 size_t payload_size_; // The size in bytes of the payload data. |
92 PacketInfoQueue packets_; | 92 PacketInfoQueue packets_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(RtpPacketizerVp9); | 94 RTC_DISALLOW_COPY_AND_ASSIGN(RtpPacketizerVp9); |
95 }; | 95 }; |
96 | 96 |
97 | 97 |
98 class RtpDepacketizerVp9 : public RtpDepacketizer { | 98 class RtpDepacketizerVp9 : public RtpDepacketizer { |
99 public: | 99 public: |
100 virtual ~RtpDepacketizerVp9() {} | 100 virtual ~RtpDepacketizerVp9() {} |
101 | 101 |
102 bool Parse(ParsedPayload* parsed_payload, | 102 bool Parse(ParsedPayload* parsed_payload, |
103 const uint8_t* payload, | 103 const uint8_t* payload, |
104 size_t payload_length) override; | 104 size_t payload_length) override; |
105 }; | 105 }; |
106 | 106 |
107 } // namespace webrtc | 107 } // namespace webrtc |
108 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ | 108 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP9_H_ |
OLD | NEW |