OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #include <jni.h> |
| 12 |
| 13 // Adding 'nogncheck' to disable the gn include headers check. |
| 14 // We don't want to depend on the audio and video related targets for this null |
| 15 // implementation. |
| 16 #include "webrtc/sdk/android/src/jni/androidvideotracksource.h" // nogncheck |
| 17 #include "webrtc/sdk/android/src/jni/classreferenceholder.h" |
| 18 |
| 19 namespace cricket { |
| 20 class WebRtcVideoEncoderFactory; |
| 21 class WebRtcVideoDecoderFactory; |
| 22 } // namespace cricket |
| 23 |
| 24 namespace webrtc_jni { |
| 25 |
| 26 class MediaCodecVideoEncoderFactory; |
| 27 class MediaCodecVideoDecoderFactory; |
| 28 class SurfaceTextureHelper; |
| 29 |
| 30 cricket::WebRtcVideoEncoderFactory* CreateVideoEncoderFactory() { |
| 31 return nullptr; |
| 32 } |
| 33 |
| 34 cricket::WebRtcVideoDecoderFactory* CreateVideoDecoderFactory() { |
| 35 return nullptr; |
| 36 } |
| 37 |
| 38 rtc::scoped_refptr<webrtc::AndroidVideoTrackSource> |
| 39 CreateAndroidVideoTrackSource(rtc::Thread* signaling_thread, |
| 40 JNIEnv* jni, |
| 41 jobject j_egl_context, |
| 42 bool is_screencast = false) { |
| 43 return rtc::scoped_refptr<webrtc::AndroidVideoTrackSource>(); |
| 44 } |
| 45 |
| 46 jobject GetSurfaceTextureHelper( |
| 47 rtc::scoped_refptr<SurfaceTextureHelper> surface_texture_helper) { |
| 48 return nullptr; |
| 49 } |
| 50 |
| 51 void EncoderFactorySetEGLContext(MediaCodecVideoEncoderFactory* encoder_factory, |
| 52 JNIEnv* jni, |
| 53 jobject local_egl_context) {} |
| 54 |
| 55 void DecoderFactorySetEGLContext(MediaCodecVideoDecoderFactory* decoder_factory, |
| 56 JNIEnv* jni, |
| 57 jobject remote_egl_context) {} |
| 58 |
| 59 } // namespace webrtc_jni |
OLD | NEW |