display: add internal interface for display enhancement 70/101070/7 accepted/tizen/3.0/common/20161201.135144 accepted/tizen/3.0/ivi/20161201.031527 accepted/tizen/3.0/mobile/20161201.031408 accepted/tizen/3.0/tv/20161201.031441 accepted/tizen/3.0/wearable/20161201.031504 submit/tizen_3.0/20161130.101437
authortaeyoung <ty317.kim@samsung.com>
Wed, 30 Nov 2016 08:02:08 +0000 (17:02 +0900)
committertaeyoung <ty317.kim@samsung.com>
Wed, 30 Nov 2016 09:58:39 +0000 (18:58 +0900)
Change-Id: Ia6e66afdd517f9678c5dd2923c19cf5a7f7e54ee
Signed-off-by: taeyoung <ty317.kim@samsung.com>
hw/display_internal.h [new file with mode: 0644]

diff --git a/hw/display_internal.h b/hw/display_internal.h
new file mode 100644 (file)
index 0000000..c07ba3b
--- /dev/null
@@ -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 <hw/common.h>
+
+/**
+ * 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