google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.07k stars 295 forks source link

N5 now supports Zstandard #509

Closed mkitti closed 9 months ago

mkitti commented 9 months ago

Hi, we've added Zstandard support to N5. https://github.com/JaneliaSciComp/n5-zstandard See comments from @axtimwalde below. https://github.com/JaneliaSciComp/n5-zstandard/pull/1

This is in preparation for n5-zarr Zstandard compatibility: https://github.com/saalfeldlab/n5-zarr/pull/35

Also note that numcodecs.js has updated to Zstandard 1.5.5 as v0.3.0: https://github.com/manzt/numcodecs.js/releases/tag/v0.3.0 https://github.com/manzt/numcodecs.js/pull/40

jbms commented 9 months ago

What are the parameters? Just level?

mkitti commented 9 months ago

Yes. That is the only serialized parameter.

https://github.com/JaneliaSciComp/n5-zstandard/blob/main/src%2Fmain%2Fjava%2Forg%2Fjanelia%2Fscicomp%2Fn5%2Fzstandard%2FZstandardCompression.java#L79-L80