fast_transpose

Crates.iofast_transpose
lib.rsfast_transpose
version0.2.5
created_at2024-11-17 18:19:22.717189+00
updated_at2025-05-27 07:40:06.358731+00
descriptionFast image and matrix transpose
homepagehttps://github.com/awxkee/fast_transpose
repositoryhttps://github.com/awxkee/fast_transpose
max_upload_size
id1451444
size415,990
Radzivon Bartoshyk (awxkee)

documentation

https://github.com/awxkee/fast_transpose

README

Fast image transpose

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

Supports:

  • Flipping ( Horizontal Mirror )
  • Flopping ( Vertical Mirror )
  • Transposing ( Rotate by 90 )
  • Rotate by 180
  • Rotate by 270

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.

Commit count: 60

cargo fmt