Tizen 2.1 base
[platform/core/api/recorder.git] / include / recorder_private.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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
19 #ifndef __TIZEN_MULTIMEDIA_RECORDER_PRIVATE_H__
20 #define __TIZEN_MULTIMEDIA_RECORDER_PRIVATE_H__
21 #include <camera.h>
22 #include <mm_camcorder.h>
23 #include <recorder.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 typedef enum {
30         _RECORDER_EVENT_TYPE_STATE_CHANGE,
31         _RECORDER_EVENT_TYPE_RECORDING_LIMITED, 
32         _RECORDER_EVENT_TYPE_RECORDING_STATUS,
33         _RECORDER_EVENT_TYPE_INTERRUPTED,
34         _RECORDER_EVENT_TYPE_AUDIO_STREAM,
35         _RECORDER_EVENT_TYPE_ERROR,
36         _RECORDER_EVENT_TYPE_NUM
37 }_recorder_event_e;
38
39 typedef enum {
40         _RECORDER_TYPE_AUDIO= 0,
41         _RECORDER_TYPE_VIDEO
42 }_recorder_type_e;
43
44 typedef struct _recorder_s{
45         MMHandleType mm_handle;
46         camera_h camera;
47         void* user_cb[_RECORDER_EVENT_TYPE_NUM];
48         void* user_data[_RECORDER_EVENT_TYPE_NUM];
49         int state;
50         _recorder_type_e  type;
51         int origin_preview_format;
52         int changed_preview_format;
53         double last_max_input_level;
54 } recorder_s;
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif //__TIZEN_MULTIMEDIA_RECORDER_PRIVATE_H__
61
62