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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_format_h264.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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 23 matching lines...) Expand all
34 34
35 size_t SetPayloadData(const uint8_t* payload_data, 35 size_t SetPayloadData(const uint8_t* payload_data,
36 size_t payload_size, 36 size_t payload_size,
37 const RTPFragmentationHeader* fragmentation) override; 37 const RTPFragmentationHeader* fragmentation) override;
38 38
39 // Get the next payload with H264 payload header. 39 // Get the next payload with H264 payload header.
40 // Write payload and set marker bit of the |packet|. 40 // Write payload and set marker bit of the |packet|.
41 // Returns true on success, false otherwise. 41 // Returns true on success, false otherwise.
42 bool NextPacket(RtpPacketToSend* rtp_packet) override; 42 bool NextPacket(RtpPacketToSend* rtp_packet) override;
43 43
44 ProtectionType GetProtectionType() override;
45
46 StorageType GetStorageType(uint32_t retransmission_settings) override;
47
48 std::string ToString() override; 44 std::string ToString() override;
49 45
50 private: 46 private:
51 // Input fragments (NAL units), with an optionally owned temporary buffer, 47 // Input fragments (NAL units), with an optionally owned temporary buffer,
52 // used in case the fragment gets modified. 48 // used in case the fragment gets modified.
53 struct Fragment { 49 struct Fragment {
54 Fragment(const uint8_t* buffer, size_t length); 50 Fragment(const uint8_t* buffer, size_t length);
55 explicit Fragment(const Fragment& fragment); 51 explicit Fragment(const Fragment& fragment);
56 const uint8_t* buffer = nullptr; 52 const uint8_t* buffer = nullptr;
57 size_t length = 0; 53 size_t length = 0;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const uint8_t* payload_data); 111 const uint8_t* payload_data);
116 bool ProcessStapAOrSingleNalu(RtpDepacketizer::ParsedPayload* parsed_payload, 112 bool ProcessStapAOrSingleNalu(RtpDepacketizer::ParsedPayload* parsed_payload,
117 const uint8_t* payload_data); 113 const uint8_t* payload_data);
118 114
119 size_t offset_; 115 size_t offset_;
120 size_t length_; 116 size_t length_;
121 std::unique_ptr<rtc::Buffer> modified_buffer_; 117 std::unique_ptr<rtc::Buffer> modified_buffer_;
122 }; 118 };
123 } // namespace webrtc 119 } // namespace webrtc
124 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_H264_H_ 120 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_FORMAT_H264_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_format.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698