Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.cc

Issue 1903663002: Build dynamic iOS SDK. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix test gyp Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #if defined(WEBRTC_IOS)
21 #include "RTCUIApplication.h"
22 #endif
20 #include "libyuv/convert_from.h" 23 #include "libyuv/convert_from.h"
21 #include "webrtc/base/checks.h" 24 #include "webrtc/base/checks.h"
22 #include "webrtc/base/logging.h" 25 #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" 26 #include "webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu.h"
27 #include "webrtc/system_wrappers/include/clock.h" 27 #include "webrtc/system_wrappers/include/clock.h"
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,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_decoder.cc ('k') | webrtc/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698