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 25 matching lines...) Expand all Loading... | |
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 kVideoCodecFlexfec: |
44 case kVideoCodecULPFEC: | 44 case kVideoCodecULPFEC: |
45 case kVideoCodecRED: | 45 case kVideoCodecRED: |
46 case kVideoCodecUnknown: | |
47 RTC_NOTREACHED(); | 46 RTC_NOTREACHED(); |
48 break; | 47 break; |
49 case kVideoCodecVP8: | 48 case kVideoCodecVP8: |
50 ManageFrameVp8(std::move(frame)); | 49 ManageFrameVp8(std::move(frame)); |
51 break; | 50 break; |
52 case kVideoCodecVP9: | 51 case kVideoCodecVP9: |
53 ManageFrameVp9(std::move(frame)); | 52 ManageFrameVp9(std::move(frame)); |
54 break; | 53 break; |
54 case kVideoCodecUnknown: | |
sprang_webrtc
2016/11/21 16:49:14
Isn't unknown separate from generic? Can we handle
philipel
2016/11/22 14:56:23
I treat it as generic since that is what is used w
| |
55 case kVideoCodecH264: | 55 case kVideoCodecH264: |
56 case kVideoCodecI420: | 56 case kVideoCodecI420: |
57 case kVideoCodecGeneric: | 57 case kVideoCodecGeneric: |
58 ManageFrameGeneric(std::move(frame), kNoPictureId); | 58 ManageFrameGeneric(std::move(frame), kNoPictureId); |
59 break; | 59 break; |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 void RtpFrameReferenceFinder::PaddingReceived(uint16_t seq_num) { | 63 void RtpFrameReferenceFinder::PaddingReceived(uint16_t seq_num) { |
64 rtc::CritScope lock(&crit_); | 64 rtc::CritScope lock(&crit_); |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
725 if (!gof_info_.empty() && | 725 if (!gof_info_.empty() && |
726 AheadOf<uint8_t>(gof_info_.begin()->first, fixed_tl0)) { | 726 AheadOf<uint8_t>(gof_info_.begin()->first, fixed_tl0)) { |
727 return true; | 727 return true; |
728 } | 728 } |
729 } | 729 } |
730 return false; | 730 return false; |
731 } | 731 } |
732 | 732 |
733 } // namespace video_coding | 733 } // namespace video_coding |
734 } // namespace webrtc | 734 } // namespace webrtc |
OLD | NEW |