3dphotoshoot

view src/camera.h @ 6:e31e23ead56f

GAMO TO XRISTO KAI TIN PANAGIA TOU ANDROID
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 21 May 2015 19:03:00 +0300
parents
children 7f6e6eb3d20e
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_is_capturing(void);
24 int cam_take_picture(void);
26 #endif /* CAMERA_H_ */