| 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 22 matching lines...) Expand all Loading... |
| 33 std::unique_ptr<RtpFrameObject> frame) { | 33 std::unique_ptr<RtpFrameObject> frame) { |
| 34 rtc::CritScope lock(&crit_); | 34 rtc::CritScope lock(&crit_); |
| 35 | 35 |
| 36 // If we have cleared past this frame, drop it. | 36 // If we have cleared past this frame, drop it. |
| 37 if (cleared_to_seq_num_ != -1 && | 37 if (cleared_to_seq_num_ != -1 && |
| 38 AheadOf<uint16_t>(cleared_to_seq_num_, frame->first_seq_num())) { | 38 AheadOf<uint16_t>(cleared_to_seq_num_, frame->first_seq_num())) { |
| 39 return; | 39 return; |
| 40 } | 40 } |
| 41 | 41 |
| 42 switch (frame->codec_type()) { | 42 switch (frame->codec_type()) { |
| 43 case kVideoCodecFlexfec: |
| 43 case kVideoCodecULPFEC: | 44 case kVideoCodecULPFEC: |
| 44 case kVideoCodecRED: | 45 case kVideoCodecRED: |
| 45 case kVideoCodecUnknown: | 46 case kVideoCodecUnknown: |
| 46 RTC_NOTREACHED(); | 47 RTC_NOTREACHED(); |
| 47 break; | 48 break; |
| 48 case kVideoCodecVP8: | 49 case kVideoCodecVP8: |
| 49 ManageFrameVp8(std::move(frame)); | 50 ManageFrameVp8(std::move(frame)); |
| 50 break; | 51 break; |
| 51 case kVideoCodecVP9: | 52 case kVideoCodecVP9: |
| 52 ManageFrameVp9(std::move(frame)); | 53 ManageFrameVp9(std::move(frame)); |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 if (AheadOf<uint16_t, kPicIdLength>(picture_id, unwrap_truncated)) | 580 if (AheadOf<uint16_t, kPicIdLength>(picture_id, unwrap_truncated)) |
| 580 last_unwrap_ = Add<1 << 16>(last_unwrap_, diff); | 581 last_unwrap_ = Add<1 << 16>(last_unwrap_, diff); |
| 581 else | 582 else |
| 582 last_unwrap_ = Subtract<1 << 16>(last_unwrap_, diff); | 583 last_unwrap_ = Subtract<1 << 16>(last_unwrap_, diff); |
| 583 | 584 |
| 584 return last_unwrap_; | 585 return last_unwrap_; |
| 585 } | 586 } |
| 586 | 587 |
| 587 } // namespace video_coding | 588 } // namespace video_coding |
| 588 } // namespace webrtc | 589 } // namespace webrtc |
| OLD | NEW |