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 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 enum { kMediaCodecPollNoFramesMs = 100 }; | 52 enum { kMediaCodecPollNoFramesMs = 100 }; |
53 // Media codec maximum output buffer ready timeout. | 53 // Media codec maximum output buffer ready timeout. |
54 enum { kMediaCodecTimeoutMs = 1000 }; | 54 enum { kMediaCodecTimeoutMs = 1000 }; |
55 // Interval to print codec statistics (bitrate, fps, encoding/decoding time). | 55 // Interval to print codec statistics (bitrate, fps, encoding/decoding time). |
56 enum { kMediaCodecStatisticsIntervalMs = 3000 }; | 56 enum { kMediaCodecStatisticsIntervalMs = 3000 }; |
57 // Maximum amount of pending frames for VP8 decoder. | 57 // Maximum amount of pending frames for VP8 decoder. |
58 enum { kMaxPendingFramesVp8 = 1 }; | 58 enum { kMaxPendingFramesVp8 = 1 }; |
59 // Maximum amount of pending frames for VP9 decoder. | 59 // Maximum amount of pending frames for VP9 decoder. |
60 enum { kMaxPendingFramesVp9 = 1 }; | 60 enum { kMaxPendingFramesVp9 = 1 }; |
61 // Maximum amount of pending frames for H.264 decoder. | 61 // Maximum amount of pending frames for H.264 decoder. |
62 enum { kMaxPendingFramesH264 = 3 }; | 62 enum { kMaxPendingFramesH264 = 4 }; |
63 // Maximum amount of decoded frames for which per-frame logging is enabled. | 63 // Maximum amount of decoded frames for which per-frame logging is enabled. |
64 enum { kMaxDecodedLogFrames = 10 }; | 64 enum { kMaxDecodedLogFrames = 10 }; |
65 // Maximum amount of encoded frames for which per-frame logging is enabled. | 65 // Maximum amount of encoded frames for which per-frame logging is enabled. |
66 enum { kMaxEncodedLogFrames = 10 }; | 66 enum { kMaxEncodedLogFrames = 10 }; |
67 | 67 |
68 static inline void AllowBlockingCalls() { | 68 static inline void AllowBlockingCalls() { |
69 rtc::Thread* current_thread = rtc::Thread::Current(); | 69 rtc::Thread* current_thread = rtc::Thread::Current(); |
70 if (current_thread != NULL) | 70 if (current_thread != NULL) |
71 current_thread->SetAllowBlockingCalls(true); | 71 current_thread->SetAllowBlockingCalls(true); |
72 } | 72 } |
(...skipping 15 matching lines...) Expand all Loading... |
88 jni->ExceptionDescribe(); | 88 jni->ExceptionDescribe(); |
89 jni->ExceptionClear(); | 89 jni->ExceptionClear(); |
90 return true; | 90 return true; |
91 } | 91 } |
92 return false; | 92 return false; |
93 } | 93 } |
94 | 94 |
95 } // namespace webrtc_jni | 95 } // namespace webrtc_jni |
96 | 96 |
97 #endif // WEBRTC_API_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_ | 97 #endif // WEBRTC_API_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_ |
OLD | NEW |