memset(&sprd_func_hwc, 0, sizeof(sprd_func_hwc));
sprd_func_hwc.hwc_create_window = sprd_hwc_create_window;
- sprd_func_hwc.hwc_get_supported_formats = sprd_hwc_get_supported_formats;
+ sprd_func_hwc.hwc_get_video_supported_formats = sprd_hwc_get_video_supported_formats;
+ sprd_func_hwc.hwc_get_video_capability = sprd_hwc_get_video_capability;
sprd_func_hwc.hwc_get_available_properties = sprd_hwc_get_available_properties;
sprd_func_hwc.hwc_get_client_target_buffer_queue = sprd_hwc_get_client_target_buffer_queue;
sprd_func_hwc.hwc_set_client_target_buffer = sprd_hwc_set_client_target_buffer;
tdm_error sprd_layer_get_buffer_flags(tdm_layer *layer, unsigned int *flags);
tdm_hwc_window *sprd_hwc_create_window(tdm_hwc *hwc, tdm_error *error);
-tdm_error sprd_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count);
+tdm_error sprd_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count);
+tdm_error sprd_hwc_get_video_capability(tdm_hwc *hwc, tdm_hwc_video_capability *video_capability);
tdm_error sprd_hwc_get_available_properties(tdm_hwc *hwc, const tdm_prop **props, int *count);
tbm_surface_queue_h sprd_hwc_get_client_target_buffer_queue(tdm_hwc *hwc, tdm_error *error);
tdm_error sprd_hwc_set_client_target_buffer(tdm_hwc *hwc, tbm_surface_h buffer, tdm_region damage);
}
tdm_error
-sprd_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
+sprd_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
{
RETURN_VAL_IF_FAIL(hwc != NULL, TDM_ERROR_INVALID_PARAMETER);
RETURN_VAL_IF_FAIL(formats != NULL, TDM_ERROR_INVALID_PARAMETER);
}
tdm_error
+sprd_hwc_get_video_capability(tdm_hwc *hwc, tdm_hwc_video_capability *video_capability)
+{
+ RETURN_VAL_IF_FAIL(hwc != NULL, TDM_ERROR_INVALID_PARAMETER);
+ RETURN_VAL_IF_FAIL(video_capability != NULL, TDM_ERROR_INVALID_PARAMETER);
+
+ *video_capability = TDM_HWC_VIDEO_CAPABILITY_SCANOUT;
+
+ return TDM_ERROR_NONE;
+}
+
+tdm_error
sprd_hwc_get_available_properties(tdm_hwc *hwc, const tdm_prop **props, int *count)
{
tdm_sprd_hwc_data *hwc_data = hwc;