| OLD | NEW |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m = 0x7FA30C04 | 63 COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m = 0x7FA30C04 |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 // Arbitrary interval to poll the codec for new outputs. | 66 // Arbitrary interval to poll the codec for new outputs. |
| 67 enum { kMediaCodecPollMs = 10 }; | 67 enum { kMediaCodecPollMs = 10 }; |
| 68 // Media codec maximum output buffer ready timeout. | 68 // Media codec maximum output buffer ready timeout. |
| 69 enum { kMediaCodecTimeoutMs = 1000 }; | 69 enum { kMediaCodecTimeoutMs = 1000 }; |
| 70 // Interval to print codec statistics (bitrate, fps, encoding/decoding time). | 70 // Interval to print codec statistics (bitrate, fps, encoding/decoding time). |
| 71 enum { kMediaCodecStatisticsIntervalMs = 3000 }; | 71 enum { kMediaCodecStatisticsIntervalMs = 3000 }; |
| 72 // Maximum amount of pending frames for VP8 decoder. | 72 // Maximum amount of pending frames for VP8 decoder. |
| 73 enum { kMaxPendingFramesVp8 = 1 }; | 73 enum { kMaxPendingFramesVp8 = 30 }; |
| 74 // Maximum amount of pending frames for H.264 decoder. | 74 // Maximum amount of pending frames for H.264 decoder. |
| 75 enum { kMaxPendingFramesH264 = 30 }; | 75 enum { kMaxPendingFramesH264 = 30 }; |
| 76 | 76 |
| 77 static inline int64_t GetCurrentTimeMs() { | 77 static inline int64_t GetCurrentTimeMs() { |
| 78 return webrtc::TickTime::Now().Ticks() / 1000000LL; | 78 return webrtc::TickTime::Now().Ticks() / 1000000LL; |
| 79 } | 79 } |
| 80 | 80 |
| 81 static inline void AllowBlockingCalls() { | 81 static inline void AllowBlockingCalls() { |
| 82 rtc::Thread* current_thread = rtc::Thread::Current(); | 82 rtc::Thread* current_thread = rtc::Thread::Current(); |
| 83 if (current_thread != NULL) | 83 if (current_thread != NULL) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 101 jni->ExceptionDescribe(); | 101 jni->ExceptionDescribe(); |
| 102 jni->ExceptionClear(); | 102 jni->ExceptionClear(); |
| 103 return true; | 103 return true; |
| 104 } | 104 } |
| 105 return false; | 105 return false; |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace webrtc_jni | 108 } // namespace webrtc_jni |
| 109 | 109 |
| 110 #endif // TALK_APP_WEBRTC_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_ | 110 #endif // TALK_APP_WEBRTC_JAVA_JNI_ANDROIDMEDIACODECCOMMON_H_ |
| OLD | NEW |