diff --git a/compute/ravu-zoom-ar-r2-rgb.hook b/compute/ravu-zoom-ar-r2-rgb.hook index 448de74..5372e40 100644 --- a/compute/ravu-zoom-ar-r2-rgb.hook +++ b/compute/ravu-zoom-ar-r2-rgb.hook @@ -29,7 +29,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 1; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 2; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 2; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-ar-r2-yuv.hook b/compute/ravu-zoom-ar-r2-yuv.hook index 6297a9e..38571e5 100644 --- a/compute/ravu-zoom-ar-r2-yuv.hook +++ b/compute/ravu-zoom-ar-r2-yuv.hook @@ -28,7 +28,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 1; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 2; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 2; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-ar-r2.hook b/compute/ravu-zoom-ar-r2.hook index 0b3c63e..d5bf7be 100644 --- a/compute/ravu-zoom-ar-r2.hook +++ b/compute/ravu-zoom-ar-r2.hook @@ -28,7 +28,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 1; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 2; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 2; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-ar-r3-rgb.hook b/compute/ravu-zoom-ar-r3-rgb.hook index cd8da27..d0af9ad 100644 --- a/compute/ravu-zoom-ar-r3-rgb.hook +++ b/compute/ravu-zoom-ar-r3-rgb.hook @@ -29,7 +29,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 2; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 3; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 3; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-ar-r3-yuv.hook b/compute/ravu-zoom-ar-r3-yuv.hook index 51f6855..7929d74 100644 --- a/compute/ravu-zoom-ar-r3-yuv.hook +++ b/compute/ravu-zoom-ar-r3-yuv.hook @@ -28,7 +28,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 2; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 3; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 3; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-ar-r3.hook b/compute/ravu-zoom-ar-r3.hook index 4ea9188..4e631ea 100644 --- a/compute/ravu-zoom-ar-r3.hook +++ b/compute/ravu-zoom-ar-r3.hook @@ -28,7 +28,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 2; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 3; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 3; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-r2-rgb.hook b/compute/ravu-zoom-r2-rgb.hook index 8265425..b57d355 100644 --- a/compute/ravu-zoom-r2-rgb.hook +++ b/compute/ravu-zoom-r2-rgb.hook @@ -28,7 +28,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 1; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 2; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 2; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-r2-yuv.hook b/compute/ravu-zoom-r2-yuv.hook index 0196bab..e6e35ec 100644 --- a/compute/ravu-zoom-r2-yuv.hook +++ b/compute/ravu-zoom-r2-yuv.hook @@ -27,7 +27,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 1; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 2; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 2; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-r2.hook b/compute/ravu-zoom-r2.hook index 15c0ea1..5755b99 100644 --- a/compute/ravu-zoom-r2.hook +++ b/compute/ravu-zoom-r2.hook @@ -27,7 +27,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 1; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 2; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 2; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-r3-rgb.hook b/compute/ravu-zoom-r3-rgb.hook index 296fdbd..293e1a8 100644 --- a/compute/ravu-zoom-r3-rgb.hook +++ b/compute/ravu-zoom-r3-rgb.hook @@ -28,7 +28,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 2; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 3; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 3; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-r3-yuv.hook b/compute/ravu-zoom-r3-yuv.hook index 2c83adb..9fd6a6c 100644 --- a/compute/ravu-zoom-r3-yuv.hook +++ b/compute/ravu-zoom-r3-yuv.hook @@ -27,7 +27,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 2; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 3; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 3; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x; diff --git a/compute/ravu-zoom-r3.hook b/compute/ravu-zoom-r3.hook index 64ee636..32f8d1e 100644 --- a/compute/ravu-zoom-r3.hook +++ b/compute/ravu-zoom-r3.hook @@ -27,7 +27,7 @@ void hook() { ivec2 group_begin = ivec2(gl_WorkGroupID) * ivec2(gl_WorkGroupSize); ivec2 group_end = group_begin + ivec2(gl_WorkGroupSize) - ivec2(1); ivec2 rectl = ivec2(floor(HOOKED_size * HOOKED_map(group_begin) - 0.5)) - 2; -ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.5)) + 3; +ivec2 rectr = ivec2(floor(HOOKED_size * HOOKED_map(group_end) - 0.4999)) + 3; ivec2 rect = rectr - rectl + 1; for (int id = int(gl_LocalInvocationIndex); id < rect.x * rect.y; id += int(gl_WorkGroupSize.x * gl_WorkGroupSize.y)) { int y = id / rect.x, x = id % rect.x;