video: Fix errors in calculation of transform 68/248968/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 3 Dec 2020 22:59:24 +0000 (07:59 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 7 Dec 2020 05:12:03 +0000 (05:12 +0000)
commit81b83cb6ba73e04f7c9100351b6efd4c2982bdc5
tree78e519506d99eb2abc64a782376bb81644306c8a
parented118e187b216712e3d2185ae06e3451dbee4433
video: Fix errors in calculation of transform

It was discovered that change of video wasn't able to be applied with
the state, which was destination area out bound of screen with
WL_OUTPUT_TRANSFORM_90.

It turned out because of errors in calculation of transform. That error
made source(input) area empty and empty area cannot be applied.

The transform value which caused this issue was as follow:

wl_subsurface_set_position(840, 0)
wl_viewport_set_destination(1080, 1920)
wl_viewport_set_source(0, 1936, 1080, 2160)
wl_surface_set_buffer_transform(WL_OUTPUT_TRANSFORM_90)

* The state of output: size (1920x1080) transform (0)

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