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