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

Class CameraAppEngine

camera/texture-view/src/main/cpp/camera_engine.h:33–52  ·  view source on GitHub ↗

* CameraAppEngine */

Source from the content-addressed store, hash-verified

31 * CameraAppEngine
32 */
33class CameraAppEngine {
34 public:
35 explicit CameraAppEngine(JNIEnv* env, jint w, jint h);
36 ~CameraAppEngine();
37
38 // Manage NDKCamera Object
39 void CreateCameraSession(jobject surface);
40 void StartPreview(bool start);
41 const ImageFormat& GetCompatibleCameraRes() const;
42 int32_t GetCameraSensorOrientation(int32_t facing);
43 jobject GetSurfaceObject();
44
45 private:
46 JNIEnv* env_;
47 int32_t requestWidth_;
48 int32_t requestHeight_;
49 jobject surface_;
50 NDKCamera* camera_;
51 ImageFormat compatibleCameraRes_;
52};
53#endif // __CAMERA_ENGINE_H__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected