| 1 | Blosc: A blocking, shuffling and lossless compression library |
|---|
| 2 | ============================================================= |
|---|
| 3 | |
|---|
| 4 | .. ######################################################### |
|---|
| 5 | .. ################### W A R N I N G ! ##################### |
|---|
| 6 | .. ######################################################### |
|---|
| 7 | .. ### This is BETA software. Use it at your own risk! ### |
|---|
| 8 | .. ######################################################### |
|---|
| 9 | |
|---|
| 10 | Author: Francesc Alted |
|---|
| 11 | Official website: http://blosc.pytables.org |
|---|
| 12 | |
|---|
| 13 | Blosc is distributed using the MIT license, see file LICENSES |
|---|
| 14 | directory for details. |
|---|
| 15 | |
|---|
| 16 | Blosc consists of the next files (in src/ directory): |
|---|
| 17 | blosc.h and blosc.c -- the main routines |
|---|
| 18 | blosclz.h and blosclz.c -- the actual compressor |
|---|
| 19 | shuffle.h and shuffle.c -- the shuffle code |
|---|
| 20 | |
|---|
| 21 | Just add these files to your project in order to use Blosc. For |
|---|
| 22 | information on compression and decompression routines, see blosc.h. |
|---|
| 23 | |
|---|
| 24 | Blosc is a compressor for binary data, that can use threads and SSE2 |
|---|
| 25 | and that gets best results if you can provide the size of the data |
|---|
| 26 | type that originated the data file. |
|---|
| 27 | |
|---|
| 28 | To compile using GCC: |
|---|
| 29 | |
|---|
| 30 | gcc -O3 -msse2 -o your_program your_program.c \ |
|---|
| 31 | blosc.c blosclz.c shuffle.c -lpthread |
|---|
| 32 | |
|---|
| 33 | Using Windows and MSVC (remember to set the LIB and INCLUDE environment |
|---|
| 34 | variables to pthread-win32 directories first): |
|---|
| 35 | |
|---|
| 36 | cl /Ox /Feyour_program.exe your_program.c \ |
|---|
| 37 | blosc.c blosclz.c shuffle.c /link pthreadvc2.lib |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | A simple usage example is the benchmark in the src/bench.c file. |
|---|
| 41 | |
|---|
| 42 | I have not tried to compile this with other compilers than GCC and |
|---|
| 43 | MSVC yet. Please report your experiences with your own platforms. |
|---|
| 44 | |
|---|
| 45 | Thank you! |
|---|