#hdr #image #encoding #libultrahdr

sys libultrahdr-sys

A Rust interface to libultrahdr

3 releases

0.1.2 Jan 25, 2025
0.1.1 Jan 25, 2025
0.1.0 Jan 23, 2025

#897 in Images

Download history 212/week @ 2025-01-19 179/week @ 2025-01-26 39/week @ 2025-02-02

430 downloads per month
Used in libultrahdr-rs

Apache-2.0

7KB
67 lines

libultrahdr-sys

A rust bindgen crate for Google's libultrahdr.

Building with installed libraries

Since libultrahdr depends on libjpeg,

  • On *nix systems, pkg-config will be used to find libjpeg-turbo.
  • On windows systems, vcpkg will be used to find libjpeg-turbo.

You need to manually compile and install libultrahdr per its instruction. After that, either use pkg-config use automatically find libultrahdr, or

set environment variables to skip pkg-config search.

UHDR_LIB_PATH=/path/to/lib
UHDR_HEADER=/path/to/uhdr_api.h
UHDR_STATIC=1

Building from source

Not implemented yet. PRs welcome!

Dependencies

~0–2MB
~38K SLoC