[package]
edition = "2024"
rust-version = "1.85"
name = "iqa"
version = "0.1.3"
build = "build.rs"
links = "iqa_native"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A single, ergonomic API over the patchwork of visual quality assessment metrics in the Rust ecosystem."
documentation = "https://docs.rs/iqa"
readme = "README.md"
keywords = [
"iqa",
"image-quality",
"ssim",
"psnr",
"metrics",
]
categories = [
"multimedia::images",
"computer-vision",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/justin13888/iqa-rs"
[package.metadata.docs.rs]
features = [
"psnr",
"ssim",
"dssim",
"ms-ssim",
"psnr-hvs-m",
"ssimulacra2",
"butteraugli",
"vendored-lcms2",
]
[features]
butteraugli = ["dep:cc"]
default = [
"psnr",
"ssim",
"dssim",
"ms-ssim",
"psnr-hvs-m",
"ssimulacra2",
"butteraugli",
"vendored-lcms2",
]
dssim = ["ssim"]
ms-ssim = ["ssim"]
psnr = []
psnr-hvs-m = []
ssim = []
ssimulacra2 = ["dep:cc"]
system-lcms2 = ["dep:pkg-config"]
vendored-lcms2 = []
[lib]
name = "iqa"
path = "src/lib.rs"
[[example]]
name = "compare"
path = "examples/compare.rs"
required-features = [
"psnr",
"ssim",
"dssim",
"ssimulacra2",
"butteraugli",
]
[[test]]
name = "butteraugli"
path = "tests/butteraugli.rs"
[[test]]
name = "butteraugli_reference"
path = "tests/butteraugli_reference.rs"
[[test]]
name = "dssim"
path = "tests/dssim.rs"
[[test]]
name = "ms_ssim"
path = "tests/ms_ssim.rs"
[[test]]
name = "ms_ssim_reference"
path = "tests/ms_ssim_reference.rs"
[[test]]
name = "properties"
path = "tests/properties.rs"
[[test]]
name = "psnr"
path = "tests/psnr.rs"
[[test]]
name = "psnr_hvs_m"
path = "tests/psnr_hvs_m.rs"
[[test]]
name = "psnr_hvs_m_reference"
path = "tests/psnr_hvs_m_reference.rs"
[[test]]
name = "ssim"
path = "tests/ssim.rs"
[[test]]
name = "ssimulacra2"
path = "tests/ssimulacra2.rs"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tracing]
version = "0.1.44"
[dev-dependencies.image]
version = "0.25"
features = [
"png",
"jpeg",
"pnm",
]
default-features = false
[build-dependencies.cc]
version = "1"
optional = true
[build-dependencies.pkg-config]
version = "0.3"
optional = true