diff --git a/btf_main.c b/btf_main.c old mode 100644 new mode 100755 index f457445..fea6327 --- a/btf_main.c +++ b/btf_main.c @@ -397,6 +397,13 @@ int main(int argc, char *argv[]) LOGD(" duration : %d, type : %d, hdmiCecMessage : %s\n", durationMinute, type, hdmiCecMessage); display14_hdmi_cec_send_message(durationMinute, newListPlayerConfig[0], type, hdmiCecMessage); + } else if(strcmp(argv[1], "hdr_supported_info") == 0) { + int durationMinute = DEFAULT_DURATION; + char hdr_list[256]; + LOGD(" duration : %d\n", durationMinute); + + display15_hdr_supported_info(durationMinute, hdr_list); + LOGD("[BTS|%s:%d] hdr supported info : %d\n", __FUNCTION__, __LINE__, hdr_list); } else if(strcmp(argv[1], MENU_DEVICE01_LED_STATE) == 0) { int ledId = -1, state = -1; if(argc < 4){ diff --git a/display.c b/display.c old mode 100644 new mode 100755 index 5dff852..42d4e53 --- a/display.c +++ b/display.c @@ -546,3 +546,22 @@ void display14_hdmi_cec_send_message(int durationMinute, AVP_PlayerConfig player FUNCTION_OUT(); } + +void display15_hdr_supported_info(int durationMinute, char *hdr_list) { + FUNCTION_IN(); + + if(DISPLAY_Create(&displayHandle) != 0) { + LOGD("DISPLAY_Create create fail."); + assert(false); + } + + if(DISPLAY_HDR_GetSupportedInfo(displayHandle, hdr_list) != 0) { + LOGE("[BTS|%s:%d] DISPLAY_HDR_GetSupportedInfo fail.", __FUNCTION__, __LINE__); + assert(false); + } + + if(displayHandle != NULL) + DISPLAY_Destroy(displayHandle); + + FUNCTION_OUT(); +}