From: taeyoung Date: Wed, 30 Nov 2016 08:02:08 +0000 (+0900) Subject: display: add internal interface for display enhancement X-Git-Tag: submit/tizen_3.0/20161130.101437^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a390a1c5d09cf94ea0aa76038b959e965f4d86c;p=platform%2Fcore%2Fsystem%2Flibdevice-node.git display: add internal interface for display enhancement Change-Id: Ia6e66afdd517f9678c5dd2923c19cf5a7f7e54ee Signed-off-by: taeyoung --- diff --git a/hw/display_internal.h b/hw/display_internal.h new file mode 100644 index 0000000..c07ba3b --- /dev/null +++ b/hw/display_internal.h @@ -0,0 +1,74 @@ +/* + * libdevice-node + * + * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/*******************************************/ +/* THIS IS THE HAL FOR EXPERIMENTAL USAGES */ +/*******************************************/ + + +#ifndef __HW_DISPLAY_INTERNAL_H__ +#define __HW_DISPLAY_INTERNAL_H__ + +#include + +/** + * The id of this device + */ +#define DISPLAY_INTERNAL_HARDWARE_DEVICE_ID "display_internal" + +/** + * The version of this device + */ +#define DISPLAY_INTERNAL_HARDWARE_DEVICE_VERSION MAKE_VERSION(0,2) + +typedef enum display_internal_enhance_mode { + ENHANCE_MODE_NONE = 1001, + ENHANCE_MODE_DYNAMIC, + ENHANCE_MODE_STANDARD, + ENHANCE_MODE_NATURAL, + ENHANCE_MODE_GRAYSCALE, + ENHANCE_MODE_MOVIE, + ENHANCE_MODE_AUTO, +} display_internal_enhance_mode_e; + +typedef enum display_internal_enhance_scenario { + ENHANCE_SCENARIO_NONE = 2001, + ENHANCE_SCENARIO_NORMAL, + ENHANCE_SCENARIO_GALLERY, + ENHANCE_SCENARIO_VIDEO, + ENHANCE_SCENARIO_VTCALL, + ENHANCE_SCENARIO_CAMERA, + ENHANCE_SCENARIO_BROWSER, + ENHANCE_SCENARIO_NEGATIVE, + ENHANCE_SCENARIO_EMAIL, + ENHANCE_SCENARIO_EBOOK, + ENHANCE_SCENARIO_GRAYSCALE, +} display_intermal_enhance_scenario_e; + +struct display_internal_device { + struct hw_common common; + + int (*set_enhance_mode)(display_internal_enhance_mode_e mode); + int (*get_enhance_mode)(display_internal_enhance_mode_e *mode); + + int (*set_enhance_scenario)(display_internal_enhance_scenario_e scenario); + int (*get_enhance_scenario)(display_internal_enhance_scenario_e *scenario); + +}; + +#endif