Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Pin wasm-compatible heic decoder

laurenspriem5b4e41ac5294
diff --git a/mobile/apps/photos/rust/Cargo.lock b/mobile/apps/photos/rust/Cargo.lock
index 37b779891d..1a6c5078d5 100644
--- a/mobile/apps/photos/rust/Cargo.lock
+++ b/mobile/apps/photos/rust/Cargo.lock
@@ -215,6 +215,19 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
+[[package]]
+name = "av-data"
+version = "0.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fca67ba5d317924c02180c576157afd54babe48a76ebc66ce6d34bb8ba08308e"
+dependencies = [
+ "byte-slice-cast",
+ "bytes",
+ "num-derive",
+ "num-rational",
+ "num-traits",
+]
+
[[package]]
name = "av-scenechange"
version = "0.14.1"
@@ -357,6 +370,12 @@ version = "3.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
+[[package]]
+name = "byte-slice-cast"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7575182f7272186991736b70173b0ea045398f984bf5ebbb3804736ce1330c9d"
+
[[package]]
name = "bytemuck"
version = "1.24.0"
@@ -1137,7 +1156,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "heic_decoder"
version = "0.1.0"
-source = "git+https://github.com/ente-io/heic-decoder.git?rev=53303b2936ec19467c61cf75f77e30b399c10445#53303b2936ec19467c61cf75f77e30b399c10445"
+source = "git+https://github.com/ente-io/heic-decoder.git?rev=d47a0f9c9e8c4c9e166c5a4b5734f8ad1f88f7a7#d47a0f9c9e8c4c9e166c5a4b5734f8ad1f88f7a7"
dependencies = [
"archmage",
"brotli",
@@ -2389,10 +2408,11 @@ dependencies = [
[[package]]
name = "rav1d"
version = "1.1.0"
-source = "git+https://github.com/ente-io/rav1d.git?branch=1.1.0_arm32_stable#05db46f1046b43a14019f31d51f74513a15cd2d0"
+source = "git+https://github.com/ente-io/rav1d.git?branch=arm32_stable#d8205d5e5c7aa0265956e660fae2c005b3b3ad9b"
dependencies = [
"assert_matches",
"atomig",
+ "av-data",
"bitflags",
"cc",
"cfg-if",
@@ -2401,6 +2421,7 @@ dependencies = [
"parking_lot",
"paste",
"raw-cpuid",
+ "static_assertions",
"strum",
"to_method",
"zerocopy 0.7.35",
@@ -2733,6 +2754,12 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
[[package]]
name = "strsim"
version = "0.11.1"
@@ -2741,23 +2768,22 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "strum"
-version = "0.26.3"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
+checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf"
dependencies = [
"strum_macros",
]
[[package]]
name = "strum_macros"
-version = "0.26.4"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
+checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7"
dependencies = [
"heck",
"proc-macro2",
"quote",
- "rustversion",
"syn",
]
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 4350dca1f8..04ce5c16ab 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -174,6 +174,19 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
+[[package]]
+name = "av-data"
+version = "0.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fca67ba5d317924c02180c576157afd54babe48a76ebc66ce6d34bb8ba08308e"
+dependencies = [
+ "byte-slice-cast",
+ "bytes",
+ "num-derive",
+ "num-rational",
+ "num-traits",
+]
+
[[package]]
name = "av-scenechange"
version = "0.14.1"
@@ -280,6 +293,12 @@ version = "3.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
+[[package]]
+name = "byte-slice-cast"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7575182f7272186991736b70173b0ea045398f984bf5ebbb3804736ce1330c9d"
+
[[package]]
name = "bytemuck"
version = "1.25.0"
@@ -624,7 +643,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "heic_decoder"
version = "0.1.0"
-source = "git+https://github.com/ente-io/heic-decoder.git?rev=53303b2936ec19467c61cf75f77e30b399c10445#53303b2936ec19467c61cf75f77e30b399c10445"
+source = "git+https://github.com/ente-io/heic-decoder.git?rev=d47a0f9c9e8c4c9e166c5a4b5734f8ad1f88f7a7#d47a0f9c9e8c4c9e166c5a4b5734f8ad1f88f7a7"
dependencies = [
"archmage",
"brotli",
@@ -1142,10 +1161,11 @@ dependencies = [
[[package]]
name = "rav1d"
version = "1.1.0"
-source = "git+https://github.com/ente-io/rav1d.git?branch=1.1.0_arm32_stable#05db46f1046b43a14019f31d51f74513a15cd2d0"
+source = "git+https://github.com/ente-io/rav1d.git?branch=arm32_stable#d8205d5e5c7aa0265956e660fae2c005b3b3ad9b"
dependencies = [
"assert_matches",
"atomig",
+ "av-data",
"bitflags",
"cc",
"cfg-if",
@@ -1154,6 +1174,7 @@ dependencies = [
"parking_lot",
"paste",
"raw-cpuid",
+ "static_assertions",
"strum",
"to_method",
"zerocopy 0.7.35",
@@ -1460,25 +1481,30 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
[[package]]
name = "strum"
-version = "0.26.3"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
+checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf"
dependencies = [
"strum_macros",
]
[[package]]
name = "strum_macros"
-version = "0.26.4"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
+checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7"
dependencies = [
"heck",
"proc-macro2",
"quote",
- "rustversion",
"syn",
]
diff --git a/rust/crates/image/Cargo.toml b/rust/crates/image/Cargo.toml
index 225ff64d89..a3312318c9 100644
--- a/rust/crates/image/Cargo.toml
+++ b/rust/crates/image/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2024"
[dependencies]
image = { version = "0.25.5", default-features = true }
kamadak-exif = "0.6.1"
-ente_heic = { package = "heic_decoder", git = "https://github.com/ente-io/heic-decoder.git", rev = "53303b2936ec19467c61cf75f77e30b399c10445", features = [
+ente_heic = { package = "heic_decoder", git = "https://github.com/ente-io/heic-decoder.git", rev = "d47a0f9c9e8c4c9e166c5a4b5734f8ad1f88f7a7", features = [
"image-integration",
] }
thiserror = "2.0.11"
diff --git a/rust/photos/Cargo.lock b/rust/photos/Cargo.lock
index 8af2bc83aa..91673f0786 100644
--- a/rust/photos/Cargo.lock
+++ b/rust/photos/Cargo.lock
@@ -172,6 +172,19 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
+[[package]]
+name = "av-data"
+version = "0.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fca67ba5d317924c02180c576157afd54babe48a76ebc66ce6d34bb8ba08308e"
+dependencies = [
+ "byte-slice-cast",
+ "bytes",
+ "num-derive",
+ "num-rational",
+ "num-traits",
+]
+
[[package]]
name = "av-scenechange"
version = "0.14.1"
@@ -284,6 +297,12 @@ version = "3.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
+[[package]]
+name = "byte-slice-cast"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7575182f7272186991736b70173b0ea045398f984bf5ebbb3804736ce1330c9d"
+
[[package]]
name = "bytemuck"
version = "1.25.0"
@@ -874,7 +893,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
[[package]]
name = "heic_decoder"
version = "0.1.0"
-source = "git+https://github.com/ente-io/heic-decoder.git?rev=53303b2936ec19467c61cf75f77e30b399c10445#53303b2936ec19467c61cf75f77e30b399c10445"
+source = "git+https://github.com/ente-io/heic-decoder.git?rev=d47a0f9c9e8c4c9e166c5a4b5734f8ad1f88f7a7#d47a0f9c9e8c4c9e166c5a4b5734f8ad1f88f7a7"
dependencies = [
"archmage",
"brotli",
@@ -2101,10 +2120,11 @@ dependencies = [
[[package]]
name = "rav1d"
version = "1.1.0"
-source = "git+https://github.com/ente-io/rav1d.git?branch=1.1.0_arm32_stable#05db46f1046b43a14019f31d51f74513a15cd2d0"
+source = "git+https://github.com/ente-io/rav1d.git?branch=arm32_stable#d8205d5e5c7aa0265956e660fae2c005b3b3ad9b"
dependencies = [
"assert_matches",
"atomig",
+ "av-data",
"bitflags",
"cc",
"cfg-if",
@@ -2113,6 +2133,7 @@ dependencies = [
"parking_lot",
"paste",
"raw-cpuid",
+ "static_assertions",
"strum",
"to_method",
"zerocopy 0.7.35",
@@ -2465,6 +2486,12 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
[[package]]
name = "strsim"
version = "0.11.1"
@@ -2473,23 +2500,22 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "strum"
-version = "0.26.3"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
+checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf"
dependencies = [
"strum_macros",
]
[[package]]
name = "strum_macros"
-version = "0.26.4"
+version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
+checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7"
dependencies = [
"heck",
"proc-macro2",
"quote",
- "rustversion",
"syn",
]