4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: DongGi Jang <dg0402.jang@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
23 #ifndef __DEVMAN_IMAGE_H__
24 #define __DEVMAN_IMAGE_H__
27 #define DEPRECATED __attribute__((deprecated))
35 * @file devman_image.h
36 * @ingroup DEVICE_MANAGER
37 * @brief This file contains the prototypes of API to control image enhance mode
44 * @addtogroup DEVICE_MANAGER
50 * mode - dynamic, standard, natural, movie
52 enum image_enhance_mode {
61 * This API is used to get image enhance mode.\n
62 * It returns enum value which is the current mode on success.\n
63 * Or a negative value(-1) is returned on failure.
64 * @return enum value for current mode on success, -1 if failed
68 * ret = device_get_image_enhance_mode();
70 * printf("Fail to get current image enhance mode\n");
74 int device_get_image_enhance_mode(void);
78 * This API is used to set image enhance mode.\n
79 * @param[in] val mode enum vlaue
80 * @return 0 on success, -1 if failed
84 * if( device_set_image_enhance_mode(MODE_DYNAMIC) < 0 )
85 * printf("Fail to set the image enhance mode\n");
89 int device_set_image_enhance_mode(int val);
93 * scenario - ui, gallery, video, vtcall, camera, browser, negative, bypass
95 enum image_enhance_scenario {
108 * This API is used to get image enhance scenario.\n
109 * It returns enum value which is the current scenario on success.\n
110 * Or a negative value(-1) is returned on failure.
111 * @return enum value for current wcenario on success, -1 if failed
115 * ret = device_get_image_enhance_scenario();
117 * printf("Fail to get current image enhance scenarioe\n");
121 int device_get_image_enhance_scenario(void);
125 * This API is used to set image enhance scenario.\n
126 * @param[in] val scenario enum vlaue
127 * @return 0 on success, -1 if failed
131 * if( device_set_image_enhance_scenario(SCENARIO_UI) < 0 )
132 * printf("Fail to set the image enhance scenario\n");
136 int device_set_image_enhance_scenario(int val);
140 * tone - normal, warm, cold
142 enum image_enhance_tone {
150 * This API is used to get image enhance tone.\n
151 * It returns enum value which is the current mode on success.\n
152 * Or a negative value(-1) is returned on failure.
153 * @return enum value for current tone on success, -1 if failed
157 * ret = device_get_image_enhance_tone();
159 * printf("Fail to get current image enhance tone\n");
163 int device_get_image_enhance_tone(void);
167 * This API is used to set image enhance tone.\n
168 * @param[in] val tone vlaue
169 * @return 0 on success, -1 if failed
173 * if( device_set_image_enhance_tone(TONE_NORMAL) < 0 )
174 * printf("Fail to set the image enhance tone\n");
178 int device_set_image_enhance_tone(int val);
184 enum image_enhance_outdoor {
191 * This API is used to get image enhance outdoor.\n
192 * It returns enum value which is the current outdoor on success.\n
193 * Or a negative value(-1) is returned on failure.
194 * @return enum value for current outdoor on success, -1 if failed
198 * ret = device_get_image_enhance_ourdoor();
200 * printf("Fail to get current image enhance outdoor\n");
204 int device_get_image_enhance_outdoor(void);
208 * This API is used to set image enhance outdoor.\n
209 * @param[in] val outdoor vlaue
210 * @return 0 on success, -1 if failed
214 * if( device_set_image_enhance_outdoor(TONE_NORMAL) < 0 )
215 * printf("Fail to set the image enhance outdoor\n");
219 int device_set_image_enhance_outdoor(int val);
223 * This API is used to get information about image enhance function.\n
224 * It returns 1, this device can use enhance mode.\n
225 * Or a negative value(-1) is returned, it doesn't support enhance mode.
226 * @return 1 is returned on support for enhance mode, -1 if not.
230 * ret = device_get_image_enhance_info();
232 * printf("Not support image enhance mode on this device\n");
236 int device_get_image_enhance_info(void);
239 * @} // end of image enhance APIs