OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 11 matching lines...) Expand all Loading... |
22 * false as long as there are more packets left to fetch. | 22 * false as long as there are more packets left to fetch. |
23 */ | 23 */ |
24 | 24 |
25 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ | 25 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ |
26 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ | 26 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ |
27 | 27 |
28 #include <queue> | 28 #include <queue> |
29 #include <string> | 29 #include <string> |
30 #include <vector> | 30 #include <vector> |
31 | 31 |
| 32 #include "webrtc/base/constructormagic.h" |
32 #include "webrtc/modules/include/module_common_types.h" | 33 #include "webrtc/modules/include/module_common_types.h" |
33 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 34 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
34 #include "webrtc/rtc_base/constructormagic.h" | |
35 #include "webrtc/typedefs.h" | 35 #include "webrtc/typedefs.h" |
36 | 36 |
37 namespace webrtc { | 37 namespace webrtc { |
38 | 38 |
39 enum VP8PacketizerMode { | 39 enum VP8PacketizerMode { |
40 kStrict = 0, // Split partitions if too large; | 40 kStrict = 0, // Split partitions if too large; |
41 // never aggregate, balance size. | 41 // never aggregate, balance size. |
42 kAggregate, // Split partitions if too large; aggregate whole partitions. | 42 kAggregate, // Split partitions if too large; aggregate whole partitions. |
43 kEqualSize, // Split entire payload without considering partition limits. | 43 kEqualSize, // Split entire payload without considering partition limits. |
44 // This will produce equal size packets for the whole frame. | 44 // This will produce equal size packets for the whole frame. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 class RtpDepacketizerVp8 : public RtpDepacketizer { | 195 class RtpDepacketizerVp8 : public RtpDepacketizer { |
196 public: | 196 public: |
197 virtual ~RtpDepacketizerVp8() {} | 197 virtual ~RtpDepacketizerVp8() {} |
198 | 198 |
199 bool Parse(ParsedPayload* parsed_payload, | 199 bool Parse(ParsedPayload* parsed_payload, |
200 const uint8_t* payload_data, | 200 const uint8_t* payload_data, |
201 size_t payload_data_length) override; | 201 size_t payload_data_length) override; |
202 }; | 202 }; |
203 } // namespace webrtc | 203 } // namespace webrtc |
204 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ | 204 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ |
OLD | NEW |