3dphotoshoot

view src/camera.h @ 8:9fc7d52f578d

FINALLY I'm getting an image out of the camera
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 25 May 2015 04:14:38 +0300
parents 7f6e6eb3d20e
children d1b456d08713
line source
1 #ifndef CAMERA_H_
2 #define CAMERA_H_
4 #ifdef __ANDROID__
5 #include <jni.h>
7 struct cam_android_platform_data {
8 JavaVM *vm;
9 JNIEnv *jni;
10 jclass activity_class;
11 };
12 #endif
14 int cam_init(void *platform_data);
15 void cam_shutdown(void);
17 unsigned int cam_texture(void);
18 void cam_texture_size(int *w, int *h);
20 int cam_start_video(void);
21 int cam_stop_video(void);
22 int cam_update(void);
23 int cam_is_capturing(void);
25 int cam_take_picture(void);
27 #endif /* CAMERA_H_ */