Tizen 2.1 base
[apps/core/preloaded/ug-camera-efl.git] / include / cam_continuous_shot.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *        http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #ifndef __DEF_cam_continuous_shot_H_
19 #define __DEF_cam_continuous_shot_H_
20
21 #include "cam.h"
22
23 #define SAVE_THREAD_EXIT "SAVE_THREAD_EXIT"
24 #define SAVE_THREAD_FINISH "SAVE_THREAD_FINISH"
25
26
27 typedef struct __FILE_SAVE_INFO {
28         void *buffer;
29         unsigned int buf_size;
30         char *filename;
31         char *cmd;
32 } File_Save_Info;
33
34
35 void cam_continuous_shot_data_free(void *data);
36 void cam_continuous_shot_capture_start(void *data);
37 void cam_continuous_shot_capture_callback(camera_image_data_s* image,
38         camera_image_data_s* postview,
39         camera_image_data_s* thumbnail,
40         void *user_data);
41
42 gboolean cam_continuous_shot_reg_file(int shot_num, char *file_path[]);
43 gboolean cam_continuous_shot_create_file_save_thread(void *data);
44 void cam_continuous_shot_file_save_thread_exit(void *data);
45 void cam_continuous_shot_update_progress_value(void *data);
46 void cam_continuous_shot_finish_save_image();
47
48
49 #endif