OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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 #ifndef WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDMEDIACODECCOMMON_H_ | 11 #ifndef WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDMEDIACODECCOMMON_H_ |
12 #define WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDMEDIACODECCOMMON_H_ | 12 #define WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDMEDIACODECCOMMON_H_ |
13 | 13 |
14 #include <android/log.h> | 14 #include <android/log.h> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "webrtc/rtc_base/logging.h" | 17 #include "webrtc/base/thread.h" |
18 #include "webrtc/rtc_base/thread.h" | |
19 #include "webrtc/sdk/android/src/jni/classreferenceholder.h" | 18 #include "webrtc/sdk/android/src/jni/classreferenceholder.h" |
20 #include "webrtc/sdk/android/src/jni/jni_helpers.h" | 19 #include "webrtc/sdk/android/src/jni/jni_helpers.h" |
| 20 #include "webrtc/base/logging.h" |
| 21 #include "webrtc/base/thread.h" |
21 | 22 |
22 namespace webrtc_jni { | 23 namespace webrtc_jni { |
23 | 24 |
24 // Uncomment this define to enable verbose logging for every encoded/decoded | 25 // Uncomment this define to enable verbose logging for every encoded/decoded |
25 // video frame. | 26 // video frame. |
26 //#define TRACK_BUFFER_TIMING | 27 //#define TRACK_BUFFER_TIMING |
27 | 28 |
28 #define TAG_COMMON "MediaCodecVideo" | 29 #define TAG_COMMON "MediaCodecVideo" |
29 | 30 |
30 // Color formats supported by encoder or decoder - should include all | 31 // Color formats supported by encoder or decoder - should include all |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 jni->ExceptionDescribe(); | 88 jni->ExceptionDescribe(); |
88 jni->ExceptionClear(); | 89 jni->ExceptionClear(); |
89 return true; | 90 return true; |
90 } | 91 } |
91 return false; | 92 return false; |
92 } | 93 } |
93 | 94 |
94 } // namespace webrtc_jni | 95 } // namespace webrtc_jni |
95 | 96 |
96 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDMEDIACODECCOMMON_H_ | 97 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_ANDROIDMEDIACODECCOMMON_H_ |
OLD | NEW |