OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 | 11 |
12 #include "webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.h" | 12 #include "webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.h" |
13 | 13 |
14 #if defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) | 14 #if defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 #include <string> | 17 #include <string> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "libyuv/convert_from.h" | 20 #include "libyuv/convert_from.h" |
21 #include "webrtc/base/checks.h" | 21 #include "webrtc/base/checks.h" |
22 #include "webrtc/base/logging.h" | 22 #include "webrtc/base/logging.h" |
23 #if defined(WEBRTC_IOS) | |
24 #include "webrtc/base/objc/RTCUIApplication.h" | |
25 #endif | |
26 #include "webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h" | 23 #include "webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h" |
27 #include "webrtc/system_wrappers/include/clock.h" | 24 #include "webrtc/system_wrappers/include/clock.h" |
25 #if defined(WEBRTC_IOS) | |
26 #include "webrtc/sdk/objc/Framework/Classes/RTCUIApplication.h" | |
Chuck
2016/04/22 16:20:12
Before webrtc/systems
tkchin_webrtc
2016/04/26 21:26:24
Done.
| |
27 #endif | |
28 | 28 |
29 namespace internal { | 29 namespace internal { |
30 | 30 |
31 // Convenience function for creating a dictionary. | 31 // Convenience function for creating a dictionary. |
32 inline CFDictionaryRef CreateCFDictionary(CFTypeRef* keys, | 32 inline CFDictionaryRef CreateCFDictionary(CFTypeRef* keys, |
33 CFTypeRef* values, | 33 CFTypeRef* values, |
34 size_t size) { | 34 size_t size) { |
35 return CFDictionaryCreate(kCFAllocatorDefault, keys, values, size, | 35 return CFDictionaryCreate(kCFAllocatorDefault, keys, values, size, |
36 &kCFTypeDictionaryKeyCallBacks, | 36 &kCFTypeDictionaryKeyCallBacks, |
37 &kCFTypeDictionaryValueCallBacks); | 37 &kCFTypeDictionaryValueCallBacks); |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
526 if (result != 0) { | 526 if (result != 0) { |
527 LOG(LS_ERROR) << "Encode callback failed: " << result; | 527 LOG(LS_ERROR) << "Encode callback failed: " << result; |
528 return; | 528 return; |
529 } | 529 } |
530 bitrate_adjuster_.Update(frame._size); | 530 bitrate_adjuster_.Update(frame._size); |
531 } | 531 } |
532 | 532 |
533 } // namespace webrtc | 533 } // namespace webrtc |
534 | 534 |
535 #endif // defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) | 535 #endif // defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) |
OLD | NEW |