Android JNI (Java Native Interface) technology (used in conjunction with NDK (Native Development Kit)) Java interacts with C++, and Java calls the C++ interface

What is the interaction between Java and C++ (or other languages)? Under what circumstances is jni needed? “Interaction between Java and C++” refers to the fact that the two languages can call each other’s methods and operate each other’s data. For example, you can call C++ functions in Java code, and you can also call […]

NDK cross compile FFmpeg Android compile ffmpeg

NDK cross-compile FFmpeg Android compile ffmpeg Article directory NDK cross compile FFmpeg Android compile ffmpeg Compiler Environment Compilation tool download Compilation process Compiler Environment System environment NDK version selection Source code download Only compile simple ffmpeg compile compile script question use Technical Support Compilation environment Compilation tool download Refer to this: https://blog.csdn.net/gaoliang0/article/details/81913291 Or download the […]

NDK compilation script: Android.mk or CMakeLists.txt

This article comes from: https://github.com/xufuji456/FFmpegAndroid/blob/master/doc/NDK_compile_shell.md Foreword Android NDK used to use Android.mk and Application.mk to build by default, but after Android Studio 2.2 it is recommended to use CMake for compilation. CMake is a cross-platform compilation tool, whose full name is cross platform make. It has built-in automatic dependency analysis functions for c, c++, and […]

Android-NDK-clang compiles FFmpeg

Android-NDK-clang compiles FFmpeg Android-NDK-clang compiles FFmpeg Android-NDK-clang compiles FFmpeg – Zhihu (zhihu.com) Preliminary preparation Download Android-NDK Download FFmpeg source code Note: The author uses NDK-21 and ffmpeg-4.4 for compilation. It may be different if the versions are different. Test: NDK20 – NDK22 and ffmpeg 4.0 – ffmpeg 4.4 under mac and ubuntu can be used. […]

Android NDK Crash monitoring

Some friends asked how to capture Android NDK Crash, but they don’t want to use non-Google SDK to collect it. How to do it? I will start with JAVA first, and then introduce how to capture NDK Crash. Crash monitoring Crash (application crash) is a phenomenon in which the App exits abnormally due to abnormal […]

Android NDK development

Android NDK (Native Development Kit) is a toolset for native C/C++ development on the Android platform. Using Android NDK for development has the following significance and advantages: Performance optimization: Native code can be more efficient than Java code in some cases, especially when it comes to complex calculations, graphics processing, or audio and video processing. […]

Android integrated OpenCV (NDK)

(Reprint, please delete the content in brackets) 1. Download OpenCv’s dynamic library (.so) OpenCv official website, the download here is 4.6.0 2. Decompress opencv-4.6.0-android-sdk.zip Copy the include folder of the directory opencv-4.6.0-android-sdk\OpenCV-android-sdk\sdk\ ative\jni, and opencv-4.6. The cpu architecture type corresponding to the 0-android-sdk\OpenCV-android-sdk\sdk\ ative\libs\armeabi-v7a directory. There is no corresponding directory for the project, so create […]

Use OpenHarmonyNDK to transplant the three-party library Speexdsp

Hello everyone, I am an OpenHarmony developer who is about to graduate. I spent two months last summer to port a three-party speech processing library Speexdsp to the OpenHarmony standard system. Mainly wrote build.gn for it to join the OpenHarmony compilation system (based on ninja and gn), and Speexdsp is built using the build tools […]

NDK OpenGL implements beauty function

The OpenGL of the NDK? series realizes special effects of beauty. This section mainly adds special effects of beauty to the special effects of big eyes and cuteness in the previous section. OpenGL video effects series: NDK OpenGL rendering screen effect NDK OpenGL off-screen rendering and engineering code integration NDK OpenGL imitates vibrato very fast […]