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

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

Issue 2993793002: Request keyframes more frequently on stream start/decoding error. (Closed)
Patch Set: Created 3 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int InsertFrame(std::unique_ptr<FrameObject> frame); 50 int InsertFrame(std::unique_ptr<FrameObject> frame);
51 51
52 // Get the next frame for decoding. Will return at latest after 52 // Get the next frame for decoding. Will return at latest after
53 // |max_wait_time_ms|. 53 // |max_wait_time_ms|.
54 // - If a frame is available within |max_wait_time_ms| it will return 54 // - If a frame is available within |max_wait_time_ms| it will return
55 // kFrameFound and set |frame_out| to the resulting frame. 55 // kFrameFound and set |frame_out| to the resulting frame.
56 // - If no frame is available after |max_wait_time_ms| it will return 56 // - If no frame is available after |max_wait_time_ms| it will return
57 // kTimeout. 57 // kTimeout.
58 // - If the FrameBuffer is stopped then it will return kStopped. 58 // - If the FrameBuffer is stopped then it will return kStopped.
59 ReturnReason NextFrame(int64_t max_wait_time_ms, 59 ReturnReason NextFrame(int64_t max_wait_time_ms,
60 std::unique_ptr<FrameObject>* frame_out); 60 std::unique_ptr<FrameObject>* frame_out,
61 bool keyframe_required = false);
61 62
62 // Tells the FrameBuffer which protection mode that is in use. Affects 63 // Tells the FrameBuffer which protection mode that is in use. Affects
63 // the frame timing. 64 // the frame timing.
64 // TODO(philipel): Remove this when new timing calculations has been 65 // TODO(philipel): Remove this when new timing calculations has been
65 // implemented. 66 // implemented.
66 void SetProtectionMode(VCMVideoProtection mode); 67 void SetProtectionMode(VCMVideoProtection mode);
67 68
68 // Start the frame buffer, has no effect if the frame buffer is started. 69 // Start the frame buffer, has no effect if the frame buffer is started.
69 // The frame buffer is started upon construction. 70 // The frame buffer is started upon construction.
70 void Start(); 71 void Start();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 VCMReceiveStatisticsCallback* const stats_callback_; 180 VCMReceiveStatisticsCallback* const stats_callback_;
180 int64_t last_log_non_decoded_ms_ GUARDED_BY(crit_); 181 int64_t last_log_non_decoded_ms_ GUARDED_BY(crit_);
181 182
182 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBuffer); 183 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBuffer);
183 }; 184 };
184 185
185 } // namespace video_coding 186 } // namespace video_coding
186 } // namespace webrtc 187 } // namespace webrtc
187 188
188 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER2_H_ 189 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_BUFFER2_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_buffer2.cc » ('j') | webrtc/modules/video_coding/video_receiver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698