return; \
}
+/* LCOV_EXCL_START */
static void _tdm_layer_cb_wait_vblank(tdm_vblank *vblank, tdm_error error, unsigned int sequence,
unsigned int tv_sec, unsigned int tv_usec, void *user_data);
static void _tbm_layer_queue_acquirable_cb(tbm_surface_queue_h surface_queue, void *data);
private_layer->usable = 0;
if (!func_layer->layer_set_property) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_ERR("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_STOP */
}
ret = func_layer->layer_set_property(private_layer->layer_backend, id, value);
func_layer = &private_module->func_layer;
if (!func_layer->layer_get_property) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_ERR("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_SOP */
}
ret = func_layer->layer_get_property(private_layer->layer_backend, id, value);
private_layer->usable = 0;
if (!func_layer->layer_set_info) {
- /* LCOV_EXCL_START */
TDM_ERR("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_STOP */
}
if (info->src_config.format)
func_layer = &private_module->func_layer;
if (!func_layer->layer_get_info) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_ERR("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_STOP */
}
ret = func_layer->layer_get_info(private_layer->layer_backend, info);
return ret;
}
-/* LCOV_EXCL_START */
static void
_tdm_layer_dump_buffer(tdm_layer *layer, tbm_surface_h buffer)
{
return;
}
-/* LCOV_EXCL_STOP */
void
tdm_layer_free_buffer(tdm_private_layer *private_layer, tdm_private_layer_buffer *layer_buffer)
tdm_private_output *private_output = private_layer->private_output;
tdm_func_layer *func_layer;
- /* LCOV_EXCL_START */
/* dump buffer */
if (tdm_dump_enable && !(private_layer->caps.capabilities & TDM_LAYER_CAPABILITY_VIDEO))
_tdm_layer_dump_buffer(private_layer, buffer);
private_output->index, private_layer->index, i++);
tdm_helper_dump_buffer_str(buffer, tdm_debug_dump_dir, str);
}
- /* LCOV_EXCL_STOP */
private_module = private_layer->private_module;
func_layer = &private_module->func_layer;
private_layer->usable = 0;
if (!func_layer->layer_set_buffer) {
- /* LCOV_EXCL_START */
TDM_ERR("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_START */
}
private_layer->pending_buffer_changed = 1;
TDM_INFO("layer(%p,%d) now usable", private_layer, private_layer->index);
if (!func_layer->layer_unset_buffer) {
- /* LCOV_EXCL_START */
TDM_ERR("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_START */
}
ret = func_layer->layer_unset_buffer(private_layer->layer_backend);
tdm_private_output *private_output = private_layer->private_output;
tdm_private_display *private_display = private_output->private_display;
- /* LCOV_EXCL_START */
if (private_display->print_fps) {
double curr = tdm_helper_get_time();
if (private_layer->fps_stamp == 0) {
private_layer->fps_stamp = 0;
private_layer->fps_count = 0;
}
- /* LCOV_EXCL_STOP */
if (private_layer->showing_buffer) {
if (tdm_ttrace_module & TDM_TTRACE_LAYER) {
layer_commit_handler = calloc(1, sizeof(tdm_private_layer_commit_handler));
if (!layer_commit_handler) {
- /* LCOV_EXCL_START */
TDM_ERR("failed: alloc memory");
return TDM_ERROR_OUT_OF_MEMORY;
- /* LCOV_EXCL_STOP */
}
if (tdm_debug_module & TDM_DEBUG_COMMIT)
func_layer = &private_module->func_layer;
if (!func_layer->layer_set_buffer) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
return;
- /* LCOV_EXCL_STOP */
}
if (TBM_SURFACE_QUEUE_ERROR_NONE != tbm_surface_queue_acquire(private_layer->buffer_queue, &buffer) ||
buffer == NULL) {
- /* LCOV_EXCL_START */
TDM_ERR("layer(%p,%d) tbm_surface_queue_acquire() failed surface:%p",
private_layer, private_layer->index, buffer);
_pthread_mutex_unlock(&private_display->lock);
return;
- /* LCOV_EXCL_STOP */
}
ret = tdm_layer_set_buffer_internal(private_layer, buffer);
private_layer->usable = 0;
if (!func_layer->layer_set_buffer) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_ERR("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_STOP */
}
if (buffer_queue == private_layer->buffer_queue) {
}
if (!func_layer->layer_set_video_pos) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_ERR("layer(%p,%d) not implemented!!", private_layer, private_layer->index);
return TDM_ERROR_NOT_IMPLEMENTED;
- /* LCOV_EXCL_STOP */
}
ret = func_layer->layer_set_video_pos(private_layer->layer_backend, zpos);
func_layer = &private_module->func_layer;
if (!func_layer->layer_get_buffer_flags) {
- /* LCOV_EXCL_START */
*flags = 0;
_pthread_mutex_unlock(&private_display->lock);
TDM_INFO("not implemented!!");
return TDM_ERROR_NONE;
- /* LCOV_EXCL_STOP */
}
ret = func_layer->layer_get_buffer_flags(private_layer->layer_backend, flags);
return ret;
}
+/* LCOV_EXCL_STOP */