Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"spark-rs": "file:rust/spark-rs/pkg"
},
"dependencies": {
"@bokuweb/zstd-wasm": "^0.0.27",
"fflate": "^0.8.2"
},
"peerDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ itertools = "0.14.0"
js-sys = "0.3.77"
miniz_oxide = "0.8.9"
ordered-float = "5.1.0"
ruzstd = { version = "0.7.3", default-features = false, features = ["std"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
serde-wasm-bindgen = "0.6.5"
Expand Down
1 change: 1 addition & 0 deletions rust/spark-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ glam.workspace = true
half.workspace = true
ordered-float.workspace = true
miniz_oxide.workspace = true
ruzstd.workspace = true
serde.workspace = true
smallvec.workspace = true
itertools.workspace = true
Expand Down
4 changes: 4 additions & 0 deletions rust/spark-lib/src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,10 @@ impl<T: SplatReceiver> ChunkReceiver for MultiDecoder<T> {
if (magic & 0x00ffffff) == PLY_MAGIC {
return self.init_file_type(SplatFileType::PLY);
}
if magic == SPZ_MAGIC {
// NGSP magic at file start — SPZ v4 (ZSTD multi-stream, not gzip-wrapped)
return self.init_file_type(SplatFileType::SPZ);
}
if (magic & 0x00ffffff) == GZIP_MAGIC {
// Gzipped file, unpack beginning to check magic number
if self.buffer_gz.is_none() {
Expand Down
Loading