diff --git a/hoko-blur/src/main/rs/BoxBlur.rs b/hoko-blur/src/main/rs/BoxBlur.rs index 9f4510b..1958fd1 100644 --- a/hoko-blur/src/main/rs/BoxBlur.rs +++ b/hoko-blur/src/main/rs/BoxBlur.rs @@ -11,7 +11,7 @@ int height; int radius; -void __attribute__((kernel)) boxblur_h(uchar4 in, uint32_t x, uint32_t y) { +void __attribute__((kernel)) boxblur_h(uchar4 in, int32_t x, int32_t y) { float4 sum = 0; uchar4 result; @@ -37,7 +37,7 @@ void __attribute__((kernel)) boxblur_h(uchar4 in, uint32_t x, uint32_t y) { } -void __attribute__((kernel)) boxblur_v(uchar4 in, uint32_t x, uint32_t y) { +void __attribute__((kernel)) boxblur_v(uchar4 in, int32_t x, int32_t y) { float4 sum = 0; uchar4 result; diff --git a/hoko-blur/src/main/rs/StackBlur.rs b/hoko-blur/src/main/rs/StackBlur.rs index 133d5b0..dfc1fa5 100644 --- a/hoko-blur/src/main/rs/StackBlur.rs +++ b/hoko-blur/src/main/rs/StackBlur.rs @@ -13,7 +13,7 @@ int height; int radius; -void __attribute__((kernel)) stackblur_h(uchar4 in, uint32_t x, uint32_t y) { +void __attribute__((kernel)) stackblur_h(uchar4 in, int32_t x, int32_t y) { float4 sum = 0; uchar4 result; @@ -40,7 +40,7 @@ void __attribute__((kernel)) stackblur_h(uchar4 in, uint32_t x, uint32_t y) { } -void __attribute__((kernel)) stackblur_v(uchar4 in, uint32_t x, uint32_t y) { +void __attribute__((kernel)) stackblur_v(uchar4 in, int32_t x, int32_t y) { float4 sum = 0; uchar4 result;