display: add getter/setter for white balance 93/284293/1 accepted/tizen/7.0/unified/20221117.014350
authorYunhee Seo <yuni.seo@samsung.com>
Thu, 10 Nov 2022 08:19:39 +0000 (17:19 +0900)
committeryunhee seo <yuni.seo@samsung.com>
Tue, 15 Nov 2022 04:53:28 +0000 (04:53 +0000)
commit5885e7adfc67dd65588f9dc7cd6c98a765661cd1
tree1eb3a5f31a3e009ff22beeb9bdd73a6215ade63d
parenteb6362f5ac77cb97e432dfdb3a6b64fb1a113e54
display: add getter/setter for white balance

Add a getter and setter function of display white balance which controls RGB gain and offset.

White balancing is adjusting standard point of white color, this because the light source is different for each device.
gain value is a value to be multiplied for RGB value calculation.
offset vealue is a value to be added for RGB value calculation.

These are function prototype to be added.
int hal_device_display_set_white_balance(enum hal_display_white_balance, int value);
int hal_device_display_get_white_balance(enum hal_display_white_balance, int* value);

With this enum type, it is possible to get and set RGB gain and offset value for white balancing.
It is used as a parameter of HAL getter and setter function.
enum hal_display_white_balance {
HAL_DISPLAY_WHITE_BALANCE_R_GAIN,
HAL_DISPLAY_WHITE_BALANCE_G_GAIN,
HAL_DISPLAY_WHITE_BALANCE_B_GAIN,
HAL_DISPLAY_WHITE_BALANCE_R_OFFSET,
HAL_DISPLAY_WHITE_BALANCE_G_OFFSET,
HAL_DISPLAY_WHITE_BALANCE_B_OFFSET,
};

Change-Id: I3afe3953e15b61657a8dfd842a30fde553359586
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
(cherry picked from commit e98384a40fc521aa8c07c751cf58e29eb0f58984)
include/backend/hal-display-interface.h
include/hal-display.h
src/display.c