sw_engine texmap: introduced texture mapping polygon drawing.
authorHermet Park <chuneon.park@samsung.com>
Thu, 18 Nov 2021 02:03:29 +0000 (11:03 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 25 Nov 2021 08:56:39 +0000 (17:56 +0900)
commitc0823d62c90ecdda511e69cf5fd8f976be123b52
tree0f6e3323e05606df5851d80b7f639ea7d8d643bc
parent384db0d29eec5922cdae491a30c0a45e0f3b1d73
sw_engine texmap: introduced texture mapping polygon drawing.

Introduced the texture-mapping algorithm for the image-scaler.
With this approach, we can support any arbitrary forms of the transformed shapes
while appling the scale factors - x/y separately.

Also this is more efficient when the transformed image is far from the rectangular form
because our current normal image rasterizer based on the given drawing region whereas
our new approach is span-based.

Thus, we applied this mechanism only for the transformed images.
src/lib/sw_engine/meson.build
src/lib/sw_engine/tvgSwRaster.cpp
src/lib/sw_engine/tvgSwRasterTexmap.h [new file with mode: 0644]