Skip to content
Snippets Groups Projects
Commit 5e1a9b53 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for sign error in consistency check

parent bd39904f
No related branches found
No related tags found
1 merge request!344Implements #360 Filter improvements
Pipeline #29540 passed
......@@ -234,14 +234,14 @@ __device__ inline float2 bilinChroma(const T* __restrict__ chroma, const T* __re
const ushort2 v1 = (valid) ? *(const ushort2*)(&luminance[gy*pitch+gx]) : make_ushort2(0,0);
const ushort2 v2 = (valid) ? *(const ushort2*)(&luminance[(gy+1)*pitch+gx]) : make_ushort2(0,0);
uchar4 L = make_uchar4(
short4 L = make_short4(
round8(v1.x),
round8(v1.y),
round8(v2.x),
round8(v2.y)
);
lum_s[y][x] = L;
lum_s[y][x] = make_uchar4(L.x,L.y,L.z,L.w);
chroma_s[y][x] = (valid) ? readChroma(chroma, pitch, gx, gy) : make_ushort2(0,0);
bool consistent = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment