summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-04-28 23:47:25 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-04-28 23:47:25 -0700
commit5aff4b028f3a761811b2a4a507dca60473173808 (patch)
treec589369989735e555ba2c9684b71fad5df2cc275 /src
parent3812a302cefcccbeb9bc46ed5c55710eb4c0512e (diff)
yuv_utils: fix rmdXFixesPointerToYuv() UV bug
fixes bug introduced by typo in 5322492387de bug manifested as pointer region's colors being off
Diffstat (limited to 'src')
-rw-r--r--src/rmd_yuv_utils.c2
1 files changed, 1 insertions, 1 deletions
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;
}
© All Rights Reserved