From: Changyeon Lee Date: Thu, 19 Jul 2018 11:18:20 +0000 (+0900) Subject: rename tdm_hwc_get_video_supported_formats X-Git-Tag: accepted/tizen/unified/20180813.061409~7 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Flibtdm.git;a=commitdiff_plain;h=c2c11e87d1af1106ab783ed7b4b984dd0667d58e rename tdm_hwc_get_video_supported_formats Change-Id: I9034c4f898c7753e81790c02d7e71511651ad527 --- diff --git a/haltests/src/tc_tdm_hwc.cpp b/haltests/src/tc_tdm_hwc.cpp index 545c6a0..4df9e54 100644 --- a/haltests/src/tc_tdm_hwc.cpp +++ b/haltests/src/tc_tdm_hwc.cpp @@ -106,7 +106,7 @@ TEST_P(TDMHwc, GetSupportedFormatsFailNull) tdm_error error; - error = tdm_hwc_get_supported_formats(NULL, NULL, NULL); + error = tdm_hwc_get_video_supported_formats(NULL, NULL, NULL); ASSERT_NE(TDM_ERROR_NONE, error); } @@ -122,14 +122,14 @@ TEST_P(TDMHwc, GetSupportedFormatsSuccessful) for (int o = 0; o < output_count; o++) { hwc = tdm_output_get_hwc(outputs[o], &error); if (hwc) { - error = tdm_hwc_get_supported_formats(hwc, &formats, &count); + error = tdm_hwc_get_video_supported_formats(hwc, &formats, &count); if (error != TDM_ERROR_NOT_IMPLEMENTED) { ASSERT_EQ(TDM_ERROR_NONE, error); if (count > 0) ASSERT_NE(NULL, formats); } } else { - error = tdm_hwc_get_supported_formats(hwc, &formats, &count); + error = tdm_hwc_get_video_supported_formats(hwc, &formats, &count); ASSERT_NE(TDM_ERROR_NONE, error); } } diff --git a/include/tdm.h b/include/tdm.h index 7beccd0..1568ea1 100644 --- a/include/tdm.h +++ b/include/tdm.h @@ -825,14 +825,15 @@ tdm_hwc_window * tdm_hwc_create_window(tdm_hwc *hwc, tdm_error *error); /** - * @brief Get the supported format array for hwc windows of a hwc object. - * @param[in] hwc A output hwc + * @brief Get the video supported format array for hwc windows of a output object. + * @param[in] hwc A hwc object * @param[out] formats The available format array * @param[out] count The count of formats * @return #TDM_ERROR_NONE if success. Otherwise, error value. */ tdm_error -tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count); +tdm_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, + int *count); /** * @brief Get the available property array of a hwc object. diff --git a/include/tdm_backend.h b/include/tdm_backend.h index e9fc70d..4949d1e 100644 --- a/include/tdm_backend.h +++ b/include/tdm_backend.h @@ -694,13 +694,13 @@ typedef struct _tdm_func_hwc { tdm_hwc_window *(*hwc_create_window)(tdm_hwc *hwc, tdm_error *error); /** - * @brief Get the supported format array for the hwc windows of a hwc object. + * @brief Get video the supported format array for the hwc windows of a hwc object. * @param[in] hwc A hwc object * @param[out] formats The available format array * @param[out] count The count of formats * @return #TDM_ERROR_NONE if success. Otherwise, error value. */ - tdm_error (*hwc_get_supported_formats)(tdm_hwc *hwc, const tbm_format **formats, + tdm_error (*hwc_get_video_supported_formats)(tdm_hwc *hwc, const tbm_format **formats, int *count); diff --git a/src/tdm_hwc.c b/src/tdm_hwc.c index f7ed46f..b4df1c0 100644 --- a/src/tdm_hwc.c +++ b/src/tdm_hwc.c @@ -178,7 +178,7 @@ tdm_hwc_create_window(tdm_hwc *hwc, tdm_error *error) } EXTERN tdm_error -tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count) +tdm_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count) { tdm_private_module *private_module; tdm_func_hwc *func_hwc; @@ -193,7 +193,7 @@ tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *cou private_module = private_output->private_module; func_hwc = &private_module->func_hwc; - if (!func_hwc->hwc_get_supported_formats) { + if (!func_hwc->hwc_get_video_supported_formats) { /* LCOV_EXCL_START */ _pthread_mutex_unlock(&private_display->lock); TDM_WRN("not implemented!!"); @@ -201,7 +201,7 @@ tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *cou /* LCOV_EXCL_STOP */ } - ret = func_hwc->hwc_get_supported_formats(private_hwc->hwc_backend, formats, count); + ret = func_hwc->hwc_get_video_supported_formats(private_hwc->hwc_backend, formats, count); _pthread_mutex_unlock(&private_display->lock);