3dphotoshoot

view src/camera.h @ 27:3d082c566b53

fixed all the bugs, pc version works
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 04:32:25 +0300
parents 4ca4e3c5a754
children
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 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 int cam_init(void *platform_data);
19 void cam_shutdown(void);
21 unsigned int cam_texture(void);
22 const float *cam_texture_matrix(void);
24 int cam_start_video(void);
25 int cam_stop_video(void);
26 int cam_update(void);
27 int cam_is_capturing(void);
29 int cam_video_size(int *xsz, int *ysz);
31 int cam_take_picture(void);
33 void cam_draw_preview(void);
35 #ifdef __cplusplus
36 }
37 #endif
39 #endif /* CAMERA_H_ */