Skip to content

Commit

Permalink
Remove RenderScript compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HokoFly committed Oct 16, 2023
1 parent 28d57c3 commit 4b82198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hoko-blur/src/main/rs/BoxBlur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions hoko-blur/src/main/rs/StackBlur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4b82198

Please sign in to comment.