3dphotoshoot
view src/camera.h @ 22:d7fe157c402d
fonts
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 13 Jun 2015 05:32:07 +0300 |
parents | d1b456d08713 |
children | ac80210d5fbe |
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 #ifdef __cplusplus
34 }
35 #endif
37 #endif /* CAMERA_H_ */