Skip to content

Commit

Permalink
extract index in variable to make code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
torfmaster committed Aug 20, 2024
1 parent 242b383 commit fa64780
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/imageops/fast_blur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ fn horizontal_fast_blur_half<P: Primitive>(

let destination_row = column;
let destination_column = row;
out_samples[channel_idx(
let destination_sample_index = channel_idx(
channel,
destination_column + destination_row * height,
channel_num,
)] = val;
);
out_samples[destination_sample_index] = val;
vals[channel] = vals[channel]
- extended_f(
samples,
Expand Down

0 comments on commit fa64780

Please sign in to comment.