Skip to content

Commit

Permalink
Merge pull request #39 from octu0/v1.20.1
Browse files Browse the repository at this point in the history
v1.20.1
  • Loading branch information
octu0 authored Jul 12, 2022
2 parents f29497f + 9080c31 commit f8ab340
Show file tree
Hide file tree
Showing 155 changed files with 240 additions and 222 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ BenchmarkJIT/rotate90 : 0.02599ms
BenchmarkJIT/rotate180 : 0.00802ms
BenchmarkJIT/rotate270 : 0.02582ms
BenchmarkJIT/crop : 0.06126ms
BenchmarkJIT/scale : 0.14009ms
BenchmarkJIT/scale : 0.13889ms
BenchmarkJIT/scale_box : 0.20598ms
BenchmarkJIT/scale_linear : 0.20440ms
BenchmarkJIT/scale_gaussian : 0.31444ms
Expand Down Expand Up @@ -621,7 +621,7 @@ ycbcr, err := blurry.ConvertToYUV444(rgba)
| 420 | `blurry.ConvertToYUV420(*image.RGBA)` |
| 444 | `blurry.ConvertToYUV444(*image.RGBA)` |

#### PCM16 Decibel
### PCM16 Decibel

Gets the decibel of given PCM16.

Expand Down Expand Up @@ -662,7 +662,7 @@ USAGE:
blurry [global options] command [command options] [arguments...]
VERSION:
1.19.0
1.20.1
COMMANDS:
blend
Expand Down Expand Up @@ -691,6 +691,7 @@ COMMANDS:
laplacian
morphology
match_template
pcm16
rotate
scale
sobel
Expand Down
45 changes: 27 additions & 18 deletions blurry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ Func scale(
Var ti("ti");

Region src_bounds = {{0, width},{0, height},{0, 4}};
Func in = readFloat(BoundaryConditions::constant_exterior(input, 0, src_bounds), "in");
Func in = BoundaryConditions::constant_exterior(readFloat(input, "in"), 0, src_bounds);

Expr dx = cast<float>(width) / cast<float>(scale_width);
Expr dy = cast<float>(height) / cast<float>(scale_height);
Expand All @@ -1220,23 +1220,28 @@ Func scale(
scale(x, y, ch) = in(cast<int>((x + f05) * dx), cast<int>((y + f05) * dy), ch);

Func f = Func("scale");
Expr value = select(
f(x, y, ch) = cast<uint8_t>(select(
ch < 3, scale(x, y, ch),
likely(float_255)
);
f(x, y, ch) = cast<uint8_t>(value);

scale.compute_at(f, ti)
.parallel(ch)
.vectorize(y, 8)
.vectorize(x, 8);
));
f(x, y, 0) = cast<uint8_t>(scale(x, y, 0));
f(x, y, 1) = cast<uint8_t>(scale(x, y, 1));
f(x, y, 2) = cast<uint8_t>(scale(x, y, 2));
f(x, y, 3) = ui8_255;

f.compute_root()
scale.compute_root()
.parallel(y, 8)
.vectorize(x, 32);
f.compute_at(scale, ti)
.store_at(scale, ti)
.tile(x, y, xo, yo, xi, yi, 32, 32)
.fuse(xo, yo, ti)
.parallel(ch)
.parallel(ti)
.parallel(ti, 8)
.vectorize(xi, 32);
f.update(0).unscheduled();
f.update(1).unscheduled();
f.update(2).unscheduled();
f.update(3).unscheduled();
return f;
}

Expand Down Expand Up @@ -1853,21 +1858,25 @@ Func boxblur(Func input, Expr width, Expr height, Expr size) {

blur_x.compute_root()
.parallel(ch)
.vectorize(x, 32);
.vectorize(x, 64);
blur_y.compute_at(f, yi)
.store_at(f, yi)
.parallel(ch)
.vectorize(x, 32);
.vectorize(x);

f.compute_at(in, ti)
.tile(x, y, xo, yo, xi, yi, 32, 32)
.bound(ch, 0, 4).unroll(ch)
.bound(x, 0, width)
.bound(y, 0, height)
.store_root()
.tile(x, y, xo, yo, xi, yi, 64, 64)
.fuse(xo, yo, ti)
.parallel(ch)
.parallel(ti, 8)
.vectorize(xi, 32);
.vectorize(xi, 64);

in.compute_at(blur_x, y)
.parallel(ch)
.vectorize(x, 32);
.vectorize(x, 64);
return f;
}

Expand Down
8 changes: 4 additions & 4 deletions include/libblend_diff_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blend_diff_par_for_blend_diff_3_s0_ch_par_for_blend_diff_3_s0_x_xo_ti_ti__6(void *__user_context, int32_t _blend_diff__3_s0_x_xo_ti_ti, uint8_t *_closure_arg__118);
int blend_diff_par_for_blend_diff_s0_ch_par_for_blend_diff_s0_x_xo_ti_ti__2(void *__user_context, int32_t _blend_diff_s0_x_xo_ti_ti, uint8_t *_closure_arg__118);
HALIDE_FUNCTION_ATTRS
int blend_diff_par_for_blend_diff_3_s0_ch_par_for_blend_diff_3_s0_x_xo_ti_ti__7(void *__user_context, int32_t _blend_diff__3_s0_x_xo_ti_ti, uint8_t *_closure_arg__119);
int blend_diff_par_for_blend_diff_s0_ch_par_for_blend_diff_s0_x_xo_ti_ti__3(void *__user_context, int32_t _blend_diff_s0_x_xo_ti_ti, uint8_t *_closure_arg__119);
HALIDE_FUNCTION_ATTRS
int blend_diff_par_for_blend_diff_3_s0_ch__1(void *__user_context, int32_t _blend_diff__3_s0_ch, uint8_t *_closure_arg__117);
int blend_diff_par_for_blend_diff_s0_ch__1(void *__user_context, int32_t _blend_diff_s0_ch, uint8_t *_closure_arg__117);
HALIDE_FUNCTION_ATTRS
int blend_diff(struct halide_buffer_t *_src0_buffer, int32_t _width0, int32_t _height0, struct halide_buffer_t *_src1_buffer, int32_t _width1, int32_t _height1, int32_t _px, int32_t _py, struct halide_buffer_t *_blend_diff__3_buffer);
int blend_diff(struct halide_buffer_t *_src0_buffer, int32_t _width0, int32_t _height0, struct halide_buffer_t *_src1_buffer, int32_t _width1, int32_t _height1, int32_t _px, int32_t _py, struct halide_buffer_t *_blend_diff_buffer);

HALIDE_FUNCTION_ATTRS
int blend_diff_argv(void **args);
Expand Down
8 changes: 4 additions & 4 deletions include/libblend_diff_osx.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blend_diff_par_for_blend_diff_3_s0_ch_par_for_blend_diff_3_s0_x_xo_ti_ti__4(void *__user_context, int32_t _blend_diff__3_s0_x_xo_ti_ti, uint8_t *_closure_arg__115);
int blend_diff_par_for_blend_diff_s0_ch_par_for_blend_diff_s0_x_xo_ti_ti(void *__user_context, int32_t _blend_diff_s0_x_xo_ti_ti, uint8_t *_closure_arg__115);
HALIDE_FUNCTION_ATTRS
int blend_diff_par_for_blend_diff_3_s0_ch_par_for_blend_diff_3_s0_x_xo_ti_ti__5(void *__user_context, int32_t _blend_diff__3_s0_x_xo_ti_ti, uint8_t *_closure_arg__116);
int blend_diff_par_for_blend_diff_s0_ch_par_for_blend_diff_s0_x_xo_ti_ti__1(void *__user_context, int32_t _blend_diff_s0_x_xo_ti_ti, uint8_t *_closure_arg__116);
HALIDE_FUNCTION_ATTRS
int blend_diff_par_for_blend_diff__3_s0_ch(void *__user_context, int32_t _blend_diff__3_s0_ch, uint8_t *_closure_arg__114);
int blend_diff_par_for_blend_diff_s0_ch(void *__user_context, int32_t _blend_diff_s0_ch, uint8_t *_closure_arg__114);
HALIDE_FUNCTION_ATTRS
int blend_diff(struct halide_buffer_t *_src0_buffer, int32_t _width0, int32_t _height0, struct halide_buffer_t *_src1_buffer, int32_t _width1, int32_t _height1, int32_t _px, int32_t _py, struct halide_buffer_t *_blend_diff__3_buffer);
int blend_diff(struct halide_buffer_t *_src0_buffer, int32_t _width0, int32_t _height0, struct halide_buffer_t *_src1_buffer, int32_t _width1, int32_t _height1, int32_t _px, int32_t _py, struct halide_buffer_t *_blend_diff_buffer);

HALIDE_FUNCTION_ATTRS
int blend_diff_argv(void **args);
Expand Down
4 changes: 2 additions & 2 deletions include/libblend_normal_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti__2(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__100);
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti__6(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__100);
HALIDE_FUNCTION_ATTRS
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti__3(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__101);
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti__7(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__101);
HALIDE_FUNCTION_ATTRS
int blend_normal_par_for_blend_normal_s0_ch__1(void *__user_context, int32_t _blend_normal_s0_ch, uint8_t *_closure_arg__99);
HALIDE_FUNCTION_ATTRS
Expand Down
4 changes: 2 additions & 2 deletions include/libblend_normal_osx.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__97);
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti__4(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__97);
HALIDE_FUNCTION_ATTRS
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti__1(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__98);
int blend_normal_par_for_blend_normal_s0_ch_par_for_blend_normal_s0_x_xo_ti_ti__5(void *__user_context, int32_t _blend_normal_s0_x_xo_ti_ti, uint8_t *_closure_arg__98);
HALIDE_FUNCTION_ATTRS
int blend_normal_par_for_blend_normal_s0_ch(void *__user_context, int32_t _blend_normal_s0_ch, uint8_t *_closure_arg__96);
HALIDE_FUNCTION_ATTRS
Expand Down
4 changes: 2 additions & 2 deletions include/libblend_sub_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti__6(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__106);
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti__2(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__106);
HALIDE_FUNCTION_ATTRS
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti__7(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__107);
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti__3(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__107);
HALIDE_FUNCTION_ATTRS
int blend_sub_par_for_blend_sub_s0_ch__1(void *__user_context, int32_t _blend_sub_s0_ch, uint8_t *_closure_arg__105);
HALIDE_FUNCTION_ATTRS
Expand Down
4 changes: 2 additions & 2 deletions include/libblend_sub_osx.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti__4(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__103);
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__103);
HALIDE_FUNCTION_ATTRS
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti__5(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__104);
int blend_sub_par_for_blend_sub_s0_ch_par_for_blend_sub_s0_x_xo_ti_ti__1(void *__user_context, int32_t _blend_sub_s0_x_xo_ti_ti, uint8_t *_closure_arg__104);
HALIDE_FUNCTION_ATTRS
int blend_sub_par_for_blend_sub_s0_ch(void *__user_context, int32_t _blend_sub_s0_ch, uint8_t *_closure_arg__102);
HALIDE_FUNCTION_ATTRS
Expand Down
10 changes: 5 additions & 5 deletions include/libblockmozaic_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_avg_color_s0_y_y__6(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__166);
int blockmozaic_par_for_avg_color_s0_y_y__2(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__170);
HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_avg_color_s0_y_y__7(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__167);
int blockmozaic_par_for_avg_color_s0_y_y__3(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__171);
HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_blockmozaic_1_s0_ch_par_for_blockmozaic_1_s0_x_xo_ti_ti__1(void *__user_context, int32_t _blockmozaic__1_s0_x_xo_ti_ti, uint8_t *_closure_arg__169);
int blockmozaic_par_for_blockmozaic_s0_ch_par_for_blockmozaic_s0_x_xo_ti_ti__1(void *__user_context, int32_t _blockmozaic_s0_x_xo_ti_ti, uint8_t *_closure_arg__173);
HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_blockmozaic_1_s0_ch__1(void *__user_context, int32_t _blockmozaic__1_s0_ch, uint8_t *_closure_arg__168);
int blockmozaic_par_for_blockmozaic_s0_ch__1(void *__user_context, int32_t _blockmozaic_s0_ch, uint8_t *_closure_arg__172);
HALIDE_FUNCTION_ATTRS
int blockmozaic(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, int32_t _block, struct halide_buffer_t *_blockmozaic__1_buffer);
int blockmozaic(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, int32_t _block, struct halide_buffer_t *_blockmozaic_buffer);

HALIDE_FUNCTION_ATTRS
int blockmozaic_argv(void **args);
Expand Down
10 changes: 5 additions & 5 deletions include/libblockmozaic_osx.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_avg_color_s0_y_y__4(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__162);
int blockmozaic_par_for_avg_color_s0_y_y(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__166);
HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_avg_color_s0_y_y__5(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__163);
int blockmozaic_par_for_avg_color_s0_y_y__1(void *__user_context, int32_t _avg_color_s0_y_y, uint8_t *_closure_arg__167);
HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_blockmozaic__1_s0_ch_par_for_blockmozaic__1_s0_x_xo_ti_ti(void *__user_context, int32_t _blockmozaic__1_s0_x_xo_ti_ti, uint8_t *_closure_arg__165);
int blockmozaic_par_for_blockmozaic_s0_ch_par_for_blockmozaic_s0_x_xo_ti_ti(void *__user_context, int32_t _blockmozaic_s0_x_xo_ti_ti, uint8_t *_closure_arg__169);
HALIDE_FUNCTION_ATTRS
int blockmozaic_par_for_blockmozaic__1_s0_ch(void *__user_context, int32_t _blockmozaic__1_s0_ch, uint8_t *_closure_arg__164);
int blockmozaic_par_for_blockmozaic_s0_ch(void *__user_context, int32_t _blockmozaic_s0_ch, uint8_t *_closure_arg__168);
HALIDE_FUNCTION_ATTRS
int blockmozaic(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, int32_t _block, struct halide_buffer_t *_blockmozaic__1_buffer);
int blockmozaic(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, int32_t _block, struct halide_buffer_t *_blockmozaic_buffer);

HALIDE_FUNCTION_ATTRS
int blockmozaic_argv(void **args);
Expand Down
10 changes: 7 additions & 3 deletions include/libboxblur_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int boxblur_par_for_blur_x_s0_ch__1(void *__user_context, int32_t _blur_x_s0_ch, uint8_t *_closure_arg__155);
int boxblur_par_for_blur_x_s0_ch__1(void *__user_context, int32_t _blur_x_s0_ch, uint8_t *_closure_arg__157);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_ch_par_for_boxblur_s0_x_xo_ti_ti__1(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__157);
int boxblur_par_for_boxblur_s0_x_xo_ti_ti__4(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__158);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_ch__1(void *__user_context, int32_t _boxblur_s0_ch, uint8_t *_closure_arg__156);
int boxblur_par_for_boxblur_s0_x_xo_ti_ti__5(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__159);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_x_xo_ti_ti__6(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__160);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_x_xo_ti_ti__7(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__161);
HALIDE_FUNCTION_ATTRS
int boxblur(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, uint8_t _size, struct halide_buffer_t *_boxblur_buffer);

Expand Down
8 changes: 6 additions & 2 deletions include/libboxblur_osx.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ extern "C" {
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_blur_x_s0_ch(void *__user_context, int32_t _blur_x_s0_ch, uint8_t *_closure_arg__152);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_ch_par_for_boxblur_s0_x_xo_ti_ti(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__154);
int boxblur_par_for_boxblur_s0_x_xo_ti_ti(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__153);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_ch(void *__user_context, int32_t _boxblur_s0_ch, uint8_t *_closure_arg__153);
int boxblur_par_for_boxblur_s0_x_xo_ti_ti__1(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__154);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_x_xo_ti_ti__2(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__155);
HALIDE_FUNCTION_ATTRS
int boxblur_par_for_boxblur_s0_x_xo_ti_ti__3(void *__user_context, int32_t _boxblur_s0_x_xo_ti_ti, uint8_t *_closure_arg__156);
HALIDE_FUNCTION_ATTRS
int boxblur(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, uint8_t _size, struct halide_buffer_t *_boxblur_buffer);

Expand Down
2 changes: 1 addition & 1 deletion include/libbrightness_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int brightness_par_for_in_22_s0_ch__1(void *__user_context, int32_t _in__22_s0_ch, uint8_t *_closure_arg__139);
int brightness_par_for_in_22_s0_ch__5(void *__user_context, int32_t _in__22_s0_ch, uint8_t *_closure_arg__139);
HALIDE_FUNCTION_ATTRS
int brightness_par_for_brightness_s0_ch_par_for_brightness_s0_x_xo_ti_ti__1(void *__user_context, int32_t _brightness_s0_x_xo_ti_ti, uint8_t *_closure_arg__141);
HALIDE_FUNCTION_ATTRS
Expand Down
2 changes: 1 addition & 1 deletion include/libbrightness_osx.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int brightness_par_for_in__22_s0_ch(void *__user_context, int32_t _in__22_s0_ch, uint8_t *_closure_arg__136);
int brightness_par_for_in_22_s0_ch__4(void *__user_context, int32_t _in__22_s0_ch, uint8_t *_closure_arg__136);
HALIDE_FUNCTION_ATTRS
int brightness_par_for_brightness_s0_ch_par_for_brightness_s0_x_xo_ti_ti(void *__user_context, int32_t _brightness_s0_x_xo_ti_ti, uint8_t *_closure_arg__138);
HALIDE_FUNCTION_ATTRS
Expand Down
4 changes: 2 additions & 2 deletions include/libcanny_dilate_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int canny_dilate_par_for_hysteresis_1_s0_x_xo_ti__1(void *__user_context, int32_t _hysteresis__1_s0_x_xo_ti, uint8_t *_closure_arg__258);
int canny_dilate_par_for_hysteresis_1_s0_x_xo_ti__1(void *__user_context, int32_t _hysteresis__1_s0_x_xo_ti, uint8_t *_closure_arg__262);
HALIDE_FUNCTION_ATTRS
int canny_dilate_par_for_canny_dilate_s0_ch__1(void *__user_context, int32_t _canny_dilate_s0_ch, uint8_t *_closure_arg__259);
int canny_dilate_par_for_canny_dilate_s0_ch__1(void *__user_context, int32_t _canny_dilate_s0_ch, uint8_t *_closure_arg__263);
HALIDE_FUNCTION_ATTRS
int canny_dilate(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, int32_t _threshold_max, int32_t _threshold_min, int32_t _dilate, struct halide_buffer_t *_canny_dilate_buffer);

Expand Down
4 changes: 2 additions & 2 deletions include/libcanny_dilate_osx.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int canny_dilate_par_for_hysteresis__1_s0_x_xo_ti(void *__user_context, int32_t _hysteresis__1_s0_x_xo_ti, uint8_t *_closure_arg__256);
int canny_dilate_par_for_hysteresis__1_s0_x_xo_ti(void *__user_context, int32_t _hysteresis__1_s0_x_xo_ti, uint8_t *_closure_arg__260);
HALIDE_FUNCTION_ATTRS
int canny_dilate_par_for_canny_dilate_s0_ch(void *__user_context, int32_t _canny_dilate_s0_ch, uint8_t *_closure_arg__257);
int canny_dilate_par_for_canny_dilate_s0_ch(void *__user_context, int32_t _canny_dilate_s0_ch, uint8_t *_closure_arg__261);
HALIDE_FUNCTION_ATTRS
int canny_dilate(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, int32_t _threshold_max, int32_t _threshold_min, int32_t _dilate, struct halide_buffer_t *_canny_dilate_buffer);

Expand Down
6 changes: 3 additions & 3 deletions include/libcanny_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int canny_par_for_in_39_s0_y_rebased__7(void *__user_context, int32_t _in__39_s0_y_rebased, uint8_t *_closure_arg__253);
int canny_par_for_in_39_s0_y_rebased__4(void *__user_context, int32_t _in__39_s0_y_rebased, uint8_t *_closure_arg__257);
HALIDE_FUNCTION_ATTRS
int canny_par_for_hysteresis_s0_x_xo_ti__1(void *__user_context, int32_t _hysteresis_s0_x_xo_ti, uint8_t *_closure_arg__254);
int canny_par_for_hysteresis_s0_x_xo_ti__1(void *__user_context, int32_t _hysteresis_s0_x_xo_ti, uint8_t *_closure_arg__258);
HALIDE_FUNCTION_ATTRS
int canny_par_for_canny_s0_ch__1(void *__user_context, int32_t _canny_s0_ch, uint8_t *_closure_arg__255);
int canny_par_for_canny_s0_ch__1(void *__user_context, int32_t _canny_s0_ch, uint8_t *_closure_arg__259);
HALIDE_FUNCTION_ATTRS
int canny(struct halide_buffer_t *_src_buffer, int32_t _width, int32_t _height, int32_t _threshold_max, int32_t _threshold_min, struct halide_buffer_t *_canny_buffer);

Expand Down
Loading

0 comments on commit f8ab340

Please sign in to comment.