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

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

Issue 2051403002: Always on statistics for AndroidMediaEncoder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Changes according to AlexG's comments 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
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 25 matching lines...) Expand all
36 COLOR_QCOM_FormatYUV420SemiPlanar = 0x7FA30C00, 36 COLOR_QCOM_FormatYUV420SemiPlanar = 0x7FA30C00,
37 // NV12 color format supported by QCOM codec, but not declared in MediaCodec - 37 // NV12 color format supported by QCOM codec, but not declared in MediaCodec -
38 // see /hardware/qcom/media/mm-core/inc/OMX_QCOMExtns.h 38 // see /hardware/qcom/media/mm-core/inc/OMX_QCOMExtns.h
39 // This format is presumably similar to COLOR_FormatYUV420SemiPlanar, 39 // This format is presumably similar to COLOR_FormatYUV420SemiPlanar,
40 // but requires some (16, 32?) byte alignment. 40 // but requires some (16, 32?) byte alignment.
41 COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m = 0x7FA30C04 41 COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m = 0x7FA30C04
42 }; 42 };
43 43
44 // Arbitrary interval to poll the codec for new outputs. 44 // Arbitrary interval to poll the codec for new outputs.
45 enum { kMediaCodecPollMs = 10 }; 45 enum { kMediaCodecPollMs = 10 };
46 // Arbitrary interval to poll at when there should be no more frames.
47 enum { kMediaCodecPollNoFramesMs = 100 };
46 // Media codec maximum output buffer ready timeout. 48 // Media codec maximum output buffer ready timeout.
47 enum { kMediaCodecTimeoutMs = 1000 }; 49 enum { kMediaCodecTimeoutMs = 1000 };
48 // Interval to print codec statistics (bitrate, fps, encoding/decoding time). 50 // Interval to print codec statistics (bitrate, fps, encoding/decoding time).
49 enum { kMediaCodecStatisticsIntervalMs = 3000 }; 51 enum { kMediaCodecStatisticsIntervalMs = 3000 };
50 // Maximum amount of pending frames for VP8 decoder. 52 // Maximum amount of pending frames for VP8 decoder.
51 enum { kMaxPendingFramesVp8 = 1 }; 53 enum { kMaxPendingFramesVp8 = 1 };
52 // Maximum amount of pending frames for VP9 decoder. 54 // Maximum amount of pending frames for VP9 decoder.
53 enum { kMaxPendingFramesVp9 = 1 }; 55 enum { kMaxPendingFramesVp9 = 1 };
54 // Maximum amount of pending frames for H.264 decoder. 56 // Maximum amount of pending frames for H.264 decoder.
55 enum { kMaxPendingFramesH264 = 8 }; 57 enum { kMaxPendingFramesH264 = 8 };
(...skipping 25 matching lines...) Expand all
81 jni->ExceptionDescribe(); 83 jni->ExceptionDescribe();
82 jni->ExceptionClear(); 84 jni->ExceptionClear();
83 return true; 85 return true;
84 } 86 }
85 return false; 87 return false;
86 } 88 }
87 89
88 } // namespace webrtc_jni 90 } // namespace webrtc_jni
89 91
90 #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/jni/androidmediaencoder_jni.cc » ('j') | webrtc/api/java/jni/androidmediaencoder_jni.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698