GRASS GIS 7 Programmer's Manual  7.2.1(2017)-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)
 

Variables

struct compressor_list compressor []
 

Typedef Documentation

◆ compress_fn

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

Definition at line 19 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 21 of file compress.h.

Variable Documentation

◆ compressor

struct compressor_list compressor[]
Initial value:
= {
{1, G_no_compress, G_no_expand, "NONE"},
{1, G_zlib_compress, G_zlib_expand, "ZLIB"},
{0, G_bz2_compress, G_bz2_expand, "BZIP2"},
{0, NULL, NULL, NULL}
}
int G_lz4_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprlz4.c:117
int G_rle_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprrle.c:68
#define NULL
Definition: ccmath.h:32
int G_rle_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprrle.c:135
int G_no_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: compress.c:161
int G_lz4_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprlz4.c:72
int G_no_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: compress.c:139
int G_bz2_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprbzip.c:74
int G_bz2_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
Definition: cmprbzip.c:135

Definition at line 41 of file compress.h.

Referenced by G_compressor_number().