This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Java) | |
Camera.Parameters params = this.mCamera.getParameters(); | |
params.setSceneMode(sceneMode); | |
mCamera.setParameters(params); ----> | |
(Java: Android source code) | |
native_setParameters(params.flatten()); ----> | |
https://android.googlesource.com/platform/frameworks/base/+/5182c78/core/java/android/hardware/Camera.java#1638 | |
(cpp: Android source code) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Log.d("MainScreen", "------(change)sceneMode=" + sceneMode); | |
//try { | |
Log.d("MainScreen", "----> this.mCamera.getParameters()"); | |
Camera.Parameters params = this.mCamera.getParameters(); | |
Log.d("MainScreen", "----> params.setSceneMode(sceneMode);"); | |
params.setSceneMode(sceneMode); | |
Log.d("MainScreen", "----> mCamera.setParameters(params);;"); | |
mCamera.setParameters(params); | |
//}catch(Exception e){} | |
Log.d("MainScreen", "------(change)stop"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23:33:51.909534 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"------(change)sceneMode=action\0", 31}], 3) = 43 | |
23:33:51.910021 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> this.mCamera.getParameters()\0", 37}], 3) = 49 | |
23:33:51.910463 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0 | |
23:33:51.910748 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0 | |
23:33:51.912453 mprotect(0x4413c000, 8192, PROT_READ|PROT_WRITE) = 0 | |
23:33:51.912746 mprotect(0x6be04000, 1264, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 | |
23:33:51.913003 syscall_983042(0x6be044ec, 0x6be044f0, 0, 0xfff, 0x4155f0b0, 0x6be044ec, 0x6be053b5, 0xf0002, 0, 0x6be044f0, 0xff62f000, 0x4413b9a8, 0, 0xbea1e5a8, 0x41527bd5, 0x40081810, 0xf0010, 0x6be044ec, 0, 0, 0xc764, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0 | |
23:33:51.913133 mprotect(0x6be04000, 1264, PROT_READ|PROT_EXEC) = 0 | |
23:33:51.913334 mprotect(0x4413e000, 4096, PROT_READ|PROT_WRITE) = 0 | |
23:33:51.913628 mprotect(0x6be04000, 860, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23:33:42.682549 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"------(change)sceneMode=auto\0", 29}], 3) = 41 | |
23:33:42.683722 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> this.mCamera.getParameters()\0", 37}], 3) = 49 | |
23:33:42.683966 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0 | |
23:33:42.684653 mprotect(0x43f94000, 8192, PROT_READ|PROT_WRITE) = 0 | |
23:33:42.684960 mprotect(0x43f96000, 4096, PROT_READ|PROT_WRITE) = 0 | |
23:33:42.685119 futex(0x4155f0ec, 0x81 /* FUTEX_??? */, 1) = 1 | |
23:33:42.685388 futex(0x4155f0e4, 0x81 /* FUTEX_??? */, 1) = 1 | |
23:33:42.686751 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> params.setSceneMode(sceneMode);\0", 40}], 3) = 52 | |
23:33:42.686972 futex(0x4155f0ec, 0x81 /* FUTEX_??? */, 1) = 1 | |
23:33:42.687244 futex(0x4155f0e4, 0x81 /* FUTEX_??? */, 1) = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23:33:58.929301 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"------(change)sceneMode=fireworks\0", 34}], 3) = 46 | |
23:33:58.931016 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> this.mCamera.getParameters()\0", 37}], 3) = 49 | |
23:33:58.931557 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0 | |
23:33:58.932173 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0 | |
23:33:58.933519 mprotect(0x4419b000, 8192, PROT_READ|PROT_WRITE) = 0 | |
23:33:58.933975 mprotect(0x4419d000, 4096, PROT_READ|PROT_WRITE) = 0 | |
23:33:58.934338 mprotect(0x4419e000, 4096, PROT_READ|PROT_WRITE) = 0 | |
23:33:58.934635 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> params.setSceneMode(sceneMode);\0", 40}], 3) = 52 | |
23:33:58.935095 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> mCamera.setParameters(params);;\0", 40}], 3) = 52 | |
23:33:58.935700 mprotect(0x4419f000, 4096, PROT_READ|PROT_WRITE) = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <fcntl.h> | |
#include <linux/videodev2.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/ioctl.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <opencv2/core/core.hpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Sat Feb 7 16:41:48 on ttys002 | |
Katsumatas-Mac-mini:~ wf9a5m75$ adb shell | |
* daemon not running. starting it now on port 5037 * | |
* daemon started successfully * | |
shell@ranger:/ $ su | |
root@ranger:/ # setprop log.tag.TAG_TEST VERBOSE | |
root@ranger:/ # logcat | |
I/ActivityManager( 685): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.wf9a5m75.myapplication/.MainActivity} from pid 1301 | |
D/PermissionCache( 144): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (119 us) | |
D/dalvikvm( 685): GC_CONCURRENT freed 1118K, 13% free 8148K/9348K, paused 1ms+2ms, total 44ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Sat Feb 7 16:41:48 on ttys002 | |
Katsumatas-Mac-mini:~ wf9a5m75$ adb shell | |
* daemon not running. starting it now on port 5037 * | |
* daemon started successfully * | |
shell@ranger:/ $ su | |
root@ranger:/ # logcat | |
I/ActivityManager( 685): START u0 {act=com.android.systemui.recent.action.TOGGLE_RECENTS flg=0x10800000 cmp=com.android.systemui/.recent.RecentsActivity (has extras)} from pid 1131 | |
D/dalvikvm( 685): GC_FOR_ALLOC freed 130K, 15% free 8314K/9712K, paused 34ms, total 35ms | |
W/PowerServiceClient-JNI( 685): Invalid data | |
V/SRS_Proc( 147): ParamSet string: nv_param_media_routing=1024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <jni.h> | |
#include <android/log.h> | |
#include "OpenNI.h" | |
#define LOG_TAG "MainActivity" | |
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) | |
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) | |
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
02-06 17:31:50.321 8776-8823/camera.test.masashi.myapplication D/MainActivity﹕ Initialize failed | |
LibraryHandler: Couldn't load library libPS1080.so | |
DeviceDriver: library handle is invalid for file libPS1080.so | |
Couldn't understand file 'libPS1080.so' as a device driver | |
LibraryHandler: Couldn't load library libOniFile.so | |
DeviceDriver: library handle is invalid for file libOniFile.so | |
Couldn't understand file 'libOniFile.so' as a device driver | |
LibraryHandler: Couldn't load library libPSLink.so | |
DeviceDriver: library handle is invalid for file libPSLink.so | |
Couldn't understand file 'libPSLink.so' as a device driver |