diff --git a/README.md b/README.md index 63e40c1..ae43b21 100644 --- a/README.md +++ b/README.md @@ -166,3 +166,8 @@ Which can be saved or displayed: im.save(...) im.show() + +# Usage from C + +This plugin can also be called from a regular C program. For an example, look at: +[src/test_j2k.c](https://github.com/Blosc/blosc2_openhtj2k/blob/main/src/test_j2k.c) \ No newline at end of file diff --git a/src/test_j2k.c b/src/test_j2k.c index 45d8eaa..9ca0e8c 100644 --- a/src/test_j2k.c +++ b/src/test_j2k.c @@ -8,11 +8,7 @@ See LICENSE.txt for details about copyright and rights to use. Test program demonstrating use of the Blosc filter from C code. - To compile this program: - - $ gcc -O test_j2k.c -o test_j2k -lblosc2 - - To run: + Compile this program with cmake and run: $ ./test_j2k Read OK