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

Side by Side Diff: talk/app/webrtc/java/jni/androidmediacodeccommon.h

Issue 1423843005: Remove limitation on the amount of maximum pending HW decoder inputs. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix header Created 5 years, 1 month 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 | talk/app/webrtc/java/jni/androidmediadecoder_jni.cc » ('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 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Arbitrary interval to poll the codec for new outputs. 67 // Arbitrary interval to poll the codec for new outputs.
68 enum { kMediaCodecPollMs = 10 }; 68 enum { kMediaCodecPollMs = 10 };
69 // Media codec maximum output buffer ready timeout. 69 // Media codec maximum output buffer ready timeout.
70 enum { kMediaCodecTimeoutMs = 1000 }; 70 enum { kMediaCodecTimeoutMs = 1000 };
71 // Interval to print codec statistics (bitrate, fps, encoding/decoding time). 71 // Interval to print codec statistics (bitrate, fps, encoding/decoding time).
72 enum { kMediaCodecStatisticsIntervalMs = 3000 }; 72 enum { kMediaCodecStatisticsIntervalMs = 3000 };
73 // Maximum amount of pending frames for VP8 decoder. 73 // Maximum amount of pending frames for VP8 decoder.
74 enum { kMaxPendingFramesVp8 = 1 }; 74 enum { kMaxPendingFramesVp8 = 1 };
75 // Maximum amount of pending frames for H.264 decoder. 75 // Maximum amount of pending frames for H.264 decoder.
76 enum { kMaxPendingFramesH264 = 30 }; 76 enum { kMaxPendingFramesH264 = 30 };
77 // Maximum amount of decoded frames for which per-frame logging is enabled.
78 enum { kMaxDecodedLogFrames = 5 };
77 79
78 static inline int64_t GetCurrentTimeMs() { 80 static inline int64_t GetCurrentTimeMs() {
79 return webrtc::TickTime::Now().Ticks() / 1000000LL; 81 return webrtc::TickTime::Now().Ticks() / 1000000LL;
80 } 82 }
81 83
82 static inline void AllowBlockingCalls() { 84 static inline void AllowBlockingCalls() {
83 rtc::Thread* current_thread = rtc::Thread::Current(); 85 rtc::Thread* current_thread = rtc::Thread::Current();
84 if (current_thread != NULL) 86 if (current_thread != NULL)
85 current_thread->SetAllowBlockingCalls(true); 87 current_thread->SetAllowBlockingCalls(true);
86 } 88 }
(...skipping 15 matching lines...) Expand all
102 jni->ExceptionDescribe(); 104 jni->ExceptionDescribe();
103 jni->ExceptionClear(); 105 jni->ExceptionClear();
104 return true; 106 return true;
105 } 107 }
106 return false; 108 return false;
107 } 109 }
108 110
109 } // namespace webrtc_jni 111 } // namespace webrtc_jni
110 112
111 #endif // TALK_APP_WEBRTC_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_ 113 #endif // TALK_APP_WEBRTC_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/java/jni/androidmediadecoder_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698