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

Side by Side Diff: webrtc/sdk/android/src/jni/videodecoderwrapper.cc

Issue 2998403002: Android: Update convenience macro defining JNI-accessible methods (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 qp = rtc::Optional<uint8_t>(qp_int); 292 qp = rtc::Optional<uint8_t>(qp_int);
293 } 293 }
294 break; 294 break;
295 } 295 }
296 default: 296 default:
297 break; // Default is to not provide QP. 297 break; // Default is to not provide QP.
298 } 298 }
299 return qp; 299 return qp;
300 } 300 }
301 301
302 JOW(void, VideoDecoderWrapperCallback_nativeOnDecodedFrame) 302 JNI_FUNCTION_DECLARATION(void,
303 (JNIEnv* jni, 303 VideoDecoderWrapperCallback_nativeOnDecodedFrame,
304 jclass, 304 JNIEnv* jni,
305 jlong jnative_decoder, 305 jclass,
306 jobject jframe, 306 jlong jnative_decoder,
307 jobject jdecode_time_ms, 307 jobject jframe,
308 jobject jqp) { 308 jobject jdecode_time_ms,
309 jobject jqp) {
309 VideoDecoderWrapper* native_decoder = 310 VideoDecoderWrapper* native_decoder =
310 reinterpret_cast<VideoDecoderWrapper*>(jnative_decoder); 311 reinterpret_cast<VideoDecoderWrapper*>(jnative_decoder);
311 native_decoder->OnDecodedFrame(jni, jframe, jdecode_time_ms, jqp); 312 native_decoder->OnDecodedFrame(jni, jframe, jdecode_time_ms, jqp);
312 } 313 }
313 314
314 } // namespace webrtc_jni 315 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/jni/video_renderer_jni.cc ('k') | webrtc/sdk/android/src/jni/wrapped_native_i420_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698