OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 public boolean startAecDump(int file_descriptor, int filesize_limit_bytes) { | 138 public boolean startAecDump(int file_descriptor, int filesize_limit_bytes) { |
139 return nativeStartAecDump(nativeFactory, file_descriptor, filesize_limit_byt
es); | 139 return nativeStartAecDump(nativeFactory, file_descriptor, filesize_limit_byt
es); |
140 } | 140 } |
141 | 141 |
142 // Stops recording an AEC dump. If no AEC dump is currently being recorded, | 142 // Stops recording an AEC dump. If no AEC dump is currently being recorded, |
143 // this call will have no effect. | 143 // this call will have no effect. |
144 public void stopAecDump() { | 144 public void stopAecDump() { |
145 nativeStopAecDump(nativeFactory); | 145 nativeStopAecDump(nativeFactory); |
146 } | 146 } |
147 | 147 |
148 // Starts recording an RTC event log. Ownership of the file is transfered to | |
149 // the native code. If an RTC event log is already being recorded, it will be | |
150 // stopped and a new one will start using the provided file. | |
151 public boolean startRtcEventLog(int file_descriptor) { | |
152 return nativeStartRtcEventLog(nativeFactory, file_descriptor); | |
153 } | |
154 | |
155 // Stops recording an RTC event log. If no RTC event log is currently being | |
156 // recorded, this call will have no effect. | |
157 public void StopRtcEventLog() { | |
158 nativeStopRtcEventLog(nativeFactory); | |
159 } | |
160 | |
161 @Deprecated | 148 @Deprecated |
162 public void setOptions(Options options) { | 149 public void setOptions(Options options) { |
163 nativeSetOptions(nativeFactory, options); | 150 nativeSetOptions(nativeFactory, options); |
164 } | 151 } |
165 | 152 |
166 /** Set the EGL context used by HW Video encoding and decoding. | 153 /** Set the EGL context used by HW Video encoding and decoding. |
167 * | 154 * |
168 * @param localEglContext Must be the same as used by VideoCapturerAndroid a
nd any local video | 155 * @param localEglContext Must be the same as used by VideoCapturerAndroid a
nd any local video |
169 * renderer. | 156 * renderer. |
170 * @param remoteEglContext Must be the same as used by any remote video rende
rer. | 157 * @param remoteEglContext Must be the same as used by any remote video rende
rer. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 long nativeFactory, MediaConstraints constraints); | 235 long nativeFactory, MediaConstraints constraints); |
249 | 236 |
250 private static native long nativeCreateAudioTrack( | 237 private static native long nativeCreateAudioTrack( |
251 long nativeFactory, String id, long nativeSource); | 238 long nativeFactory, String id, long nativeSource); |
252 | 239 |
253 private static native boolean nativeStartAecDump( | 240 private static native boolean nativeStartAecDump( |
254 long nativeFactory, int file_descriptor, int filesize_limit_bytes); | 241 long nativeFactory, int file_descriptor, int filesize_limit_bytes); |
255 | 242 |
256 private static native void nativeStopAecDump(long nativeFactory); | 243 private static native void nativeStopAecDump(long nativeFactory); |
257 | 244 |
258 private static native boolean nativeStartRtcEventLog(long nativeFactory, int f
ile_descriptor); | |
259 | |
260 private static native void nativeStopRtcEventLog(long nativeFactory); | |
261 | |
262 @Deprecated | 245 @Deprecated |
263 public native void nativeSetOptions(long nativeFactory, Options options); | 246 public native void nativeSetOptions(long nativeFactory, Options options); |
264 | 247 |
265 private static native void nativeSetVideoHwAccelerationOptions( | 248 private static native void nativeSetVideoHwAccelerationOptions( |
266 long nativeFactory, Object localEGLContext, Object remoteEGLContext); | 249 long nativeFactory, Object localEGLContext, Object remoteEGLContext); |
267 | 250 |
268 private static native void nativeThreadsCallbacks(long nativeFactory); | 251 private static native void nativeThreadsCallbacks(long nativeFactory); |
269 | 252 |
270 private static native void nativeFreeFactory(long nativeFactory); | 253 private static native void nativeFreeFactory(long nativeFactory); |
271 } | 254 } |
OLD | NEW |