Open a284628487 opened 6 years ago
/Users/ccfyyn/Downloads/android-6.0.1_r72/developers/samples/android/media/Camera2Video /Users/ccfyyn/Downloads/android-6.0.1_r72/development/samples/B* /Users/ccfyyn/Downloads/android-6.0.1_r72/external/aac/documentation /Users/ccfyyn/Downloads/android-6.0.1_r72/hardware/libhardware/modules/camera /Users/ccfyyn/Downloads/android-6.0.1_r72/packages/apps/Camera
NDK: /Users/ccfyyn/Library/Android/sdk/ndk-bundle /Users/ccfyyn/Library/Android/sdk/ndk-bundle/platforms/android-24/arch-arm64/usr/include
javah com.jni.JniTeach 命令生成头文件, 该头文件引用了 jni.h, 以及定义好了对应的 Native 方法。 javap -s com.jni.JniTeach 命令生成Java文件中的方法签名。
jstring (NewString)(JNIEnv, const jchar, jsize); jsize (GetStringLength)(JNIEnv, jstring); const jchar (GetStringChars)(JNIEnv, jstring, jboolean); void (ReleaseStringChars)(JNIEnv, jstring, const jchar); jstring (NewStringUTF)(JNIEnv, const char); jsize (GetStringUTFLength)(JNIEnv*, jstring);
https://www.jianshu.com/p/a2faaa0206de http://hukai.me/android-deeper-graphics-architecture/ https://github.com/ChouRay/PlayVideo-OpenGL https://github.com/loyinglin/LearnOpenGLES
/Users/ccfyyn/Downloads/android-6.0.1_r72/developers/samples/android/media/Camera2Video /Users/ccfyyn/Downloads/android-6.0.1_r72/development/samples/B* /Users/ccfyyn/Downloads/android-6.0.1_r72/external/aac/documentation /Users/ccfyyn/Downloads/android-6.0.1_r72/hardware/libhardware/modules/camera /Users/ccfyyn/Downloads/android-6.0.1_r72/packages/apps/Camera
NDK: /Users/ccfyyn/Library/Android/sdk/ndk-bundle /Users/ccfyyn/Library/Android/sdk/ndk-bundle/platforms/android-24/arch-arm64/usr/include
javah com.jni.JniTeach 命令生成头文件, 该头文件引用了 jni.h, 以及定义好了对应的 Native 方法。 javap -s com.jni.JniTeach 命令生成Java文件中的方法签名。
jstring (NewString)(JNIEnv, const jchar, jsize);
jsize (GetStringLength)(JNIEnv, jstring);
const jchar (GetStringChars)(JNIEnv, jstring, jboolean);
void (ReleaseStringChars)(JNIEnv, jstring, const jchar);
jstring (NewStringUTF)(JNIEnv, const char);
jsize (GetStringUTFLength)(JNIEnv*, jstring);