Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
50df762c
Commit
50df762c
authored
Sep 26, 2010
by
Ethan Rublee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
giving the android jni a start up function OnLoad
parent
91b5c97d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
Application.mk
android/android-jni/jni/Application.mk
+1
-4
android-cv.i
android/android-jni/jni/android-cv.i
+2
-0
image_pool.cpp
android/android-jni/jni/image_pool.cpp
+10
-0
image_pool.h
android/android-jni/jni/image_pool.h
+1
-1
No files found.
android/android-jni/jni/Application.mk
View file @
50df762c
# The ARMv7 is significanly faster due to the use of the hardware FPU
APP_ABI := armeabi armeabi-v7a
APP_BUILD_SCRIPT := $(call my-dir)/Android.mk
APP_PROJECT_PATH := $(PROJECT_PATH)
\ No newline at end of file
APP_MODULES := android-opencv
android/android-jni/jni/android-cv.i
View file @
50df762c
...
...
@@ -34,6 +34,7 @@ using namespace cv;
}
%}
%pragma(java) jniclasscode=%{
static {
try {
...
...
@@ -48,6 +49,7 @@ using namespace cv;
}
%}
%include "cv.i"
%include "glcamera.i"
...
...
android/android-jni/jni/image_pool.cpp
View file @
50df762c
...
...
@@ -5,6 +5,16 @@
#include <android/log.h>
#include <opencv2/imgproc/imgproc.hpp>
#define LOG_TAG "libandroid-opencv"
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
JNIEXPORT
jint
JNI_OnLoad
(
JavaVM
*
vm
,
void
*
reserved
)
{
JNIEnv
*
env
;
LOGI
(
"JNI_OnLoad called for opencv"
);
return
JNI_VERSION_1_4
;
}
JNIEXPORT
void
JNICALL
Java_com_opencv_jni_opencvJNI_addYUVtoPool
(
JNIEnv
*
env
,
jclass
thiz
,
jlong
ppool
,
jobject
_jpool
,
jbyteArray
jbuffer
,
...
...
android/android-jni/jni/image_pool.h
View file @
50df762c
...
...
@@ -9,7 +9,7 @@ using namespace cv;
extern
"C"
{
#endif
JNIEXPORT
jint
JNI_OnLoad
(
JavaVM
*
vm
,
void
*
reserved
);
//
//JNIEXPORT jobject JNICALL Java_com_opencv_jni_opencvJNI_getBitmapBuffer(
// JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment