GRASS GIS 7 Programmer's Manual  7.8.2(2019)-exported
compress.h File Reference
#include <grass/config.h>
#include <grass/gis.h>
Include dependency graph for compress.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  compressor_list
 

Typedefs

typedef int compress_fn(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
 
typedef int expand_fn(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
 
typedef int bound_fn(int src_sz)
 

Functions

int G_no_compress_bound (int)
 
int G_rle_compress_bound (int)
 
int G_zlib_compress_bound (int)
 
int G_lz4_compress_bound (int)
 
int G_bz2_compress_bound (int)
 
int G_zstd_compress_bound (int)
 

Variables

struct compressor_list compressor []
 

Typedef Documentation

◆ bound_fn

typedef int bound_fn(int src_sz)

Definition at line 32 of file compress.h.

◆ compress_fn

typedef int compress_fn(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)

Definition at line 28 of file compress.h.

◆ expand_fn

typedef int expand_fn(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)

Definition at line 30 of file compress.h.

Function Documentation

◆ G_bz2_compress_bound()

int G_bz2_compress_bound ( int  )

Definition at line 74 of file cmprbzip.c.

◆ G_lz4_compress_bound()

int G_lz4_compress_bound ( int  )

Definition at line 71 of file cmprlz4.c.

References LZ4_compressBound().

◆ G_no_compress_bound()

int G_no_compress_bound ( int  )

Definition at line 150 of file compress.c.

◆ G_rle_compress_bound()

int G_rle_compress_bound ( int  )

Definition at line 68 of file cmprrle.c.

◆ G_zlib_compress_bound()

int G_zlib_compress_bound ( int  )

◆ G_zstd_compress_bound()

int G_zstd_compress_bound ( int  )

Definition at line 74 of file cmprzstd.c.

References G_fatal_error().

Variable Documentation

◆ compressor

struct compressor_list compressor[]
Initial value:

Definition at line 54 of file compress.h.

Referenced by G_compressor_number().

G_lz4_compress_bound
int G_lz4_compress_bound(int)
Definition: cmprlz4.c:71
G_zstd_compress
int G_zstd_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprzstd.c:88
G_bz2_expand
int G_bz2_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprbzip.c:169
G_rle_compress
int G_rle_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprrle.c:74
G_no_compress_bound
int G_no_compress_bound(int)
Definition: compress.c:150
G_zlib_compress_bound
int G_zlib_compress_bound(int)
G_bz2_compress
int G_bz2_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprbzip.c:88
G_lz4_compress
int G_lz4_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprlz4.c:80
G_zstd_expand
int G_zstd_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprzstd.c:163
G_rle_expand
int G_rle_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprrle.c:141
NULL
#define NULL
Definition: ccmath.h:32
G_rle_compress_bound
int G_rle_compress_bound(int)
Definition: cmprrle.c:68
G_zstd_compress_bound
int G_zstd_compress_bound(int)
Definition: cmprzstd.c:74
G_no_expand
int G_no_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: compress.c:178
G_bz2_compress_bound
int G_bz2_compress_bound(int)
Definition: cmprbzip.c:74
G_lz4_expand
int G_lz4_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprlz4.c:148
G_no_compress
int G_no_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: compress.c:156