VC-Delta3D
A native C volume codec with six presets, from fastest to smallest: delta, faster, fast (default), balanced, small and slower; the medium and slow presets of 0.3.x are kept as well. It combines Chase Hendrick's NG prediction with Sean Johnson's Delta3D directional predictors. Both MIT notices are retained; see AUTHORS.md.
The codec, fitting, SIMD kernels, entropy coding, framing and indexed containers are C. The C++ headers are ownership/error adapters over the C API. Python uses a thin nanobind adapter; it does not perform prediction or compression in Python.
Performance
Scroll CT, 95 masked level-0 128³ chunks from five scrolls, one core (full tables for 10 EC2 instance types in BENCHMARKS.md):
| Preset | Size (% raw) | Encode MiB/s (c7i / c8g) | Decode MiB/s (c7i / c8g) |
|---|---|---|---|
| delta | 37.0 | 240 / 279 | 512 / 703 |
| faster | 27.0 | 64.7 / 46.7 | 306 / 117 |
| fast | 26.8 | 64.0 / 43.6 | 291 / 109 |
| balanced | 26.7 | 47.6 / 27.2 | 279 / 102 |
| small | 26.6 | 11.8 / 8.17 | 217 / 79.8 |
| slower | 26.7 | 1.86 / 0.86 | 237 / 75.7 |
| medium | 27.0 | 16.2 / 13.0 | 262 / 104 |
| slow | 26.9 | 2.57 / 1.36 | 250 / 93.4 |
c7i: Intel Sapphire Rapids; c8g: Graviton4. faster is the fast preset of
0.3.x; medium and slow are kept from 0.3.x for some derived volumes. How
much the smaller presets gain depends on the data; see
BENCHMARKS.md. COMPRESSION.md explains what
the presets do.
Formats and compatibility
- Lossless uint8 chunks with dimensions divisible by 32 use the preset encoder. A single cubic chunk is one NCF1 frame.
- Multiple channels and spatial partitions use the NGI1 index around NCF1 leaves, so single channels or regions can be read by byte range.
predictor="delta", uint16/int16 data, quantization, or dimensions not divisible by 32 use the original Delta3D D3D1 format. D3D1 data from all earlier releases, including alternate magics such as VCZ1, stays readable.- Decoding reads everything from the encoded bytes; Zarr metadata needs no per-chunk fields.
COMPRESSION.md explains how the presets and Delta3D compress; FORMAT.md specifies all three formats and how they relate.
C API
Include vc_delta3d/codec.h (and indexed.h for indexed leaf access).
Functions return 1 on success and 0 on invalid input or allocation failure.
#include <vc_delta3d/codec.h>
/* input and output are caller-owned buffers containing 128^3 bytes. */
vc_encode_options options = vc_default_options();
options.shape[0] = options.shape[1] = options.shape[2] = 128;
uint8_t *encoded = NULL;
size_t encoded_size = 0;
if (vc_compress(input, 128u*128u*128u, &options,
&encoded, &encoded_size)) {
int ok = vc_decompress(encoded, encoded_size, output, 128u*128u*128u);
/* Check ok before using output. */
vc_free(encoded);
}
vc_frame_inspect reports the decoded size before allocation. The indexed C API
reads the index separately and decodes any leaf without accessing its siblings.
The library has no C++ runtime dependency.
C++ and Python adapters
#include <vc_delta3d/codec.hpp>
auto encoded = vc_delta3d::compress(bytes, {z, y, x}, element_size);
auto decoded = vc_delta3d::decompress(encoded, bytes.size());
auto packed = vc_delta3d::compressChannels(bytes, {z, y, x}, channels,
vc_delta3d::ChannelLayout::Last, element_size);
from vc_delta3d import Delta3D
codec = Delta3D(predictor="fast")
encoded = codec.encode(array)
decoded = codec.decode(encoded)
legacy = Delta3D(predictor="delta")
multichannel = Delta3D(channel_axis="last")
Importing the Python package registers vc-delta3d with numcodecs, for Zarr v2
arrays (as compressor). predictor names the encoder preset (delta,
faster, fast, balanced, small, slower, and medium and slow from
0.3.x). It only affects encoding: arrays written with any preset open and
decode with any setting.
Zarr v3 and sharding
Install with pip install 'vc-delta3d[zarr]'. In Zarr v3, vc-delta3d is a
bytes-to-bytes codec after bytes, normally inside sharding_indexed:
import zarr
from zarr.codecs import BytesCodec
from vc_delta3d.zarr3 import Delta3DCodec
array = zarr.create_array(
"volume.zarr", shape=(4096, 4096, 4096), dtype="uint8",
shards=(1024, 1024, 1024), chunks=(128, 128, 128),
serializer=BytesCodec(endian="little"),
compressors=Delta3DCodec(predictor="fast"),
)
This writes the codec chain [bytes, vc-delta3d] that the neuroglancer and
VC3D readers expect. zarr-python finds the codec through a zarr.codecs entry
point, so reading needs no import. The configuration (predictor, quant,
channel_axis) only affects encoding. 16-bit payloads hold little-endian
elements, so keep endian="little".
Pick inner chunks that are cubic, divisible by 32 and at most 256 on a side (e.g. 64³ or 128³). Each inner chunk is then one NCF1 frame, and the shard index lets a reader fetch just the inner chunks it needs. Larger inner chunks are coded as NGI1, which zarr reads only as a whole. Chunk shapes not divisible by 32 fall back to D3D1, and creating such an array warns.
Build and test
Requires a C compiler; the codec has no Zstd dependency. The optional C++ adapters require C++20; Python additionally requires nanobind. No dependency installation is performed by these commands.
C-only library, without a C++ compiler or downloaded test dependency:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DVC_DELTA3D_BUILD_TESTS=OFF
cmake --build build -j
Native regression tests and C++ adapter smoke test:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \
-DVC_DELTA3D_BUILD_TESTS=OFF -DVC_DELTA3D_MODERN_SMOKE=ON
cmake --build build -j
ctest --test-dir build --output-on-failure
build/vc_delta3d_modern_smoke
CMake consumers link vc_delta3d::vc_delta3d. For Python, also configure
VC_DELTA3D_BUILD_PYTHON=ON and Python_EXECUTABLE.
VC_DELTA3D_BUILD_TESTS=ON enables the additional doctest suite and may fetch
its header dependency. Windows builds use ClangCL because the kernels use VLAs.
AVX2/AVX-512 are runtime-dispatched; NEON and portable implementations are retained.
Floating-point contraction remains disabled to preserve fitted weights.
Measurements and development record
BENCHMARKS.md contains the historical 18-group comparison
against original NG, Delta3D, LPC, Blosc and Zstd. Historical rows describing
removed presets are reference measurements, not supported options.
See benchmark/README.md for the benchmark harness.
The C-port validation record (C_PORT_RESULTS.md) and its one-off scripts
are in git history (commit 93469eb).
Releasing
Publishing a GitHub release uploads wheels (Linux x86_64/aarch64, macOS arm64,
Windows AMD64) and the sdist to PyPI via
.github/workflows/release.yml (trusted publishing, pypi environment).
- Set the version in both
pyproject.toml(version) andCMakeLists.txt(project(... VERSION ...)), merge tomain, and check that the wheel builds onmainare green. - Create the release from
mainwith tagvX.Y.Zmatching that version, e.g.gh release create v0.3.0 --target main --title v0.3.0 --notes-file notes.md(or Draft a new release on GitHub). Note format and decoding compatibility changes in the release notes.--targetonly applies when the tag does not exist yet: if an earlier attempt already created the tag, check that it points at the intended commit (git ls-remote --tags origin vX.Y.Z) before publishing. - The Publish to PyPI job runs once the build jobs pass; check the Actions run and https://pypi.org/p/vc-delta3d.
Metadata
Release files for vc-delta3d 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vc_delta3d-0.3.2.tar.gz | 177.9 kB | With provenance | Details for vc_delta3d-0.3.2.tar.gz |
Built distributions (wheels)
Total release size: 7.1 MB
Release files / vc_delta3d-0.3.2.tar.gz
| Download URL | vc_delta3d-0.3.2.tar.gz |
|---|---|
| Size | 177.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
172ddcb4b34d0b917f2d9bf892b67275de921deafeeaafe8217c9f39b31f9834
|
|
BLAKE2b-256 checksum How to use checksums |
a771dc6f8fd1063f40e2b856857b49d84c6d53f94ba8ef8732764af2e7a7e2f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp314-cp314-win_amd64.whl
| Download URL | vc_delta3d-0.3.2-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 803.7 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
459f566067bad8a20f12ace821462a034dfff1d311832e252617d7abd131162a
|
|
BLAKE2b-256 checksum How to use checksums |
5758ed8378ce404d08576ef91543279b47116d45732b268cf746ec78d3fef471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | vc_delta3d-0.3.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 657.8 kB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
94683e683881deb29d5d5210e8ae381146dc73132730be08ce52f9fe38a4dad9
|
|
BLAKE2b-256 checksum How to use checksums |
91f33d0b51750a444878f055b312ec44640aa109d4a93bad14ea22a821ed9b5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | vc_delta3d-0.3.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 458.3 kB |
| Tags | CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
5197bfccc3c00466e16dc49220adeb670c7400ba43feacb0d8946e146412bfc3
|
|
BLAKE2b-256 checksum How to use checksums |
b4d3d7ce1f7c52c5e44dc50885f3f69c43b7f474245ebeed8dba435ae47d732a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | vc_delta3d-0.3.2-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 398.7 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ecd59cd450244d69be9fe20c9598f12a6dceed11f58d5ada84504d5703cefd72
|
|
BLAKE2b-256 checksum How to use checksums |
b08fa78fa014bac051ceecdf5c3d145f7084aae82b7329327149c5f98e4aaf38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp313-cp313-win_amd64.whl
| Download URL | vc_delta3d-0.3.2-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 779.6 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b3b4712a41ad398fbeb96e0c3cd4ad92b6b1c8c8431dc77628ab227459937de2
|
|
BLAKE2b-256 checksum How to use checksums |
431a4f80c1b2330826563e77f4932b0769c04c112b6ec6dafd00853949d841e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | vc_delta3d-0.3.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 657.6 kB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
39e7769707c9c20e61d687433385b92aa253aa3aff0dc03753984cfb4ee4da08
|
|
BLAKE2b-256 checksum How to use checksums |
67bf8ece76a7086faa8053aa6c7a54dfd3ce05d6f42ea30727518076fe713ad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | vc_delta3d-0.3.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 457.9 kB |
| Tags | CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
5dee209e0fa32387783cd462df7a3e77b31e157eef49eb901d36f178161cb83b
|
|
BLAKE2b-256 checksum How to use checksums |
a3ad3752b25c9978e4c95c9d28952ff97ee3daa3656d06434b0915b3faedf37a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | vc_delta3d-0.3.2-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 398.5 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0e4e0d9ae5aba9b443a43dcf6bac1602b2420937a4ad9cd6f759c10b20fa5f64
|
|
BLAKE2b-256 checksum How to use checksums |
3b9b6029e3935cf75928aaed8ac4c24a39fd9708ded57dd949f6cf461395c654
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp312-cp312-win_amd64.whl
| Download URL | vc_delta3d-0.3.2-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 779.7 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ee254171596d143563c15c0a4c009e8408f02c5e8b2cc385b2f8bc432404d7c2
|
|
BLAKE2b-256 checksum How to use checksums |
4662d229b0d24c1de15a1fb1cb44a5b757c5d25adaa7410657462808f4ece214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | vc_delta3d-0.3.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 657.7 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
17ade9af78ea4e3410fc3d28ac64fb401c38ea8aa5c15dc2ce4bf72e48bccdb6
|
|
BLAKE2b-256 checksum How to use checksums |
850d2e3724f317ea2e94807d847808f2cf8d3f6a9f5d9fb31f70d278f50c57f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | vc_delta3d-0.3.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 458.0 kB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
b68272ddb8937c83306d205e0d6d03f0c2cfa722699423a888fe06c3eee1e428
|
|
BLAKE2b-256 checksum How to use checksums |
fac03e31bf0ee2f5c617e73a1be0e1792d53a8eb7d1a53a3f8f6c2daaf557f80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / vc_delta3d-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | vc_delta3d-0.3.2-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 398.5 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
31529f2bef9fbabbebe9b619baef060a232a5aeba0395f09ffde56cdb3e12c28
|
|
BLAKE2b-256 checksum How to use checksums |
15107e82ca9d4a43967ccdbe4a6e29fe5a639fd5a3caafbf3fdc6f3003388284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for vc-delta3d 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 13 files in this release have been uploaded with provenance metadata.
Attestation for vc_delta3d-0.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.