video: Fix double cropping source/output region of tdm 11/252611/1 accepted/tizen/6.0/unified/20210201.033848 submit/tizen_6.0/20210130.024845
authorSeunghun Lee <shiin.lee@samsung.com>
Sat, 30 Jan 2021 01:33:10 +0000 (10:33 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Sat, 30 Jan 2021 02:08:26 +0000 (02:08 +0000)
commitd60f46bc79f6e15fc05c50b9058f9abc8ab969bd
tree1a20570252db1d69128b2103ce8c1194c9bbb3d0
parent0e2cec565565cbd7bd1cfebbf8e28db62cae3b94
video: Fix double cropping source/output region of tdm

Cropping an already cropped source/output region is an error.
So, this change makes updating tdm config happen once during render job.

So far this has been no problem since wl_client didn't try to set its
output region beyond the screen. However, once wl_client tried to do
that, the problem came out because of the double cropping.

More specifically, source region was a problem. source region was
cropped and updated once during applying viewport, but it was cropped
and updated again with already cropped source region during applying
map.

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