[package]
edition = "2021"
rust-version = "1.96"
name = "j2k-cuda"
version = "0.7.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CUDA adapter for resident HTJ2K decode/encode and shared JPEG 2000 stages"
readme = "README.md"
keywords = [
"jpeg",
"jpeg2000",
"htj2k",
"gpu",
"transcode",
]
categories = [
"multimedia::images",
"multimedia::encoding",
"compression",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/frames-sg/j2k"
[package.metadata.docs.rs]
all-features = true
targets = []
[features]
cuda-profiling = [
"cuda-runtime",
"j2k-cuda-runtime/cuda-profiling",
]
cuda-runtime = [
"dep:j2k-cuda-runtime",
"j2k-cuda-runtime/cuda-oxide-copy-u8",
"j2k-cuda-runtime/cuda-oxide-j2k-encode",
"j2k-cuda-runtime/cuda-oxide-j2k-decode-store",
"j2k-cuda-runtime/cuda-oxide-j2k-classic-decode",
"j2k-cuda-runtime/cuda-oxide-j2k-dequantize",
"j2k-cuda-runtime/cuda-oxide-j2k-idwt",
"j2k-cuda-runtime/cuda-oxide-htj2k-decode",
"j2k-cuda-runtime/cuda-oxide-htj2k-encode",
]
default = []
[lib]
name = "j2k_cuda"
path = "src/lib.rs"
[[example]]
name = "htj2k_decode_profile"
path = "examples/htj2k_decode_profile.rs"
[[test]]
name = "bench_harness"
path = "tests/bench_harness.rs"
[[test]]
name = "classic_tier1_parity"
path = "tests/classic_tier1_parity.rs"
[[test]]
name = "encode_stage_api"
path = "tests/encode_stage_api.rs"
[[test]]
name = "host_surface"
path = "tests/host_surface.rs"
[[test]]
name = "htj2k_cuda_kernels"
path = "tests/htj2k_cuda_kernels.rs"
[[test]]
name = "htj2k_encode_parity"
path = "tests/htj2k_encode_parity.rs"
[[bench]]
name = "encode_stages"
path = "benches/encode_stages.rs"
test = false
harness = false
[[bench]]
name = "htj2k_decode"
path = "benches/htj2k_decode.rs"
test = false
harness = false
[[bench]]
name = "htj2k_encode"
path = "benches/htj2k_encode.rs"
test = false
harness = false
required-features = ["cuda-runtime"]
[dependencies.j2k]
version = "=0.7.2"
[dependencies.j2k-core]
version = "=0.7.2"
[dependencies.j2k-cuda-runtime]
version = "=0.7.2"
optional = true
[dependencies.j2k-native]
version = "=0.7.2"
[dependencies.j2k-profile]
version = "=0.7.2"
[dependencies.thiserror]
version = "2"
default-features = false
[dev-dependencies.criterion]
version = "0.8"
default-features = false
[lints.clippy]
missing_errors_doc = "allow"
must_use_candidate = "allow"
undocumented_unsafe_blocks = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unreachable_pub = "warn"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "deny"