hwc: added backend function of video 36/185636/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 31 Jul 2018 11:33:06 +0000 (20:33 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 10 Aug 2018 04:28:00 +0000 (04:28 +0000)
Change-Id: Ic2c3d202922aed10cd5cbec08a7f630504f7c9ab

src/tdm_vc4.h
src/tdm_vc4_display.c

index 11c537f..d319e1c 100644 (file)
@@ -51,7 +51,8 @@ tdm_error     vc4_output_set_status_handler(tdm_output *output, tdm_output_status_ha
 tdm_hwc    *vc4_output_get_hwc(tdm_output *output, tdm_error *error);
 
 tdm_hwc_window      *vc4_hwc_create_window(tdm_hwc *hwc, tdm_error *error);
-tdm_error            vc4_hwc_get_supported_formats(tdm_hwc *outphwcut, const tbm_format **formats, int *count);
+tdm_error            vc4_hwc_get_video_supported_formats(tdm_hwc *outphwcut, const tbm_format **formats, int *count);
+tdm_error            vc4_hwc_get_video_capability(tdm_hwc *hwc, tdm_hwc_video_capability *video_capability);
 tdm_error            vc4_hwc_get_available_properties(tdm_hwc *hwc, const tdm_prop **props, int *count);
 tbm_surface_queue_h  vc4_hwc_get_client_target_buffer_queue(tdm_hwc *hwc, tdm_error *error);
 tdm_error            vc4_hwc_set_client_target_buffer(tdm_hwc *hwc, tbm_surface_h buffer, tdm_region damage);
index ab2aacf..68c8f21 100644 (file)
@@ -2480,7 +2480,7 @@ vc4_hwc_window_set_buffer(tdm_hwc_window *hwc_window, tbm_surface_h surface)
 }
 
 tdm_error
-vc4_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
+vc4_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
 {
        tdm_vc4_hwc_data *hwc_data = hwc;
 
@@ -2494,6 +2494,19 @@ vc4_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *cou
 }
 
 tdm_error
+vc4_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
 vc4_hwc_get_available_properties(tdm_hwc *hwc, const tdm_prop **props, int *count)
 {
        tdm_vc4_hwc_data *hwc_data = hwc;