Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to set cparams for the offsets of a super-chunk #285

Open
FrancescAlted opened this issue Apr 21, 2021 · 0 comments
Open

Find a way to set cparams for the offsets of a super-chunk #285

FrancescAlted opened this issue Apr 21, 2021 · 0 comments

Comments

@FrancescAlted
Copy link
Member

Right now there is no way to set the compression properties (cparams) of the offsets chunk of a super-chunk. A possible solution is to create a defaults for that:

static const blosc2_cparams BLOSC2_CPARAMS_OFFSETS_DEFAULTS = {
        BLOSC_BLOSCLZ, 5, 0, 8, 1, 0, NULL,
        {0, 0, 0, 0, 0, BLOSC_SHUFFLE}, {0, 0, 0, 0, 0, 0},
        NULL, NULL, NULL};

and assign these cparams to a new attribute (say offsets_cparams) of the blosc2_storage structure. If the user wants to modify some, he just will need to modify the appropriate storage->offsets_cparams at their will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant