mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:18:09 +03:00
snap
This commit is contained in:
11
ndk/jni/androidcast_codecs.c
Normal file
11
ndk/jni/androidcast_codecs.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <jni.h>
|
||||
#include <android/log.h>
|
||||
|
||||
#define LOG_TAG "androidcast_codecs"
|
||||
|
||||
JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||
(void)vm;
|
||||
(void)reserved;
|
||||
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "androidcast codecs native library loaded");
|
||||
return JNI_VERSION_1_6;
|
||||
}
|
||||
15
ndk/jni/libvpx_bridge.c
Normal file
15
ndk/jni/libvpx_bridge.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <jni.h>
|
||||
#include <string.h>
|
||||
|
||||
/* VP8/VP9 via libvpx — linked when third-party/libvpx is built into this library. */
|
||||
#ifndef ANDROIDCAST_HAVE_LIBVPX
|
||||
#define ANDROIDCAST_HAVE_LIBVPX 0
|
||||
#endif
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_foxx_androidcast_media_codec_jni_NativeCodecBridge_nativeIsLibvpxAvailable(
|
||||
JNIEnv *env, jclass clazz) {
|
||||
(void)env;
|
||||
(void)clazz;
|
||||
return ANDROIDCAST_HAVE_LIBVPX ? JNI_TRUE : JNI_FALSE;
|
||||
}
|
||||
13
ndk/jni/opus_bridge.c
Normal file
13
ndk/jni/opus_bridge.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <jni.h>
|
||||
|
||||
#ifndef ANDROIDCAST_HAVE_OPUS
|
||||
#define ANDROIDCAST_HAVE_OPUS 0
|
||||
#endif
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_foxx_androidcast_media_codec_jni_NativeCodecBridge_nativeIsOpusAvailable(
|
||||
JNIEnv *env, jclass clazz) {
|
||||
(void)env;
|
||||
(void)clazz;
|
||||
return ANDROIDCAST_HAVE_OPUS ? JNI_TRUE : JNI_FALSE;
|
||||
}
|
||||
13
ndk/jni/speex_bridge.c
Normal file
13
ndk/jni/speex_bridge.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <jni.h>
|
||||
|
||||
#ifndef ANDROIDCAST_HAVE_SPEEX
|
||||
#define ANDROIDCAST_HAVE_SPEEX 0
|
||||
#endif
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_foxx_androidcast_media_codec_jni_NativeCodecBridge_nativeIsSpeexAvailable(
|
||||
JNIEnv *env, jclass clazz) {
|
||||
(void)env;
|
||||
(void)clazz;
|
||||
return ANDROIDCAST_HAVE_SPEEX ? JNI_TRUE : JNI_FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user