Tizen 2.1 base
[apps/core/preloaded/ug-camera-efl.git] / src / cam_typeconverter.cpp
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 extern "C" {
19
20 #include "cam_property.h"
21 #include "CamTypeConverter.h"
22 #include "cam_typeconverter.h"
23
24
25 unsigned int cam_iso_dev_convert_caps(camera_attr_iso_e iso)
26 {
27         return CCamTypeConverter::CamIsoDevConvertCaps(iso);
28 }
29
30  unsigned int cam_iso_cam_convert_caps(CamIso iso)
31 {
32         return CCamTypeConverter::CamIsoCamConvertCaps(iso);
33 }
34
35 unsigned int cam_effect_dev_convert_caps(camera_attr_effect_mode_e effect)
36 {
37         return  CCamTypeConverter::CamEffectDevConvertCaps(effect);
38 }
39
40 unsigned int cam_effect_cam_convert_caps(CamSettingsEffects effect)
41 {
42         return  CCamTypeConverter::CamEffectCamConvertCaps(effect);
43 }
44
45
46 unsigned int cam_fps_dev_convert_caps(camera_attr_fps_e fps)
47 {
48         return  CCamTypeConverter::CamFpsDevConvertCaps(fps);
49 }
50
51 unsigned int cam_wb_dev_convert_caps(camera_attr_whitebalance_e wb)
52 {
53         return  CCamTypeConverter::CamWbDevConvertCaps(wb);
54 }
55
56 unsigned int cam_wb_cam_convert_caps(CamSettingsWB wb)
57 {
58         return  CCamTypeConverter::CamWbCamConvertCaps(wb);
59 }
60
61
62 unsigned int cam_focus_dev_convert_caps(camera_attr_af_mode_e focus)
63 {
64         return  CCamTypeConverter::CamFocusDevConvertCaps(focus);
65 }
66
67 unsigned int cam_focus_cam_convert_caps(CamFocusMode focus)
68 {
69         return  CCamTypeConverter::CamFocusCamConvertCaps(focus);
70 }
71
72 unsigned int cam_metering_dev_convert_caps(camera_attr_exposure_mode_e metering)
73 {
74         return  CCamTypeConverter::CamMeteringDevConvertCaps(metering);
75 }
76
77 unsigned int cam_metering_cam_convert_caps(CamMetering type)
78 {
79         return  CCamTypeConverter::CamMeteringCamConvertCaps(type);
80 }
81
82 unsigned int cam_scene_dev_convert_caps(camera_attr_scene_mode_e scene)
83 {
84         return  CCamTypeConverter::CamSceneDevConvertCaps(scene);
85 }
86
87 unsigned int cam_scene_cam_convert_caps(CamSceneMode scene)
88 {
89         return  CCamTypeConverter::CamSceneCamConvertCaps(scene);
90 }
91
92 unsigned int cam_flash_dev_convert_caps(camera_attr_flash_mode_e flash)
93 {
94         return  CCamTypeConverter::CamFlashDevConvertCaps(flash);
95 }
96
97 unsigned int cam_flash_cam_convert_caps(CamFlashMode flash)
98 {
99         return  CCamTypeConverter::CamFlashCamConvertCaps(flash);
100 }
101
102 unsigned int cam_resolution_cam_convert_caps(unsigned int res)
103 {
104         return  CCamTypeConverter::CamResolutionCamConvertCaps(res);
105 }
106
107 }
108
109