1#ifndef __BTK_CAMERAINPUT_ANDROID_H__
2#define __BTK_CAMERAINPUT_ANDROID_H__
4#include <opencv2/opencv.hpp>
7#include <boost/bind.hpp>
11 #include "libuvc/libuvc.h"
27 struct android_app* mApp;
69 uvc_frame_t* mFrameConv;
78 struct android_app* mApp;
80 uvc_context_t* mUvcCtx;
81 uvc_device_handle_t* mUvcDevh;
89 static void streamCb(uvc_frame_t *frame,
void *ptr);
90 bool checkCameraPermission();
91 void startPreview(
int width,
int height,
int index);
108 cv::Size mBufferSize;
109 cv::Mat mFrameCached;
114 CameraUvcAndroid* mUVC;
bool setFocusPoint(int x, int y)
void startPreview(int width, int height, int index, bool recordingHint)
static const int CAMERA_FACING_FRONT
jmethodbox grabMethod(JNIEnv *env, const char *name, const char *signature)
static const int CAMERA_FACING_BACK
static const std::string android_package
cv::Size getPreviewSize()
int getDeviceOrientation()