sw_engine common: improving the alpha blending algorithm
authorMira Grudzinska <67589014+mgrudzinska@users.noreply.github.com>
Wed, 2 Jun 2021 12:01:12 +0000 (14:01 +0200)
committerHermet Park <chuneon.park@samsung.com>
Mon, 7 Jun 2021 03:21:54 +0000 (12:21 +0900)
commit9d50a03f8af6f51a010dc4143f0e4f308958dd09
tree730227367b522afe6690ead371c713e2e1ad684e
parent22753e1baf33ad8c1e0e760abe91f87ab8450129
sw_engine common: improving the alpha blending algorithm

Calculations accuracy in ALPHA_BLEND function has been
improved. Until now blending resulted in a slight hue change
(all color channels affected). The chosen method of calculation
is a compromise between the accuracy and the performance.

Change-Id: Ic4dad4c73ab74b6071b69c32f34394474ade6e5a
src/lib/sw_engine/tvgSwCommon.h