| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |