| 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 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |