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

Side by Side Diff: webrtc/api/android/jni/peerconnection_jni.cc

Issue 2280873002: Remove VideoSource.stop() and VideoSource.restart() from the Java API. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/VideoSource.java ('k') | no next file » | 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 * 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 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2017 memcpy(dst, src, src_stride * height); 2017 memcpy(dst, src, src_stride * height);
2018 } else { 2018 } else {
2019 for (int i = 0; i < height; i++) { 2019 for (int i = 0; i < height; i++) {
2020 memcpy(dst, src, width); 2020 memcpy(dst, src, width);
2021 src += src_stride; 2021 src += src_stride;
2022 dst += dst_stride; 2022 dst += dst_stride;
2023 } 2023 }
2024 } 2024 }
2025 } 2025 }
2026 2026
2027 JOW(void, VideoSource_stop)(JNIEnv* jni, jclass, jlong j_p) {
2028 reinterpret_cast<VideoTrackSourceInterface*>(j_p)->Stop();
2029 }
2030
2031 JOW(void, VideoSource_restart)(
2032 JNIEnv* jni, jclass, jlong j_p_source, jlong j_p_format) {
2033 reinterpret_cast<VideoTrackSourceInterface*>(j_p_source)->Restart();
2034 }
2035
2036 JOW(jstring, MediaStreamTrack_nativeId)(JNIEnv* jni, jclass, jlong j_p) { 2027 JOW(jstring, MediaStreamTrack_nativeId)(JNIEnv* jni, jclass, jlong j_p) {
2037 return JavaStringFromStdString( 2028 return JavaStringFromStdString(
2038 jni, reinterpret_cast<MediaStreamTrackInterface*>(j_p)->id()); 2029 jni, reinterpret_cast<MediaStreamTrackInterface*>(j_p)->id());
2039 } 2030 }
2040 2031
2041 JOW(jstring, MediaStreamTrack_nativeKind)(JNIEnv* jni, jclass, jlong j_p) { 2032 JOW(jstring, MediaStreamTrack_nativeKind)(JNIEnv* jni, jclass, jlong j_p) {
2042 return JavaStringFromStdString( 2033 return JavaStringFromStdString(
2043 jni, reinterpret_cast<MediaStreamTrackInterface*>(j_p)->kind()); 2034 jni, reinterpret_cast<MediaStreamTrackInterface*>(j_p)->kind());
2044 } 2035 }
2045 2036
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 return JavaStringFromStdString( 2339 return JavaStringFromStdString(
2349 jni, 2340 jni,
2350 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); 2341 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id());
2351 } 2342 }
2352 2343
2353 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { 2344 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) {
2354 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); 2345 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release();
2355 } 2346 }
2356 2347
2357 } // namespace webrtc_jni 2348 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/VideoSource.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698