return (unsigned int)bo_sprd->name;
}
-tbm_fd
+static tbm_fd
tbm_sprd_bo_export_fd(tbm_bo bo)
{
SPRD_RETURN_VAL_IF_FAIL(bo != NULL, -1);
free(bufmgr_sprd);
}
-int
+static int
tbm_sprd_surface_supported_format(uint32_t **formats, uint32_t *num)
{
- uint32_t *color_formats = NULL;
+ uint32_t *color_formats;
color_formats = (uint32_t *)calloc(1,
sizeof(uint32_t) * TBM_COLOR_FORMAT_COUNT);
-
if (color_formats == NULL)
return 0;
memcpy(color_formats, tbm_sprd_color_format_list,
sizeof(uint32_t)*TBM_COLOR_FORMAT_COUNT);
-
*formats = color_formats;
*num = TBM_COLOR_FORMAT_COUNT;
-
return 1;
}
* @param[out] padding : the padding of the plane
* @return 1 if this function succeeds, otherwise 0.
*/
-int
+static int
tbm_sprd_surface_get_plane_data(int width, int height,
tbm_format format, int plane_idx, uint32_t *size, uint32_t *offset,
uint32_t *pitch, int *bo_idx)
return ret;
}
-int
+static int
tbm_sprd_bo_get_flags(tbm_bo bo)
{
SPRD_RETURN_VAL_IF_FAIL(bo != NULL, 0);
return bo_sprd->flags_tbm;
}
-int
+static int
tbm_sprd_bufmgr_bind_native_display(tbm_bufmgr bufmgr, void *NativeDisplay)
{
tbm_bufmgr_sprd bufmgr_sprd;