display: add getter/setter for white balance 90/284290/1 accepted/tizen/7.0/unified/20221117.014346
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 31 Oct 2022 02:15:55 +0000 (11:15 +0900)
committeryunhee seo <yuni.seo@samsung.com>
Tue, 15 Nov 2022 04:51:42 +0000 (04:51 +0000)
commitc12a669e81f17e289eabb4ca7a0b8d07dec9eb28
tree2ced9e5fa345f797d8f7f144312704a1cebba5c3
parent63683cee7f8f0c704ebcf6384b0e53bdff1d9f04
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 calculation.
offset value is a value to be added for RGB calculation.

These are function prototype to be added.
int device_display_set_white_balance(int display_index, display_white_balance_e white_balance_type, int value);
int device_display_get_white_balance(int display_index, display_white_balance_e white_balance_type, int *value);

With this enum type, we can get and set RGB gain and offset value for white balancing.
It is used as a parameter of getter and setter.
typedef enum
{
DISPLAY_WHITE_BALANCE_R_GAIN = 0, /** White balance R Gain */
DISPLAY_WHITE_BALANCE_G_GAIN, /** White balance G Gain */
DISPLAY_WHITE_BALANCE_B_GAIN, /** White balance B Gain */
DISPLAY_WHITE_BALANCE_R_OFFSET, /** White balance R Offset */
DISPLAY_WHITE_BALANCE_G_OFFSET, /** White balance G Offset */
DISPLAY_WHITE_BALANCE_B_OFFSET, /** White balance B Offset */
} display_white_balance_e;

Change-Id: Ie0adc74e76bcc8e8324767448aa03e3cce585af4
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
(cherry picked from commit 971b53e2a969a367b6ec1c31c0f309a963ee20d3)
include/display-enum.h
include/display-internal.h
src/display.c