#data #array #multi-dimensional #row-major

fast_transpose

Fast image and matrix transpose

1 unstable release

0.1.0 Nov 17, 2024

#524 in Images

Download history 38/week @ 2024-11-11 87/week @ 2024-11-18 13/week @ 2024-11-25 8/week @ 2024-12-02 53/week @ 2024-12-09

199 downloads per month
Used in libblur

BSD-3-Clause OR Apache-2.0

56KB
923 lines

Fast image transpose

Fast and simple image rotating in Rust with flipping and flopping in-place.

Adding to project

cargo add fast_transpose

Transpose RGB image

transpose_rgb(
    &img,
    &mut transposed,
    dimensions.0 as usize,
    dimensions.1 as usize,
    FlipMode::NoFlip,
    FlopMode::NoFlop,
)
.unwrap();

Features

Turning off unsafe feature will activate forbid unsafe mode.

This project is licensed under either of

  • BSD-3-Clause License (see LICENSE)
  • Apache License, Version 2.0 (see LICENSE)

at your option.

Dependencies

~145KB