OLD | NEW |
---|---|
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 // A list of encoders that were created without being wrapped in a | 147 // A list of encoders that were created without being wrapped in a |
148 // SimulcastEncoderAdapter. | 148 // SimulcastEncoderAdapter. |
149 std::vector<webrtc::VideoEncoder*> non_simulcast_encoders_; | 149 std::vector<webrtc::VideoEncoder*> non_simulcast_encoders_; |
150 }; | 150 }; |
151 | 151 |
152 bool CodecIsInternallySupported(const std::string& codec_name) { | 152 bool CodecIsInternallySupported(const std::string& codec_name) { |
153 if (CodecNamesEq(codec_name, kVp8CodecName)) { | 153 if (CodecNamesEq(codec_name, kVp8CodecName)) { |
154 return true; | 154 return true; |
155 } | 155 } |
156 if (CodecNamesEq(codec_name, kVp9CodecName)) { | 156 if (CodecNamesEq(codec_name, kVp9CodecName)) { |
157 const std::string group_name = | 157 const std::string& group_name = |
158 webrtc::field_trial::FindFullName("WebRTC-SupportVP9"); | 158 webrtc::field_trial::FindFullName("WebRTC-SupportVP9"); |
pthatcher1
2015/07/16 09:45:48
I'm not sure this one is safe, either. webrtc::fi
| |
159 return group_name == "Enabled" || group_name == "EnabledByFlag"; | 159 return group_name == "Enabled" || group_name == "EnabledByFlag"; |
160 } | 160 } |
161 if (CodecNamesEq(codec_name, kH264CodecName)) { | 161 if (CodecNamesEq(codec_name, kH264CodecName)) { |
162 return webrtc::H264Encoder::IsSupported() && | 162 return webrtc::H264Encoder::IsSupported() && |
163 webrtc::H264Decoder::IsSupported(); | 163 webrtc::H264Decoder::IsSupported(); |
164 } | 164 } |
165 return false; | 165 return false; |
166 } | 166 } |
167 | 167 |
168 void AddDefaultFeedbackParams(VideoCodec* codec) { | 168 void AddDefaultFeedbackParams(VideoCodec* codec) { |
(...skipping 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2603 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2603 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2604 } | 2604 } |
2605 } | 2605 } |
2606 | 2606 |
2607 return video_codecs; | 2607 return video_codecs; |
2608 } | 2608 } |
2609 | 2609 |
2610 } // namespace cricket | 2610 } // namespace cricket |
2611 | 2611 |
2612 #endif // HAVE_WEBRTC_VIDEO | 2612 #endif // HAVE_WEBRTC_VIDEO |
OLD | NEW |