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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |