hwc: added backend function of video 37/185637/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 31 Jul 2018 11:41:55 +0000 (20:41 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 31 Jul 2018 11:41:55 +0000 (20:41 +0900)
Change-Id: I3176b11babf555efc6aeb0ad8971bc58a1529a52

src/tdm_exynos.c
src/tdm_exynos.h
src/tdm_exynos_hwc.c

index 48e39da07ae84c3b457528b49af9b1b0d9d51f4d..451294c2d6e5a90df7b333edb653e0c7559790a5 100644 (file)
@@ -373,7 +373,8 @@ tdm_exynos_init(tdm_display *dpy, tdm_error *error)
 
                memset(&exynos_func_hwc, 0, sizeof(exynos_func_hwc));
                exynos_func_hwc.hwc_create_window = exynos_hwc_create_window;
-               exynos_func_hwc.hwc_get_supported_formats = exynos_hwc_get_supported_formats;
+               exynos_func_hwc.hwc_get_video_supported_formats = exynos_hwc_get_video_supported_formats;
+               exynos_func_hwc.hwc_get_video_capability = exynos_hwc_get_video_capability;
                exynos_func_hwc.hwc_get_available_properties = exynos_hwc_get_available_properties;
                exynos_func_hwc.hwc_get_client_target_buffer_queue = exynos_hwc_get_client_target_buffer_queue;
                exynos_func_hwc.hwc_set_client_target_buffer = exynos_hwc_set_client_target_buffer;
index d4c27b519bd2f74dceef4d0b6ab0b84971ec1d72..79b58889744820865b6d3f43d19f6695fe68b52f 100644 (file)
@@ -70,7 +70,8 @@ tdm_error    exynos_layer_set_buffer(tdm_layer *layer, tbm_surface_h buffer);
 tdm_error    exynos_layer_unset_buffer(tdm_layer *layer);
 
 tdm_hwc_window      *exynos_hwc_create_window(tdm_hwc *hwc, tdm_error *error);
-tdm_error            exynos_hwc_get_supported_formats(tdm_output *output, const tbm_format **formats, int *count);
+tdm_error            exynos_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count);
+tdm_error            exynos_hwc_get_video_capability(tdm_hwc *hwc, tdm_hwc_video_capability *video_capability);
 tdm_error            exynos_hwc_get_available_properties(tdm_hwc *hwc, const tdm_prop **props, int *count);
 tbm_surface_queue_h  exynos_hwc_get_client_target_buffer_queue(tdm_hwc *hwc, tdm_error *error);
 tdm_error            exynos_hwc_set_client_target_buffer(tdm_hwc *hwc, tbm_surface_h buffer, tdm_region damage);
index 0c92a007e597295e0414073549827ebf3bc380a3..fb243f1543921bfaef91ae105b81590d7827661f 100644 (file)
@@ -523,7 +523,7 @@ exynos_hwc_create_window(tdm_hwc *hwc, tdm_error *error)
 }
 
 tdm_error
-exynos_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
+exynos_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
 {
        tdm_exynos_hwc_data *hwc_data = hwc;
 
@@ -536,6 +536,19 @@ exynos_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *
        return TDM_ERROR_NONE;
 }
 
+tdm_error
+exynos_hwc_get_video_capability(tdm_hwc *hwc, tdm_hwc_video_capability *video_capability)
+{
+       tdm_exynos_hwc_data *hwc_data = hwc;
+
+       RETURN_VAL_IF_FAIL(hwc_data != NULL, TDM_ERROR_INVALID_PARAMETER);
+       RETURN_VAL_IF_FAIL(video_capability != NULL, TDM_ERROR_INVALID_PARAMETER);
+
+       *video_capability = 0;
+
+       return TDM_ERROR_NONE;
+}
+
 tdm_error
 exynos_hwc_get_available_properties(tdm_hwc *hwc, const tdm_prop **props, int *count)
 {