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

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

Issue 3009833002: Avoid calling RtpFrameObject::GetCodecHeader twice in the RtpFrameReferenceFinder. (Closed)
Patch Set: 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) 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // of the frames. 92 // of the frames.
93 FrameDecision ManageFrameGeneric(RtpFrameObject* frame, int picture_id) 93 FrameDecision ManageFrameGeneric(RtpFrameObject* frame, int picture_id)
94 EXCLUSIVE_LOCKS_REQUIRED(crit_); 94 EXCLUSIVE_LOCKS_REQUIRED(crit_);
95 95
96 // Find references for Vp8 frames 96 // Find references for Vp8 frames
97 FrameDecision ManageFrameVp8(RtpFrameObject* frame) 97 FrameDecision ManageFrameVp8(RtpFrameObject* frame)
98 EXCLUSIVE_LOCKS_REQUIRED(crit_); 98 EXCLUSIVE_LOCKS_REQUIRED(crit_);
99 99
100 // Updates necessary layer info state used to determine frame references for 100 // Updates necessary layer info state used to determine frame references for
101 // Vp8. 101 // Vp8.
102 void UpdateLayerInfoVp8(RtpFrameObject* frame) 102 void UpdateLayerInfoVp8(RtpFrameObject* frame,
103 const RTPVideoHeaderVP8& codec_header)
103 EXCLUSIVE_LOCKS_REQUIRED(crit_); 104 EXCLUSIVE_LOCKS_REQUIRED(crit_);
104 105
105 // Find references for Vp9 frames 106 // Find references for Vp9 frames
106 FrameDecision ManageFrameVp9(RtpFrameObject* frame) 107 FrameDecision ManageFrameVp9(RtpFrameObject* frame)
107 EXCLUSIVE_LOCKS_REQUIRED(crit_); 108 EXCLUSIVE_LOCKS_REQUIRED(crit_);
108 109
109 // Check if we are missing a frame necessary to determine the references 110 // Check if we are missing a frame necessary to determine the references
110 // for this frame. 111 // for this frame.
111 bool MissingRequiredFrameVp9(uint16_t picture_id, const GofInfo& info) 112 bool MissingRequiredFrameVp9(uint16_t picture_id, const GofInfo& info)
112 EXCLUSIVE_LOCKS_REQUIRED(crit_); 113 EXCLUSIVE_LOCKS_REQUIRED(crit_);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // |cleared_to_seq_num_|. 213 // |cleared_to_seq_num_|.
213 int cleared_to_seq_num_ GUARDED_BY(crit_); 214 int cleared_to_seq_num_ GUARDED_BY(crit_);
214 215
215 OnCompleteFrameCallback* frame_callback_; 216 OnCompleteFrameCallback* frame_callback_;
216 }; 217 };
217 218
218 } // namespace video_coding 219 } // namespace video_coding
219 } // namespace webrtc 220 } // namespace webrtc
220 221
221 #endif // WEBRTC_MODULES_VIDEO_CODING_RTP_FRAME_REFERENCE_FINDER_H_ 222 #endif // WEBRTC_MODULES_VIDEO_CODING_RTP_FRAME_REFERENCE_FINDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698