| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
| 11 #include "webrtc/base/checks.h" | 11 #include "webrtc/base/checks.h" |
| 12 #include "webrtc/base/logging.h" | 12 #include "webrtc/base/logging.h" |
| 13 #include "webrtc/base/trace_event.h" | 13 #include "webrtc/base/trace_event.h" |
| 14 #include "webrtc/engine_configurations.h" | 14 #include "webrtc/engine_configurations.h" |
| 15 #include "webrtc/modules/video_coding/main/source/encoded_frame.h" | 15 #include "webrtc/modules/video_coding/encoded_frame.h" |
| 16 #include "webrtc/modules/video_coding/main/source/generic_encoder.h" | 16 #include "webrtc/modules/video_coding/generic_encoder.h" |
| 17 #include "webrtc/modules/video_coding/main/source/media_optimization.h" | 17 #include "webrtc/modules/video_coding/media_optimization.h" |
| 18 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 18 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 namespace { | 21 namespace { |
| 22 // Map information from info into rtp. If no relevant information is found | 22 // Map information from info into rtp. If no relevant information is found |
| 23 // in info, rtp is set to NULL. | 23 // in info, rtp is set to NULL. |
| 24 void CopyCodecSpecific(const CodecSpecificInfo* info, RTPVideoHeader* rtp) { | 24 void CopyCodecSpecific(const CodecSpecificInfo* info, RTPVideoHeader* rtp) { |
| 25 RTC_DCHECK(info); | 25 RTC_DCHECK(info); |
| 26 switch (info->codecType) { | 26 switch (info->codecType) { |
| 27 case kVideoCodecVP8: { | 27 case kVideoCodecVP8: { |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 } | 298 } |
| 299 | 299 |
| 300 void | 300 void |
| 301 VCMEncodedFrameCallback::SetMediaOpt( | 301 VCMEncodedFrameCallback::SetMediaOpt( |
| 302 media_optimization::MediaOptimization *mediaOpt) | 302 media_optimization::MediaOptimization *mediaOpt) |
| 303 { | 303 { |
| 304 _mediaOpt = mediaOpt; | 304 _mediaOpt = mediaOpt; |
| 305 } | 305 } |
| 306 | 306 |
| 307 } // namespace webrtc | 307 } // namespace webrtc |
| OLD | NEW |