OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |