-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56ff653
commit 93b9fcf
Showing
12 changed files
with
70 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Blosc - Blocked Shuffling and Compression Library | ||
############################################################################## | ||
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
# | ||
# Copyright (C) 2023 The Blosc Developers <[email protected]> | ||
# Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
# https://blosc.org | ||
# License: BSD 3-Clause (see LICENSE.txt) | ||
# | ||
# See LICENSE.txt for details about copyright and rights to use. | ||
# License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
############################################################################## | ||
|
||
import ctypes | ||
import os | ||
|
@@ -107,7 +107,7 @@ def destroy(): | |
lib.blosc2_grok_destroy() | ||
|
||
|
||
# TODO: change these for real defaults | ||
# TODO: change these by the actual defaults | ||
params_defaults = { | ||
'tile_size': (0, 0), | ||
'tile_offset': (0, 0), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
############################################################################## | ||
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
# | ||
# Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
# https://blosc.org | ||
# License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
############################################################################## | ||
|
||
import blosc2 | ||
import blosc2_grok | ||
import argparse | ||
from pathlib import Path | ||
import numpy as np | ||
from PIL import Image | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
############################################################################## | ||
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
# | ||
# Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
# https://blosc.org | ||
# License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
############################################################################## | ||
|
||
import blosc2 | ||
import blosc2_grok | ||
import argparse | ||
from pathlib import Path | ||
import numpy as np | ||
from PIL import Image | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
############################################################################## | ||
# Btune for Blosc2 - Automatically choose the best codec/filter for your data | ||
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
# | ||
# Copyright (c) 2023 The Blosc Developers <[email protected]> | ||
# https://btune.blosc.org | ||
# License: GNU Affero General Public License v3.0 | ||
# See LICENSE.txt for details about copyright and rights to use. | ||
# Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
# https://blosc.org | ||
# License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
############################################################################## | ||
|
||
[build-system] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
############################################################################## | ||
# Btune for Blosc2 - Automatically choose the best codec/filter for your data | ||
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
# | ||
# Copyright (c) 2023 The Blosc Developers <[email protected]> | ||
# https://btune.blosc.org | ||
# License: GNU Affero General Public License v3.0 | ||
# See LICENSE.txt for details about copyright and rights to use. | ||
# Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
# https://blosc.org | ||
# License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
############################################################################## | ||
|
||
from skbuild import setup | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Blosc - Blocked Shuffling and Compression Library | ||
############################################################################## | ||
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
# | ||
# Copyright (C) 2023 The Blosc Developers <[email protected]> | ||
# Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
# https://blosc.org | ||
# License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
############################################################################## | ||
|
||
set(GRK_BUILD_LIBPNG OFF) | ||
set(GRK_BUILD_JPEG OFF) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/********************************************************************* | ||
Blosc - Blocked Shuffling and Compression Library | ||
Copyright (c) 2021 The Blosc Development Team <[email protected]> | ||
https://blosc.org | ||
License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
* | ||
* Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
* https://blosc.org | ||
* License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
**********************************************************************/ | ||
|
||
#include <memory> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/********************************************************************* | ||
Blosc - Blocked Shuffling and Compression Library | ||
Copyright (c) 2021 The Blosc Development Team <[email protected]> | ||
https://blosc.org | ||
License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
* | ||
* Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
* https://blosc.org | ||
* License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
**********************************************************************/ | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/********************************************************************* | ||
Blosc - Blocked Shuffling and Compression Library | ||
Copyright (C) 2023 The Blosc Developers <[email protected]> | ||
https://blosc.org | ||
License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
* | ||
* Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
* https://blosc.org | ||
* License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
Test program demonstrating use of the Blosc filter from C code. | ||
Compile this program with cmake and run: | ||
|
@@ -157,4 +157,4 @@ int main(void) { | |
blosc2_grok_destroy(); | ||
blosc2_destroy(); | ||
return error; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
/********************************************************************* | ||
Blosc - Blocked Shuffling and Compression Library | ||
Copyright (C) 2023 The Blosc Developers <[email protected]> | ||
https://blosc.org | ||
License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
Test program demonstrating use of the Blosc filter from C code. | ||
Compile this program with cmake and run: | ||
$ ./test_grok | ||
Compress OK | ||
Decompress OK | ||
* blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
* | ||
* Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
* https://blosc.org | ||
* License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
Test program demonstrating use of the Blosc filter from C code. | ||
Compile this program with cmake and run: | ||
$ ./test_grok | ||
Compress OK | ||
Decompress OK | ||
Successful image roundtrip! | ||
**********************************************************************/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
####################################################################### | ||
# Copyright (c) 2019-present, Blosc Development Team <[email protected]> | ||
# All rights reserved. | ||
############################################################################## | ||
# blosc2_grok: Grok (JPEG2000 codec) plugin for Blosc2 | ||
# | ||
# This source code is licensed under a BSD-style license (found in the | ||
# LICENSE file in the root directory of this source tree) | ||
####################################################################### | ||
# Copyright (c) 2023 The Blosc Development Team <[email protected]> | ||
# https://blosc.org | ||
# License: GNU Affero General Public License v3.0 (see LICENSE.txt) | ||
############################################################################## | ||
|
||
import numpy as np | ||
import pytest | ||
|