tbm_surface_info_s info;
tbm_bo_handle bo_handle;
const char *postfix;
+ const char *format;
char *keys;
int ret;
memcpy(&buf_info->info, &info, sizeof(tbm_surface_info_s));
}
- if (info.format == TBM_FORMAT_ARGB8888 || info.format == TBM_FORMAT_XRGB8888)
+ if (info.format == TBM_FORMAT_ARGB8888 || info.format == TBM_FORMAT_XRGB8888) {
postfix = dump_postfix[0];
- else
+ format = _tbm_surface_internal_format_to_str(info.format);
+ } else
postfix = dump_postfix[1];
keys = _tbm_surface_internal_get_keys(surface);
case TBM_FORMAT_ARGB8888:
case TBM_FORMAT_XRGB8888:
snprintf(buf_info->name, sizeof(buf_info->name),
- "%10.3f_%03d%s_%p-%s.%s",
+ "%10.3f_%03d%s_%p_%s-%s.%s",
_tbm_surface_internal_get_time(),
- g_dump_info->count++, keys, surface, type, postfix);
+ g_dump_info->count++, keys, surface, format, type, postfix);
if (scale_factor > 0.0) {
ret = _tbm_surface_internal_buffer_scale(info.planes[0].ptr,