openjp2-ctypes 0.7.0

C-ABI mirror types shared by the openjp2 core and the openjp2-capi crate.
Documentation
  • Coverage
  • 37.78%
    85 out of 225 items documented0 out of 19 items with examples
  • Size
  • Source code size: 21.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Neopallium/openjp2
    6 8 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Neopallium

openjp2-ctypes

C-ABI mirror types and constants for the openjp2 crates.

This crate exists so the openjp2 core and the openjp2-capi shim share one definition of the types that appear at the C boundary:

  • opj_*_t structs (image/component parameters, codestream info, codec parameters, stream parameters) — ctypes/src/lib.rs
  • the openjpeg.h constants and enums — ctypes/src/consts.rs

The core itself is C-name-free: it uses these types only behind the deliberate ColorSpace/ProgressionOrder conversion impls and the C-shaped low-level parameter structs, never in its public signatures. openjp2-capi uses them directly to implement the #[no_mangle] ABI. Nothing else should need this crate.

License

BSD-2-Clause, like the rest of the project.