forked from szcompressor/cuSZ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsz_lib.h
64 lines (53 loc) · 1.47 KB
/
psz_lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* @file psz_lib.h
* @author Jiannan Tian
* @brief
* @version 0.4
* @date 2023-06-03
*
* (C) 2023 by Indiana University, Argonne National Laboratory
*
*/
#ifndef CAF52C2D_DD3A_42DC_9F1F_EA202D2A79D5
#define CAF52C2D_DD3A_42DC_9F1F_EA202D2A79D5
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include "cusz/custom.h"
#include "cusz/record.h"
#include "cusz/type.h"
#include "header.h"
#include "mem/layout.h"
typedef cusz_error_status psz_error_status;
typedef cusz_framework psz_framework;
typedef cusz_compressor psz_compressor;
typedef cusz_datatype psz_datatype;
typedef cusz_len psz_len;
typedef cusz_config psz_config;
// typedef cusz_context psz_context;
psz_compressor* psz_init(psz_framework* framework, psz_datatype const type);
psz_error_status psz_free(psz_compressor* comp);
psz_error_status psz_compress(
psz_compressor* comp,
psz_config* config,
void* uncompressed,
psz_len const uncomp_len,
uint8_t** compressed,
size_t* comp_bytes,
psz_header* header,
void* record,
void* stream);
psz_error_status psz_decompress(
psz_compressor* comp,
psz_header* header,
uint8_t* compressed,
size_t const comp_len,
void* decompressed,
psz_len const decomp_len,
void* record,
void* stream);
#ifdef __cplusplus
}
#endif
#endif /* CAF52C2D_DD3A_42DC_9F1F_EA202D2A79D5 */