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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 size_t SetPayloadData(const uint8_t* payload_data, | 66 size_t SetPayloadData(const uint8_t* payload_data, |
67 size_t payload_size, | 67 size_t payload_size, |
68 const RTPFragmentationHeader* fragmentation) override; | 68 const RTPFragmentationHeader* fragmentation) override; |
69 | 69 |
70 // Get the next payload with VP8 payload header. | 70 // Get the next payload with VP8 payload header. |
71 // Write payload and set marker bit of the |packet|. | 71 // Write payload and set marker bit of the |packet|. |
72 // Returns true on success, false otherwise. | 72 // Returns true on success, false otherwise. |
73 bool NextPacket(RtpPacketToSend* packet) override; | 73 bool NextPacket(RtpPacketToSend* packet) override; |
74 | 74 |
75 ProtectionType GetProtectionType() override; | |
76 | |
77 StorageType GetStorageType(uint32_t retransmission_settings) override; | |
78 | |
79 std::string ToString() override; | 75 std::string ToString() override; |
80 | 76 |
81 private: | 77 private: |
82 typedef struct { | 78 typedef struct { |
83 size_t payload_start_pos; | 79 size_t payload_start_pos; |
84 size_t size; | 80 size_t size; |
85 bool first_fragment; | 81 bool first_fragment; |
86 size_t first_partition_ix; | 82 size_t first_partition_ix; |
87 } InfoStruct; | 83 } InfoStruct; |
88 typedef std::queue<InfoStruct> InfoQueue; | 84 typedef std::queue<InfoStruct> InfoQueue; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 class RtpDepacketizerVp8 : public RtpDepacketizer { | 191 class RtpDepacketizerVp8 : public RtpDepacketizer { |
196 public: | 192 public: |
197 virtual ~RtpDepacketizerVp8() {} | 193 virtual ~RtpDepacketizerVp8() {} |
198 | 194 |
199 bool Parse(ParsedPayload* parsed_payload, | 195 bool Parse(ParsedPayload* parsed_payload, |
200 const uint8_t* payload_data, | 196 const uint8_t* payload_data, |
201 size_t payload_data_length) override; | 197 size_t payload_data_length) override; |
202 }; | 198 }; |
203 } // namespace webrtc | 199 } // namespace webrtc |
204 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ | 200 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_VP8_H_ |
OLD | NEW |