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

Side by Side Diff: webrtc/api/java/jni/androidmediacodeccommon.h

Issue 2088353002: Decrease the amount of maximum outstanding frames for Android HW H.264 decoder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | webrtc/api/java/src/org/webrtc/MediaCodecVideoDecoder.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 enum { kMediaCodecPollNoFramesMs = 100 }; 47 enum { kMediaCodecPollNoFramesMs = 100 };
48 // Media codec maximum output buffer ready timeout. 48 // Media codec maximum output buffer ready timeout.
49 enum { kMediaCodecTimeoutMs = 1000 }; 49 enum { kMediaCodecTimeoutMs = 1000 };
50 // Interval to print codec statistics (bitrate, fps, encoding/decoding time). 50 // Interval to print codec statistics (bitrate, fps, encoding/decoding time).
51 enum { kMediaCodecStatisticsIntervalMs = 3000 }; 51 enum { kMediaCodecStatisticsIntervalMs = 3000 };
52 // Maximum amount of pending frames for VP8 decoder. 52 // Maximum amount of pending frames for VP8 decoder.
53 enum { kMaxPendingFramesVp8 = 1 }; 53 enum { kMaxPendingFramesVp8 = 1 };
54 // Maximum amount of pending frames for VP9 decoder. 54 // Maximum amount of pending frames for VP9 decoder.
55 enum { kMaxPendingFramesVp9 = 1 }; 55 enum { kMaxPendingFramesVp9 = 1 };
56 // Maximum amount of pending frames for H.264 decoder. 56 // Maximum amount of pending frames for H.264 decoder.
57 enum { kMaxPendingFramesH264 = 8 }; 57 enum { kMaxPendingFramesH264 = 3 };
58 // Maximum amount of decoded frames for which per-frame logging is enabled. 58 // Maximum amount of decoded frames for which per-frame logging is enabled.
59 enum { kMaxDecodedLogFrames = 10 }; 59 enum { kMaxDecodedLogFrames = 10 };
60 // Maximum amount of encoded frames for which per-frame logging is enabled. 60 // Maximum amount of encoded frames for which per-frame logging is enabled.
61 enum { kMaxEncodedLogFrames = 10 }; 61 enum { kMaxEncodedLogFrames = 10 };
62 62
63 static inline void AllowBlockingCalls() { 63 static inline void AllowBlockingCalls() {
64 rtc::Thread* current_thread = rtc::Thread::Current(); 64 rtc::Thread* current_thread = rtc::Thread::Current();
65 if (current_thread != NULL) 65 if (current_thread != NULL)
66 current_thread->SetAllowBlockingCalls(true); 66 current_thread->SetAllowBlockingCalls(true);
67 } 67 }
(...skipping 15 matching lines...) Expand all
83 jni->ExceptionDescribe(); 83 jni->ExceptionDescribe();
84 jni->ExceptionClear(); 84 jni->ExceptionClear();
85 return true; 85 return true;
86 } 86 }
87 return false; 87 return false;
88 } 88 }
89 89
90 } // namespace webrtc_jni 90 } // namespace webrtc_jni
91 91
92 #endif // WEBRTC_API_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_ 92 #endif // WEBRTC_API_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/java/src/org/webrtc/MediaCodecVideoDecoder.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698