_tbm_bufmgr_copy_module_data(gBufMgr, gBufMgr->module);
/* check the essential capabilities of tbm_module */
- gBufMgr->capabilities = tbm_module_bufmgr_get_capabilities(gBufMgr->module, &error);
+ gBufMgr->capabilities = tbm_module_get_capabilities(gBufMgr->module, &error);
if (gBufMgr->capabilities == TBM_BUFMGR_CAPABILITY_NONE) {
TBM_ERR("The capabilities of the backend module is TBM_BUFMGR_CAPABILITY_NONE.");
TBM_ERR("TBM_BUFMGR_CAPABILITY_SHARE_FD is the essential capability.");
TBM_BUFMGR_RETURN_VAL_IF_FAIL(TBM_BUFMGR_IS_VALID(bufmgr), 0);
- error = tbm_module_bufmgr_bind_native_display(bufmgr->module, native_display);
+ error = tbm_module_bind_native_display(bufmgr->module, native_display);
if (error != TBM_ERROR_NONE) {
_tbm_set_last_result(error);
_tbm_bufmgr_mutex_unlock();
/* LCOV_EXCL_STOP */
}
- bo_data = tbm_module_bufmgr_alloc_bo(bufmgr->module, bo, size, flags, error);
+ bo_data = tbm_module_alloc_bo(bufmgr->module, bo, size, flags, error);
if (!bo_data) {
/* LCOV_EXCL_START */
- TBM_ERR("tbm_module_bufmgr_alloc_bo failed. size:%d flags:%s error:%d", size, _tbm_flag_to_str(flags), *error);
+ TBM_ERR("tbm_module_alloc_bo failed. size:%d flags:%s error:%d", size, _tbm_flag_to_str(flags), *error);
free(bo);
return NULL;
/* LCOV_EXCL_STOP */
goto fail;
}
- bo->bo_data = tbm_module_bufmgr_alloc_bo_with_format(bufmgr->module, format, bo_idx, width, height, bpp, flags, error);
+ bo->bo_data = tbm_module_alloc_bo_with_format(bufmgr->module, format, bo_idx, width, height, bpp, flags, error);
if (!bo->bo_data) {
/* LCOV_EXCL_START */
_tbm_set_last_result(*error);
/* LCOV_EXCL_STOP */
}
- bo->bo_data = tbm_module_bufmgr_import_bo_with_key(bufmgr->module, bo, key, error);
+ bo->bo_data = tbm_module_import_bo_with_key(bufmgr->module, bo, key, error);
if (!bo->bo_data) {
/* LCOV_EXCL_START */
- TBM_ERR("tbm_module_bufmgr_import_bo_with_key failed. tbm_key:%d", key);
+ TBM_ERR("tbm_module_import_bo_with_key failed. tbm_key:%d", key);
free(bo);
return NULL;
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_STOP */
}
- bo->bo_data = tbm_module_bufmgr_import_bo_with_fd(bufmgr->module, bo, fd, error);
+ bo->bo_data = tbm_module_import_bo_with_fd(bufmgr->module, bo, fd, error);
if (!bo->bo_data) {
/* LCOV_EXCL_START */
- TBM_ERR("tbm_module_bufmgr_import_bo_with_fd failed. tbm_fd:%d", fd);
+ TBM_ERR("tbm_module_import_bo_with_fd failed. tbm_fd:%d", fd);
free(bo);
return NULL;
/* LCOV_EXCL_STOP */
}
int
-tbm_module_bufmgr_get_capabilities(tbm_module *module, tbm_error_e *error)
+tbm_module_get_capabilities(tbm_module *module, tbm_error_e *error)
{
int capabilities = 0;
tbm_backend_bufmgr_func *bufmgr_func = NULL;
}
tbm_error_e
-tbm_module_bufmgr_bind_native_display(tbm_module *module, void *native_display)
+tbm_module_bind_native_display(tbm_module *module, void *native_display)
{
tbm_error_e error = TBM_ERROR_NONE;
tbm_backend_bufmgr_func *bufmgr_func = NULL;
}
tbm_error_e
-tbm_module_bufmgr_get_supported_formats(tbm_module *module, uint32_t **formats, uint32_t *num)
+tbm_module_get_supported_formats(tbm_module *module, uint32_t **formats, uint32_t *num)
{
tbm_error_e error = TBM_ERROR_NONE;
tbm_backend_bufmgr_func *bufmgr_func = NULL;
}
tbm_error_e
-tbm_module_bufmgr_get_plane_data(tbm_module *module, int format, int plane_idx, uint32_t w, uint32_t h,
+tbm_module_get_plane_data(tbm_module *module, int format, int plane_idx, uint32_t w, uint32_t h,
uint32_t *size, uint32_t *offset, uint32_t *pitch, int *bo_idx)
{
tbm_error_e error = TBM_ERROR_NONE;
}
tbm_backend_bo_data *
-tbm_module_bufmgr_alloc_bo(tbm_module *module, tbm_bo bo, int size, int flags, tbm_error_e *error)
+tbm_module_alloc_bo(tbm_module *module, tbm_bo bo, int size, int flags, tbm_error_e *error)
{
tbm_backend_bo_data *bo_data = NULL;
tbm_backend_bufmgr_func *bufmgr_func = NULL;
}
tbm_backend_bo_data *
-tbm_module_bufmgr_alloc_bo_with_format(tbm_module *module, int format, int bo_idx, int width,
+tbm_module_alloc_bo_with_format(tbm_module *module, int format, int bo_idx, int width,
int height, int bpp, tbm_bo_memory_type flags, tbm_error_e *error)
{
tbm_backend_bo_data *bo_data = NULL;
tbm_backend_bo_data *
-tbm_module_bufmgr_import_bo_with_fd(tbm_module *module, tbm_bo bo, tbm_fd fd, tbm_error_e *error)
+tbm_module_import_bo_with_fd(tbm_module *module, tbm_bo bo, tbm_fd fd, tbm_error_e *error)
{
tbm_backend_bo_data *bo_data = NULL;
tbm_backend_bufmgr_func *bufmgr_func = NULL;
}
tbm_backend_bo_data *
-tbm_module_bufmgr_import_bo_with_key(tbm_module *module, tbm_bo bo, tbm_key key, tbm_error_e *error)
+tbm_module_import_bo_with_key(tbm_module *module, tbm_bo bo, tbm_key key, tbm_error_e *error)
{
tbm_backend_bo_data *bo_data = NULL;
tbm_backend_bufmgr_func *bufmgr_func = NULL;
tbm_module *tbm_module_load(int fd);
void tbm_module_unload(tbm_module *module);
-int tbm_module_bufmgr_get_capabilities(tbm_module *module, tbm_error_e *error);
-tbm_error_e tbm_module_bufmgr_bind_native_display(tbm_module *module, void *native_display);
-tbm_error_e tbm_module_bufmgr_get_supported_formats(tbm_module *module, uint32_t **formats, uint32_t *num);
-tbm_error_e tbm_module_bufmgr_get_plane_data(tbm_module *module, int format, int plane_idx, uint32_t w, uint32_t h, uint32_t *size, uint32_t *offset, uint32_t *pitch, int *bo_idx);
-tbm_backend_bo_data *tbm_module_bufmgr_alloc_bo(tbm_module *module, tbm_bo bo, int size, int flags, tbm_error_e *error);
-tbm_backend_bo_data *tbm_module_bufmgr_alloc_bo_with_format(tbm_module *module, int format, int bo_idx, int width, int height, int bpp, tbm_bo_memory_type flags, tbm_error_e *error);
-tbm_backend_bo_data *tbm_module_bufmgr_import_bo_with_fd(tbm_module *module, tbm_bo bo, tbm_fd fd, tbm_error_e *error);
-tbm_backend_bo_data *tbm_module_bufmgr_import_bo_with_key(tbm_module *module, tbm_bo bo, tbm_key key, tbm_error_e *error);
+int tbm_module_get_capabilities(tbm_module *module, tbm_error_e *error);
+tbm_error_e tbm_module_bind_native_display(tbm_module *module, void *native_display);
+tbm_error_e tbm_module_get_supported_formats(tbm_module *module, uint32_t **formats, uint32_t *num);
+tbm_error_e tbm_module_get_plane_data(tbm_module *module, int format, int plane_idx, uint32_t w, uint32_t h, uint32_t *size, uint32_t *offset, uint32_t *pitch, int *bo_idx);
+tbm_backend_bo_data *tbm_module_alloc_bo(tbm_module *module, tbm_bo bo, int size, int flags, tbm_error_e *error);
+tbm_backend_bo_data *tbm_module_alloc_bo_with_format(tbm_module *module, int format, int bo_idx, int width, int height, int bpp, tbm_bo_memory_type flags, tbm_error_e *error);
+tbm_backend_bo_data *tbm_module_import_bo_with_fd(tbm_module *module, tbm_bo bo, tbm_fd fd, tbm_error_e *error);
+tbm_backend_bo_data *tbm_module_import_bo_with_key(tbm_module *module, tbm_bo bo, tbm_key key, tbm_error_e *error);
void tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int get_from_hal_surface);
int tbm_module_bo_get_size(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, tbm_error_e *error);
TBM_RETURN_VAL_IF_FAIL(surf->info.height > 0, 0);
TBM_RETURN_VAL_IF_FAIL(surf->info.format > 0, 0);
- error = tbm_module_bufmgr_get_plane_data(bufmgr->module, surf->info.format, plane_idx, surf->info.width, surf->info.height, size, offset, pitch, bo_idx);
+ error = tbm_module_get_plane_data(bufmgr->module, surf->info.format, plane_idx, surf->info.width, surf->info.height, size, offset, pitch, bo_idx);
if (error != TBM_ERROR_NONE) {
_tbm_set_last_result(error);
return 0;
bufmgr = g_surface_bufmgr;
- error = tbm_module_bufmgr_get_supported_formats(bufmgr->module, formats, num);
+ error = tbm_module_get_supported_formats(bufmgr->module, formats, num);
if (error != TBM_ERROR_NONE) {
_tbm_set_last_result(error);
goto fail;