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

Side by Side Diff: webrtc/modules/video_coding/rtp_frame_reference_finder.h

Issue 2480293002: New jitter buffer experiment. (Closed)
Patch Set: Created 4 years, 1 month 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void ManageFrame(std::unique_ptr<RtpFrameObject> frame); 50 void ManageFrame(std::unique_ptr<RtpFrameObject> frame);
51 51
52 // Notifies that padding has been received, which the reference finder 52 // Notifies that padding has been received, which the reference finder
53 // might need to calculate the references of a frame. 53 // might need to calculate the references of a frame.
54 void PaddingReceived(uint16_t seq_num); 54 void PaddingReceived(uint16_t seq_num);
55 55
56 // Clear all stashed frames that include packets older than |seq_num|. 56 // Clear all stashed frames that include packets older than |seq_num|.
57 void ClearTo(uint16_t seq_num); 57 void ClearTo(uint16_t seq_num);
58 58
59 private: 59 private:
60 static const uint16_t kPicIdLength = 1 << 7; 60 static const uint16_t kPicIdLength = 1 << 15;
61 static const uint8_t kMaxTemporalLayers = 5; 61 static const uint8_t kMaxTemporalLayers = 5;
62 static const int kMaxLayerInfo = 10; 62 static const int kMaxLayerInfo = 50;
philipel 2016/11/08 09:27:13 In general we threw away info to early causing los
stefan-webrtc 2016/11/08 10:41:34 Acknowledged.
63 static const int kMaxStashedFrames = 10; 63 static const int kMaxStashedFrames = 50;
64 static const int kMaxNotYetReceivedFrames = 20; 64 static const int kMaxNotYetReceivedFrames = 100;
65 static const int kMaxGofSaved = 15; 65 static const int kMaxGofSaved = 50;
66 static const int kMaxPaddingAge = 100; 66 static const int kMaxPaddingAge = 100;
67 67
68 68
69 struct GofInfo { 69 struct GofInfo {
70 GofInfo(GofInfoVP9* gof, uint16_t last_picture_id) 70 GofInfo(GofInfoVP9* gof, uint16_t last_picture_id)
71 : gof(gof), last_picture_id(last_picture_id) {} 71 : gof(gof), last_picture_id(last_picture_id) {}
72 GofInfoVP9* gof; 72 GofInfoVP9* gof;
73 uint16_t last_picture_id; 73 uint16_t last_picture_id;
74 }; 74 };
75 75
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // |cleared_to_seq_num_|. 195 // |cleared_to_seq_num_|.
196 int cleared_to_seq_num_ GUARDED_BY(crit_); 196 int cleared_to_seq_num_ GUARDED_BY(crit_);
197 197
198 OnCompleteFrameCallback* frame_callback_; 198 OnCompleteFrameCallback* frame_callback_;
199 }; 199 };
200 200
201 } // namespace video_coding 201 } // namespace video_coding
202 } // namespace webrtc 202 } // namespace webrtc
203 203
204 #endif // WEBRTC_MODULES_VIDEO_CODING_RTP_FRAME_REFERENCE_FINDER_H_ 204 #endif // WEBRTC_MODULES_VIDEO_CODING_RTP_FRAME_REFERENCE_FINDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698