#image-processing #image-encoding #image #codec #color-space #bit #depth

no-std zune-core

Core utilities for image processing in the zune family of crates

12 releases

0.5.0-rc2 Jul 21, 2024
0.5.0-rc0 Apr 7, 2024
0.4.12 Jan 15, 2024
0.4.11 Dec 2, 2023
0.2.12 Mar 29, 2023

#253 in Images

Download history 107150/week @ 2024-07-21 129410/week @ 2024-07-28 122597/week @ 2024-08-04 154149/week @ 2024-08-11 169432/week @ 2024-08-18 122327/week @ 2024-08-25 124976/week @ 2024-09-01 130974/week @ 2024-09-08 133586/week @ 2024-09-15 147821/week @ 2024-09-22 143596/week @ 2024-09-29 153311/week @ 2024-10-06 152479/week @ 2024-10-13 163267/week @ 2024-10-20 169958/week @ 2024-10-27 187192/week @ 2024-11-03

682,375 downloads per month
Used in 278 crates (19 directly)

MIT OR Apache-2.0 OR Zlib

94KB
1.5K SLoC

Zune core

Core primitives necessary for image manipulations

This crate contains small set of primitives necessary for image manipulations which are shared among most zune- family of decoders and encoders.

Items present

Currently,it contains.

  • Colorspace definitions
  • Bit depth definitions.
  • Decoder and encoder options

lib.rs:

Core routines shared by all libraries

This crate provides a set of core routines shared by the decoders and encoders under zune umbrella

It currently contains

  • A bytestream reader and writer with endian aware reads and writes
  • Colorspace and bit depth information shared by images
  • Image decoder and encoder options
  • A simple enum type to hold image decoding results.

This library is #[no_std] with alloc feature needed for defining Vec which we need for storing decoded bytes.

Features

  • no_std: Enables #[no_std] compilation support.

  • serde: Enables serializing of some of the data structures present in the crate

Input/Output

zune-image supports many different input and output devices. For input readers we can read anything that implements BufRead + Seek and provide an optimized routine for handling in memory buffers by using ZCursor.

For output, we support anything that implements Write trait, this includes files, standard io streams network sockets, etc

In a no_std environment. We can write to in memory buffers &mut [u8] and &mut Vec<u8>

If you have an in memory buffer, use ZCursor, it's optimized for in memory buffers.

Dependencies

~190KB