File: README.md

package info (click to toggle)
rust-jpegxl-sys 0.11.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 424 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# jpegxl-sys

`jpegxl-sys` is a wrapper over `libjxl` library. Check out the original library [here](https://github.com/libjxl/libjxl).

## Building

If you wish to specify a custom library path, set the `DEP_JXL_LIB` environment variable.

Building `libjxl` and statically linking can be enabled by using the `vendored` feature.

## Usage

Check out testing units in `src/lib.rs` for some examples.

### Multi-thread

Because `libjxl_threads` uses `std::thread`, if you build and statically link `libjxl`, you need to
dynamically link to `libc++` or `libstdc++`.

Using dynamic library doesn't need this requirement.