From 5aff4b028f3a761811b2a4a507dca60473173808 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 28 Apr 2021 23:47:25 -0700 Subject: yuv_utils: fix rmdXFixesPointerToYuv() UV bug fixes bug introduced by typo in 5322492387de bug manifested as pointer region's colors being off --- src/rmd_yuv_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rmd_yuv_utils.c b/src/rmd_yuv_utils.c index 7deef4e..ec1b884 100644 --- a/src/rmd_yuv_utils.c +++ b/src/rmd_yuv_utils.c @@ -506,7 +506,7 @@ void rmdXFixesPointerToYuv( yuv_buffer *yuv, * avg3) / UCHAR_MAX; yuv->v[idx]= - (yuv->u[idx] * (UCHAR_MAX - avg3) + + (yuv->v[idx] * (UCHAR_MAX - avg3) + ((UbVr[avg2] + Vg[avg1] + Vb[avg0]) % (UCHAR_MAX + 1)) * avg3) / UCHAR_MAX; } -- cgit v1.2.3