Skip to content
Snippets Groups Projects
Commit 5a9d7a07 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Now fix the builds that use graphics. :D

parent f7ac8c7a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4219 passed
...@@ -47,9 +47,9 @@ static uint32_t pixel_diff(uint32_t x, uint32_t y) ...@@ -47,9 +47,9 @@ static uint32_t pixel_diff(uint32_t x, uint32_t y)
#define VMASK 0x0000ff #define VMASK 0x0000ff
#define ABSDIFF(a,b) (abs((int)(a)-(int)(b))) #define ABSDIFF(a,b) (abs((int)(a)-(int)(b)))
uint32_t yuv1 = r2yptr[x & 0xffffff]; uint32_t yuv1 = ciolib_r2yptr[x & 0xffffff];
uint32_t yuv2 = r2yptr[y & 0xffffff]; uint32_t yuv2 = ciolib_r2yptr[y & 0xffffff];
return (ABSDIFF(yuv1 & YMASK, yuv2 & YMASK) >> 16) + return (ABSDIFF(yuv1 & YMASK, yuv2 & YMASK) >> 16) +
(ABSDIFF(yuv1 & UMASK, yuv2 & UMASK) >> 8) + (ABSDIFF(yuv1 & UMASK, yuv2 & UMASK) >> 8) +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment