2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef __TIZEN_MULTIMEDIA_RECORDER_PRIVATE_H__
20 #define __TIZEN_MULTIMEDIA_RECORDER_PRIVATE_H__
22 #include <mm_camcorder.h>
29 typedef union _mediaSource{
35 _RECORDER_EVENT_TYPE_STATE_CHANGE,
36 _RECORDER_EVENT_TYPE_RECORDING_LIMITED,
37 _RECORDER_EVENT_TYPE_RECORDING_STATUS,
38 _RECORDER_EVENT_TYPE_INTERRUPTED,
39 _RECORDER_EVENT_TYPE_INTERRUPT_COMPLETED,
40 _RECORDER_EVENT_TYPE_AUDIO_STREAM,
41 _RECORDER_EVENT_TYPE_ERROR,
42 _RECORDER_EVENT_TYPE_NUM
46 _RECORDER_TYPE_AUDIO= 0,
50 typedef struct _recorder_s{
51 MMHandleType mm_handle;
52 mediasource mm_source;
53 void* user_cb[_RECORDER_EVENT_TYPE_NUM];
54 void* user_data[_RECORDER_EVENT_TYPE_NUM];
56 _recorder_type_e type;
57 int origin_preview_format;
58 int changed_preview_format;
59 double last_max_input_level;
62 static int __convert_recorder_error_code(const char *func, int code);
67 #endif //__TIZEN_MULTIMEDIA_RECORDER_PRIVATE_H__