return;
}
- VS_INF("VIEWPORT %p| Set destination(width: %d, height: %d)", viewport, width, height);
-
if ((width != -1 || height != -1) &&
(width < 1 || height <1))
{
(viewport->pending.height == height))
return;
+ VS_INF("VIEWPORT %p| Set destination(width: %d, height: %d)", viewport, width, height);
+
viewport->pending.committed |= E_VIDEO_VIEWPORT_STATE_DESTINATION;
viewport->pending.width = width;
viewport->pending.height = height;
{
E_Video_Viewport *viewport = wl_container_of(listener, viewport, precommit_to_cache);
- VS_INF("VIEWPORT %p| Precommit to cache (pending.committed:%d, cache.committed:%d)",
- viewport, viewport->pending.committed, viewport->cache.committed);
+ if (viewport->pending.committed)
+ {
+ VS_INF("VIEWPORT %p| Precommit to cache (pending.committed:%d, cache.committed:%d)",
+ viewport, viewport->pending.committed, viewport->cache.committed);
+ }
_viewport_state_move(&viewport->cache, &viewport->pending);
}
{
E_Video_Viewport *viewport = wl_container_of(listener, viewport, precommit_from_cache);
- VS_INF("VIEWPORT %p| Precommit from cache (cache.committed:%d)",
- viewport, viewport->cache.committed);
+ if (viewport->cache.committed)
+ {
+ VS_INF("VIEWPORT %p| Precommit from cache (cache.committed:%d)",
+ viewport, viewport->cache.committed);
+ }
if (viewport->cache.committed != E_VIDEO_VIEWPORT_STATE_CLEAN)
_viewport_state_commit(viewport, &viewport->cache);
{
E_Video_Viewport *viewport = wl_container_of(listener, viewport, precommit_from_pending);
- VS_INF("VIEWPORT %p| Precommit from pending (pending.committed:%d)",
- viewport, viewport->pending.committed);
+ if (viewport->pending.committed)
+ {
+ VS_INF("VIEWPORT %p| Precommit from pending (pending.committed:%d)",
+ viewport, viewport->pending.committed);
+ }
_viewport_state_commit(viewport, &viewport->pending);
}
if (border_enabled)
_viewport_border_init(viewport);
- VS_INF("VIEWPORT %p| Created with E_Subsurface(%p)", viewport, subsurface);
+ ELOGF("VSHELL", "Created Viewport(%p) from E_Subsurface(%p)",
+ e_surface_ec_get(surface), viewport, viewport->subsurface);
}
static void
width = wl_fixed_to_double(width_fixed);
height = wl_fixed_to_double(height_fixed);
- VS_INF("SOURCE %p| Set source region(x:%f, y:%f, width:%f, height:%f)",
- source, x, y, width, height);
-
if (x == -1.0 && y == -1.0 && width == -1.0 && height == -1.0)
{
+ if (!source->pending.has_src)
+ return;
+
source->pending.has_src = EINA_FALSE;
}
else if (x < 0 || y < 0 || width <= 0 || height <= 0)
}
else
{
+ if (source->pending.has_src &&
+ source->pending.src.x == x && source->pending.src.y == y &&
+ source->pending.src.width == width && source->pending.src.height == height)
+ return;
+
source->pending.has_src = EINA_TRUE;
}
+ VS_INF("SOURCE %p| Set source region(x:%f, y:%f, width:%f, height:%f)",
+ source, x, y, width, height);
+
source->pending.src.x = x;
source->pending.src.y = y;
source->pending.src.width = width;
return;
}
- VS_INF("SOURCE %p| Set aspect ratio(%dx%d)", source, width, height);
-
if (width == -1 && height == -1)
{
+ if (!source->pending.has_aspect_ratio)
+ return;
+
source->pending.has_aspect_ratio = EINA_FALSE;
}
else if (width <= 0 || height <= 0)
}
else
{
+ if (source->pending.has_aspect_ratio &&
+ source->pending.aspect_ratio.width == width &&
+ source->pending.aspect_ratio.height == height)
+ return;
+
source->pending.has_aspect_ratio = EINA_TRUE;
}
+ VS_INF("SOURCE %p| Set aspect ratio(%dx%d)", source, width, height);
+
source->pending.aspect_ratio.width = width;
source->pending.aspect_ratio.height = height;
source->pending.committed |= E_VIDEO_VIEWPORT_SOURCE_STATE_ASPECT_RATIO;
source->current = source->pending;
source->pending.committed = E_VIDEO_VIEWPORT_SOURCE_STATE_CLEAN;
- VS_INF("SOURCE %p| Commit (current.committed:%d)", source, source->current.committed);
+ if (source->current.committed)
+ VS_INF("SOURCE %p| Commit (current.committed:%d)", source, source->current.committed);
_source_pixmap_update(source);
_source_map_state_update(source);
{
E_Video_Viewport_State *state = &source->viewport->current;
- VS_INF("SOURCE %p| viewport committed", source);
+ VS_DBG("SOURCE %p| viewport committed", source);
if (state->committed & E_VIDEO_VIEWPORT_STATE_DESTINATION)
{
}
wl_resource_set_implementation(source->resource, &_source_impl, source, _source_cb_resource_destroy);
+ ELOGF("VSHELL", "Created Source(%p) from E_Video_Surface(%p), Viewport(%p)",
+ e_surface_ec_get(surface->surface), source, surface, viewport);
+
_source_viewport_link(source, viewport);
_video_surface_name_update(surface);
-
- VS_INF("SOURCE %p| Created with E_Video_Surface(%p), Viewport(%p)", source, surface, viewport);
}
static void
_video_surface_name_update(surface);
- VS_INF("SURFACE %p| Subsurface(%p) created with Parent E_Surface(%p)",
- surface, surface->subsurface, parent_surface);
+ ELOGF("VSHELL", "Created legacy Subsurface(%p) from E_Video_Surface(%p), Parent(%p)",
+ e_surface_ec_get(surface->surface), surface->subsurface, surface, parent_surface);
}
static void
surface->surface_destroy.notify = _video_surface_cb_surface_destroy;
e_surface_destroy_listener_add(surface->surface, &surface->surface_destroy);
- VS_INF("SURFACE %p| Created with E_Surface(%p)", surface, e_surface);
+ ELOGF("VSHELL", "Created Surface(%p) from E_Surface(%p)", e_surface_ec_get(e_surface), surface, e_surface);
}
static void
E_Client *ec;
uint32_t id = 0;
- VS_INF("SHELL %p| Get global resource id from handle(%s)", shell, handle);
-
viewport = eina_hash_find(shell->viewports, handle);
if (!viewport)
goto end;
id = e_pixmap_res_id_get(ec->pixmap);
end:
- VS_INF("SHELL %p| Send global resource id(%d)", shell, id);
+ VS_INF("SHELL %p| Send global resource id(%d) of handle(%s)", shell, id, handle);
wtz_video_shell_send_global_resource_id(resource, id);
}