1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/*
* 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);
int (*set_enhance)(display_internal_enhance_mode_e mode,
display_internal_enhance_scenario_e scenario);
int (*get_enhance)(display_internal_enhance_mode_e *mode,
display_internal_enhance_scenario_e *scenario);
};
#endif
|