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

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

Issue 2199133004: PacketBuffer is now ref counted. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: PacketBuffer/RtpFrameReferenceFinder can now be stopped. Created 4 years, 4 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) 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 16 matching lines...) Expand all
27 namespace video_coding { 27 namespace video_coding {
28 28
29 class RtpFrameObject; 29 class RtpFrameObject;
30 class OnCompleteFrameCallback; 30 class OnCompleteFrameCallback;
31 31
32 class RtpFrameReferenceFinder { 32 class RtpFrameReferenceFinder {
33 public: 33 public:
34 explicit RtpFrameReferenceFinder(OnCompleteFrameCallback* frame_callback); 34 explicit RtpFrameReferenceFinder(OnCompleteFrameCallback* frame_callback);
35 void ManageFrame(std::unique_ptr<RtpFrameObject> frame); 35 void ManageFrame(std::unique_ptr<RtpFrameObject> frame);
36 void PaddingReceived(uint16_t seq_num); 36 void PaddingReceived(uint16_t seq_num);
37 void Stop();
37 38
38 private: 39 private:
39 static const uint16_t kPicIdLength = 1 << 7; 40 static const uint16_t kPicIdLength = 1 << 7;
40 static const uint8_t kMaxTemporalLayers = 5; 41 static const uint8_t kMaxTemporalLayers = 5;
41 static const int kMaxLayerInfo = 10; 42 static const int kMaxLayerInfo = 10;
42 static const int kMaxStashedFrames = 10; 43 static const int kMaxStashedFrames = 10;
43 static const int kMaxNotYetReceivedFrames = 20; 44 static const int kMaxNotYetReceivedFrames = 20;
44 static const int kMaxGofSaved = 15; 45 static const int kMaxGofSaved = 15;
45 static const int kMaxPaddingAge = 100; 46 static const int kMaxPaddingAge = 100;
46 47
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 kMaxTemporalLayers> 170 kMaxTemporalLayers>
170 missing_frames_for_layer_ GUARDED_BY(crit_); 171 missing_frames_for_layer_ GUARDED_BY(crit_);
171 172
172 OnCompleteFrameCallback* frame_callback_; 173 OnCompleteFrameCallback* frame_callback_;
173 }; 174 };
174 175
175 } // namespace video_coding 176 } // namespace video_coding
176 } // namespace webrtc 177 } // namespace webrtc
177 178
178 #endif // WEBRTC_MODULES_VIDEO_CODING_RTP_FRAME_REFERENCE_FINDER_H_ 179 #endif // WEBRTC_MODULES_VIDEO_CODING_RTP_FRAME_REFERENCE_FINDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698