strncat(p, file, len);
p += len;
*(p++) = '.';
- strncat(p, ext, 3);
+ strncat(p, ext, 4);
p += 3;
*p = '\0';
} else {
TDM_RETURN_VAL_IF_FAIL(w >= 0, TDM_ERROR_INVALID_PARAMETER);
TDM_RETURN_VAL_IF_FAIL(h >= 0, TDM_ERROR_INVALID_PARAMETER);
TDM_RETURN_VAL_IF_FAIL(func != NULL, TDM_ERROR_INVALID_PARAMETER);
-
+/* LCOV_EXCL_START */
err = tdm_output_get_layer_count(output, &count);
if (err != TDM_ERROR_NONE) {
TDM_ERR("tdm_output_get_layer_count fail(%d)\n", err);
func(dst_buffer, data);
return TDM_ERROR_NONE;
+/* LCOV_EXCL_STOP */
}
static char *
continue;
}
+/* LCOV_EXCL_START */
LIST_FOR_EACH_ENTRY(private_layer, &private_output->layer_list, link) {
if (!private_layer->usable) {
tdm_info_layer info;
unsigned int format;
tdm_size size;
- tbm_surface_info_s buf_info;
TDM_DBG_RETURN_VAL_IF_FAIL(func_layer->layer_get_info, reply);
memset(&info, 0, sizeof info);
if (!private_layer->showing_buffer)
continue;
- format = tbm_surface_get_format(private_layer->showing_buffer->buffer);
- tbm_surface_get_info(private_layer->showing_buffer->buffer, &buf_info);
-
size.h = tbm_surface_get_width(private_layer->showing_buffer->buffer);
size.v = tbm_surface_get_height(private_layer->showing_buffer->buffer);
if (info.src_config.format)
- format = (info.src_config.format) ? : format;
+ format = info.src_config.format;
+ else
+ format = tbm_surface_get_format(private_layer->showing_buffer->buffer);
TDM_SNPRINTF(reply, len, "%d %d %d %p %c%c%c%c %ux%u %ux%u+%u+%u %ux%u+%u+%u %s\n",
private_layer->index,
}
}
}
+/* LCOV_EXCL_STOP */
}
}
if (LIST_IS_EMPTY(&private_module->output_list))