From test config lv_test_conf.h:
/*Use non power of 2 to avoid the case when `malloc` returns aligned pointer by default, and use a large value be sure any issues will cause crash*/
\#define LV_DRAW_BUF_ALIGN 852
We need to support non-power-of-2 draw buffer alignement.
Introduce LV_ROUND_UP in lv_math.h and use it instead.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
Should use lv_cubic_bezier from now on. A macro lv_bezier3 is proviced for backward compatibility but u0, u3 is limited to 0, 1024.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
10 bits is already enough for normally used ease functions(ease, ease-in, ease-out, ease-in-out).
14 bits provides more accuracy and requires additional shift operation.
>14bits provices more accuracy but requires 64bit calculation and additional shift operation.
Add normally used ease function in test.
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
* fix(color): move LV_UDIV255 to lv_math.h
since lv_math.h is better place for the computation function
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(color): replace the inifite loop with LV_ASSERT
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>