* createCamera() Create application instance and NDK camera object * @param width is the texture view window width * @param height is the texture view window height * In this sample, it takes the simplest approach in that: * the android system display size is used to view full screen * preview camera images. Onboard Camera most likely to * support the onboard panel size on that device. Cam
| 51 | * @return application object instance ( not used in this sample ) |
| 52 | */ |
| 53 | jlong CreateCamera(JNIEnv* env, jobject, jint width, jint height) { |
| 54 | pEngineObj = new CameraAppEngine(env, width, height); |
| 55 | return reinterpret_cast<jlong>(pEngineObj); |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * deleteCamera(): |