Cargo Features
[dependencies]
mozjpeg-sys = { version = "2.2.4-beta.1", default-features = false, features = ["parallel", "with_simd", "nasm_simd", "unwinding", "arith_dec", "arith_enc", "icc_io", "turbojpeg_api", "jpegtran", "jpeg70_abi", "jpeg80_abi", "nasm_simd_parallel_build"] }
- default = nasm_simd, parallel, unwinding
-
If compiling for non-Intel platforms and
nasmcauses you grief, disable default features and usewith_simdinstead. - parallel build default nasm_simd_parallel_build?
-
May compile native dependencies quicker
- with_simd nasm_simd
-
Use SIMD-optimized assembly on ARM and other non-Intel platforms.
- nasm_simd build default nasm_simd_parallel_build? = with_simd
-
nasmis required for x86, but not ARMEnables nasm-rs
Affects
mozjpeg-sys::DCTELEM… - unwinding default
-
Allow libjpeg error handlers to panic
- arith_dec jpeg70_abi?
-
Enable reading of JPEGs using arithmetic coding (these are rare)
- arith_enc jpeg70_abi?
-
Enable creation of JPEGs using arithmetic coding (problematic compatibility)
- icc_io
-
Helper functions for extracting/embedding ICC profiles
Affects
mozjpeg-sys::jpeg_read_icc_profile,mozjpeg-sys::jpeg_write_icc_profile… - turbojpeg_api = jpegtran
-
Enable alternative simpler C API
- jpegtran turbojpeg_api?
-
Include code for
jpegtran - jpeg70_abi jpeg80_abi? = arith_dec, arith_enc
-
Try to be binary-compatible with libjpeg v7 fork
Affects
mozjpeg-sys::JPEG_LIB_VERSION,mozjpeg-sys::jpeg_compress_struct.do_fancy_downsampling,mozjpeg-sys::jpeg_calc_jpeg_dimensions… - jpeg80_abi = jpeg70_abi
-
Try to be binary-compatible with libjpeg v8 fork
Affects
mozjpeg-sys::JPEG_LIB_VERSION,mozjpeg-sys::jpeg_core_output_dimensions… - nasm_simd_parallel_build = nasm_simd, parallel
-
Obsolete. Just use
nasm_simd,parallel