Merge pull request #1778 from storytold/fix/rav1e-threading

Forward opt-in threading to rav1e encoder dependencies
This commit is contained in:
Dylan M. Taylor
2026-11-15 20:53:17 -05:00
committed by GitHub
3 changed files with 5 additions and 1 deletions
Generated
+2
View File
@@ -6148,6 +6148,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"
dependencies = [
"cfg-if",
"rayon",
]
[[package]]
@@ -7985,6 +7986,7 @@ dependencies = [
"loop9",
"quick-error 2.0.1",
"rav1e",
"rayon",
"rgb",
]
+2
View File
@@ -13,6 +13,8 @@ workspace = true
[features]
corpus = []
default = []
# Opt in to threaded AVIF encoding without enabling AVIF (or assembly) by itself.
threads = ["ravif?/threading", "rav1e?/threading"]
sgi = []
sunraster = []
avif = ["image/avif", "dep:ravif", "dep:rav1e", "dep:avif-serialize"]
+1 -1
View File
@@ -57,7 +57,7 @@ av1-encode = ["craft-media/isobmff"]
# Tiled AV1 fallback for frames that exceed the clean-room encoder's single-tile limits.
av1-large-encode = ["av1-encode", "dep:rav1e"]
# Decode and encode across worker threads (rayon) in the codecs that support it.
threads = ["dep:rayon"]
threads = ["dep:rayon", "rav1e?/threading"]
[dependencies]
craft-media = { workspace = true }