GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73577
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rle.c File Reference
#include <stdio.h>
#include <grass/raster3d.h>
Include dependency graph for rle.c:

Go to the source code of this file.

Macros

#define G_254_SQUARE   64516
 
#define G_254_TIMES_2   508
 
#define G_RLE_OUTPUT_CODE(code)   (*((unsigned char *) dst++) = (code))
 
#define G_RLE_INPUT_CODE(codeP)   (*(codeP) = *((unsigned char *) src++))
 

Functions

int Rast3d_rle_count_only (char *src, int nofElts, int eltLength)
 
void Rast3d_rle_encode (char *src, char *dst, int nofElts, int eltLength)
 
void Rast3d_rle_decode (char *src, char *dst, int nofElts, int eltLength, int *lengthEncode, int *lengthDecode)
 
void test_rle ()
 

Macro Definition Documentation

#define G_254_SQUARE   64516

Definition at line 4 of file rle.c.

#define G_254_TIMES_2   508

Definition at line 5 of file rle.c.

#define G_RLE_INPUT_CODE (   codeP)    (*(codeP) = *((unsigned char *) src++))

Definition at line 8 of file rle.c.

#define G_RLE_OUTPUT_CODE (   code)    (*((unsigned char *) dst++) = (code))

Definition at line 7 of file rle.c.

Function Documentation

int Rast3d_rle_count_only ( char *  src,
int  nofElts,
int  eltLength 
)

Definition at line 135 of file rle.c.

References Rast3d_fatal_error().

void Rast3d_rle_decode ( char *  src,
char *  dst,
int  nofElts,
int  eltLength,
int lengthEncode,
int lengthDecode 
)

Definition at line 235 of file rle.c.

References dst, and Rast3d_fatal_error().

Referenced by Rast3d_fpcompress_read_xdr_nums().

void Rast3d_rle_encode ( char *  src,
char *  dst,
int  nofElts,
int  eltLength 
)

Definition at line 178 of file rle.c.

References Rast3d_fatal_error().

void test_rle ( )

Definition at line 267 of file rle.c.