GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
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  src_sz)

Definition at line 72 of file cmprbzip.c.

Referenced by G_bz2_compress().

◆ G_lz4_compress_bound()

int G_lz4_compress_bound ( int  src_sz)

Definition at line 70 of file cmprlz4.c.

References LZ4_compressBound().

Referenced by G_lz4_compress().

◆ G_no_compress_bound()

int G_no_compress_bound ( int  src_sz)

Definition at line 150 of file compress.c.

◆ G_rle_compress_bound()

int G_rle_compress_bound ( int  src_sz)

Definition at line 68 of file cmprrle.c.

◆ G_zlib_compress_bound()

int G_zlib_compress_bound ( int  src_sz)

Definition at line 76 of file cmprzlib.c.

Referenced by G_zlib_compress().

◆ G_zstd_compress_bound()

int G_zstd_compress_bound ( int  src_sz)

Definition at line 72 of file cmprzstd.c.

References _, and G_fatal_error().

Referenced by G_zstd_compress().

Variable Documentation

◆ compressor

struct compressor_list compressor[]
Initial value:
= {
{0, NULL, NULL, NULL, NULL}}
#define NULL
Definition: ccmath.h:32
int G_bz2_compress_bound(int)
Definition: cmprbzip.c:72
int G_lz4_compress_bound(int)
Definition: cmprlz4.c:70
int G_zlib_compress_bound(int)
Definition: cmprzlib.c:76
int G_zstd_compress_bound(int)
Definition: cmprzstd.c:72
int G_rle_compress_bound(int)
Definition: cmprrle.c:68
int G_no_compress_bound(int)
Definition: compress.c:150
int G_zlib_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprzlib.c:165
int G_bz2_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprbzip.c:85
int G_lz4_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprlz4.c:78
int G_bz2_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprbzip.c:168
int G_lz4_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprlz4.c:146
int G_no_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: compress.c:155
int G_rle_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprrle.c:73
int G_rle_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprrle.c:139
int G_zlib_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprzlib.c:87
int G_zstd_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprzstd.c:86
int G_zstd_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprzstd.c:162
int G_no_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: compress.c:176

Definition at line 51 of file compress.h.

Referenced by G_compressor_number().