GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
#include <grass/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "compress.h"
Go to the source code of this file.
Macros | |
#define | G_COMPRESSED_NO (unsigned char)'0' |
#define | G_COMPRESSED_YES (unsigned char)'1' |
Functions | |
int | G_compressor_number (char *name) |
char * | G_compressor_name (int number) |
int | G_default_compressor (void) |
int | G_check_compressor (int number) |
int | G_no_compress_bound (int src_sz) |
int | G_no_compress (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz) |
int | G_no_expand (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz) |
int | G_compress_bound (int src_sz, int number) |
int | G_compress (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz, int number) |
int | G_expand (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz, int number) |
int | G_read_compressed (int fd, int rbytes, unsigned char *dst, int nbytes, int number) |
int | G_write_compressed (int fd, unsigned char *src, int nbytes, int number) |
int | G_write_uncompressed (int fd, const unsigned char *src, int nbytes) |
#define G_COMPRESSED_NO (unsigned char)'0' |
Definition at line 94 of file compress.c.
#define G_COMPRESSED_YES (unsigned char)'1' |
Definition at line 95 of file compress.c.
int G_check_compressor | ( | int | number | ) |
Definition at line 140 of file compress.c.
Referenced by Rast__open_old().
int G_compress | ( | unsigned char * | src, |
int | src_sz, | ||
unsigned char * | dst, | ||
int | dst_sz, | ||
int | number | ||
) |
Definition at line 218 of file compress.c.
Referenced by G_write_compressed().
int G_compress_bound | ( | int | src_sz, |
int | number | ||
) |
Definition at line 202 of file compress.c.
Referenced by G_write_compressed().
char* G_compressor_name | ( | int | number | ) |
Definition at line 118 of file compress.c.
Referenced by Rast__open_old().
int G_compressor_number | ( | char * | name | ) |
Definition at line 100 of file compress.c.
References compressor, G_strcasecmp(), compressor_list::name, and name.
int G_default_compressor | ( | void | ) |
Definition at line 126 of file compress.c.
int G_expand | ( | unsigned char * | src, |
int | src_sz, | ||
unsigned char * | dst, | ||
int | dst_sz, | ||
int | number | ||
) |
Definition at line 233 of file compress.c.
Referenced by G_read_compressed().
int G_no_compress | ( | unsigned char * | src, |
int | src_sz, | ||
unsigned char * | dst, | ||
int | dst_sz | ||
) |
Definition at line 155 of file compress.c.
int G_no_compress_bound | ( | int | src_sz | ) |
Definition at line 150 of file compress.c.
int G_no_expand | ( | unsigned char * | src, |
int | src_sz, | ||
unsigned char * | dst, | ||
int | dst_sz | ||
) |
Definition at line 176 of file compress.c.
int G_read_compressed | ( | int | fd, |
int | rbytes, | ||
unsigned char * | dst, | ||
int | nbytes, | ||
int | number | ||
) |
Definition at line 244 of file compress.c.
References _, b, dst, err(), G_calloc, G_COMPRESSED_NO, G_COMPRESSED_YES, G_expand(), G_free(), G_warning(), and NULL.
int G_write_compressed | ( | int | fd, |
unsigned char * | src, | ||
int | nbytes, | ||
int | number | ||
) |
Definition at line 323 of file compress.c.
References _, dst, err(), G_calloc, G_compress(), G_compress_bound(), G_COMPRESSED_NO, G_COMPRESSED_YES, G_free(), G_warning(), NULL, and src.
int G_write_uncompressed | ( | int | fd, |
const unsigned char * | src, | ||
int | nbytes | ||
) |
Definition at line 412 of file compress.c.
References _, err(), G_COMPRESSED_NO, G_warning(), NULL, and src.