video: Handle negative positioned video 59/284959/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 11 Aug 2022 05:43:32 +0000 (14:43 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 2 Dec 2022 00:22:49 +0000 (09:22 +0900)
commitf714cfc9a0ce5c2f9ee46027f4563648eb32d8a1
treeb87bac7f3326773b5d23442b609cc2d05222f358
parentc13469d48ba82e515e7f7584a57a1eeb2087aa55
video: Handle negative positioned video

If video sub-surface has negative position, e_comp_wl_output_find()
returns NULL unless there is an output which has negative position.
So, it would eventually fail to calculate physical geometry to be
applied to physical device associated with the output.

To resolve this problem, here it uses e_comp_wl_output_find_all() to get
all outputs on which a E_Client is overlapped. And then it uses a first
output among the returned outputs because it's not ready yet to support
for displaying video on multi output.

The same is true of e_comp_zone_xy_get(). As the name suggests, the
e_comp_zone_xy_get() function returns a zone which contains given x, y
position. So it returns nothing with negative x, y position unless there
is a zone which has negative position.

For this reason, this patch uses a zone referenced directly by E_Client
instead of the value returned from e_comp_zone_xy_get().

Change-Id: I5c20927ab418e4194209790a1c5a4b8bc50ebb38
src/bin/video/iface/e_video_hwc.c