BdsApi 3.1.4
This is the Blacknest BDS API.
Loading...
Searching...
No Matches
canada_compress.h
Go to the documentation of this file.
1/* Copyright 1994 Science Applications International Corporation
2 *
3 * This software may not be used, copied, modified, or distributed without
4 * the express written permission of Science Applications International
5 * Corporation (SAIC). SAIC makes no warranty of any kind with regard
6 * to this software, including, but not limited to, the implied warranties
7 * of fitness for a particular purpose.
8 */
9
10/* #pragma ident "@(#)canada_compress.h 1.1 05/18/00 SAIC" */
11
12#include <arpa/inet.h>
13
14#ifndef CANADACOMP_H
15#define CANADACOMP_H
16
17#define CANCOMP_ERR -1 /* unrecoverable error (malloc fails) */
18#define CANCOMP_SUCCESS 0 /* success */
19#define CANCOMP_NOT_20 1 /* number of samples not divisible by 20 */
20#define CANCOMP_CORRUPT 2 /* corrupted call */
21#define CANCOMP_EXCEED 3 /* number of bytes available in compressed
22 data exceeded during decompression */
23
24
26int canada_uncompress(unsigned char *b, uint32_t *y, int *n, int m,
27 uint32_t *v0);
28
30int canada_compress(unsigned char *b, unsigned long *y, int *n, int m,
31 unsigned long *v0);
32
33#endif /* CANADACOMP_H */
int canada_uncompress(unsigned char *b, uint32_t *y, int *n, int m, uint32_t *v0)
De-compressses Canada format seismic data.
int canada_compress(unsigned char *b, unsigned long *y, int *n, int m, unsigned long *v0)
Compressses Canada format seismic data.