3dphotoshoot

view src/camera.h @ 7:7f6e6eb3d20e

some progress...
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 23 May 2015 23:14:44 +0300
parents e31e23ead56f
children 9fc7d52f578d
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 void cam_update(void);
23 int cam_is_capturing(void);
25 int cam_take_picture(void);
27 #endif /* CAMERA_H_ */