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);
}
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);
}
}
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.
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);
}
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;
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!!");
/* 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);