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

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

Issue 3007253002: Remove typedefs.h from webrtc/ root (part 1)
Patch Set: backwards compatible FALLTHROUGH #define 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
« no previous file with comments | « webrtc/modules/video_coding/jitter_buffer.cc ('k') | webrtc/rtc_base/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 frame_it != stashed_frames_.end();) { 64 frame_it != stashed_frames_.end();) {
65 FrameDecision decision = ManageFrameInternal(frame_it->get()); 65 FrameDecision decision = ManageFrameInternal(frame_it->get());
66 66
67 switch (decision) { 67 switch (decision) {
68 case kStash: 68 case kStash:
69 ++frame_it; 69 ++frame_it;
70 break; 70 break;
71 case kHandOff: 71 case kHandOff:
72 complete_frame = true; 72 complete_frame = true;
73 frame_callback_->OnCompleteFrame(std::move(*frame_it)); 73 frame_callback_->OnCompleteFrame(std::move(*frame_it));
74 FALLTHROUGH(); 74 RTC_FALLTHROUGH();
75 case kDrop: 75 case kDrop:
76 frame_it = stashed_frames_.erase(frame_it); 76 frame_it = stashed_frames_.erase(frame_it);
77 } 77 }
78 } 78 }
79 } while (complete_frame); 79 } while (complete_frame);
80 } 80 }
81 81
82 RtpFrameReferenceFinder::FrameDecision 82 RtpFrameReferenceFinder::FrameDecision
83 RtpFrameReferenceFinder::ManageFrameInternal(RtpFrameObject* frame) { 83 RtpFrameReferenceFinder::ManageFrameInternal(RtpFrameObject* frame) {
84 switch (frame->codec_type()) { 84 switch (frame->codec_type()) {
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 } 590 }
591 591
592 void RtpFrameReferenceFinder::UnwrapPictureIds(RtpFrameObject* frame) { 592 void RtpFrameReferenceFinder::UnwrapPictureIds(RtpFrameObject* frame) {
593 for (size_t i = 0; i < frame->num_references; ++i) 593 for (size_t i = 0; i < frame->num_references; ++i)
594 frame->references[i] = unwrapper_.Unwrap(frame->references[i]); 594 frame->references[i] = unwrapper_.Unwrap(frame->references[i]);
595 frame->picture_id = unwrapper_.Unwrap(frame->picture_id); 595 frame->picture_id = unwrapper_.Unwrap(frame->picture_id);
596 } 596 }
597 597
598 } // namespace video_coding 598 } // namespace video_coding
599 } // namespace webrtc 599 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/jitter_buffer.cc ('k') | webrtc/rtc_base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698