| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 20 matching lines...) Expand all Loading... |
| 31 RTC_CHECK(rtp_type_header); | 31 RTC_CHECK(rtp_type_header); |
| 32 return new RtpPacketizerVp8(rtp_type_header->VP8, max_payload_len); | 32 return new RtpPacketizerVp8(rtp_type_header->VP8, max_payload_len); |
| 33 case kRtpVideoVp9: | 33 case kRtpVideoVp9: |
| 34 RTC_CHECK(rtp_type_header); | 34 RTC_CHECK(rtp_type_header); |
| 35 return new RtpPacketizerVp9(rtp_type_header->VP9, max_payload_len); | 35 return new RtpPacketizerVp9(rtp_type_header->VP9, max_payload_len); |
| 36 case kRtpVideoGeneric: | 36 case kRtpVideoGeneric: |
| 37 return new RtpPacketizerGeneric(frame_type, max_payload_len); | 37 return new RtpPacketizerGeneric(frame_type, max_payload_len); |
| 38 case kRtpVideoNone: | 38 case kRtpVideoNone: |
| 39 RTC_NOTREACHED(); | 39 RTC_NOTREACHED(); |
| 40 } | 40 } |
| 41 return NULL; | 41 return nullptr; |
| 42 } | 42 } |
| 43 | 43 |
| 44 RtpDepacketizer* RtpDepacketizer::Create(RtpVideoCodecTypes type) { | 44 RtpDepacketizer* RtpDepacketizer::Create(RtpVideoCodecTypes type) { |
| 45 switch (type) { | 45 switch (type) { |
| 46 case kRtpVideoH264: | 46 case kRtpVideoH264: |
| 47 return new RtpDepacketizerH264(); | 47 return new RtpDepacketizerH264(); |
| 48 case kRtpVideoVp8: | 48 case kRtpVideoVp8: |
| 49 return new RtpDepacketizerVp8(); | 49 return new RtpDepacketizerVp8(); |
| 50 case kRtpVideoVp9: | 50 case kRtpVideoVp9: |
| 51 return new RtpDepacketizerVp9(); | 51 return new RtpDepacketizerVp9(); |
| 52 case kRtpVideoGeneric: | 52 case kRtpVideoGeneric: |
| 53 return new RtpDepacketizerGeneric(); | 53 return new RtpDepacketizerGeneric(); |
| 54 case kRtpVideoNone: | 54 case kRtpVideoNone: |
| 55 assert(false); | 55 assert(false); |
| 56 } | 56 } |
| 57 return NULL; | 57 return nullptr; |
| 58 } | 58 } |
| 59 } // namespace webrtc | 59 } // namespace webrtc |
| OLD | NEW |