3dphotoshoot
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/camera.h Thu May 21 19:03:00 2015 +0300 1.3 @@ -0,0 +1,26 @@ 1.4 +#ifndef CAMERA_H_ 1.5 +#define CAMERA_H_ 1.6 + 1.7 +#ifdef __ANDROID__ 1.8 +#include <jni.h> 1.9 + 1.10 +struct cam_android_platform_data { 1.11 + JavaVM *vm; 1.12 + JNIEnv *jni; 1.13 + jclass activity_class; 1.14 +}; 1.15 +#endif 1.16 + 1.17 +int cam_init(void *platform_data); 1.18 +void cam_shutdown(void); 1.19 + 1.20 +unsigned int cam_texture(void); 1.21 +void cam_texture_size(int *w, int *h); 1.22 + 1.23 +int cam_start_video(void); 1.24 +int cam_stop_video(void); 1.25 +int cam_is_capturing(void); 1.26 + 1.27 +int cam_take_picture(void); 1.28 + 1.29 +#endif /* CAMERA_H_ */