Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h

Issue 2999063002: Add flag enabling more packets to be retransmittable. (Closed)
Patch Set: Addressed comments Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_format_vp8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698