MCPcopy Create free account
hub / github.com/android/ndk-samples / CreateCamera

Function CreateCamera

camera/texture-view/src/main/cpp/android_main.cpp:53–56  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

51 * @return application object instance ( not used in this sample )
52 */
53jlong 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():

Callers 1

OnAppInitWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected