Skip to content

Commit

Permalink
Add a pointer to a C example
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Sep 17, 2023
1 parent 389c57d commit 9a6815b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 1 addition & 5 deletions src/test_j2k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a6815b

Please sign in to comment.