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

Method CreateCameraSession

camera/texture-view/src/main/cpp/camera_engine.cpp:57–60  ·  view source on GitHub ↗

* Create a capture session with given Java Surface Object * @param surface a Surface object. */

Source from the content-addressed store, hash-verified

55 * @param surface a {@link Surface} object.
56 */
57void CameraAppEngine::CreateCameraSession(jobject surface) {
58 surface_ = env_->NewGlobalRef(surface);
59 camera_->CreateSession(ANativeWindow_fromSurface(env_, surface));
60}
61
62/**
63 * @return cached {@link Surface} object

Callers 1

OnPreviewSurfaceCreatedFunction · 0.80

Calls 1

CreateSessionMethod · 0.45

Tested by

no test coverage detected