rlenc.c File Reference

Functions for run-length encoding and decoding. More...

#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "desc.h"
#include "bufr.h"
#include "rlenc.h"

Go to the source code of this file.

Defines

#define LBUFLEN   5000
 Size of the internal buffer holding one uncompressed line.
#define ENCBUFL   5000
 Size of the internal buffer holding one compressed line.

Functions

int rlenc (char *infile, int nrows, int ncols, varfl **vals, size_t *nvals)
 Runlength-encodes a radar image.
int rlenc_compress_line (int line, unsigned char *src, int ncols, varfl **dvals, size_t *nvals)
 Encodes one line of a radar image to BUFR runlength-code.
int rldec (char *outfile, varfl *vals, size_t *nvals)
 Decodes a BUFR-runlength-encoded radar image.
int rlenc_from_file (char *infile, int nrows, int ncols, varfl **vals, int *nvals, int depth)
 Runlength-encodes a radar image from a file to an array.
int rldec_to_file (char *outfile, varfl *vals, int depth, int *nvals)
 Decodes a BUFR-runlength-encoded radar image to a file.
int rlenc_from_mem (unsigned short *img, int nrows, int ncols, varfl **vals, int *nvals)
 This function encodes a radar image to BUFR runlength-code.
int rldec_to_mem (varfl *vals, unsigned short **img, int *nvals, int *nrows, int *ncols)
 Decodes a BUFR-runlength-encoded radar image to memory.
int rlenc_compress_line_new (int line, unsigned int *src, int ncols, varfl **dvals, int *nvals)
 Encodes one line of a radar image to BUFR runlength-code.
void rldec_decompress_line (varfl *vals, unsigned int *dest, int *ncols, int *nvals)
 Decodes one line of a radar image from BUFR runlength-code.
void rldec_get_size (varfl *vals, int *nrows, int *ncols)
 Gets the number of rows and columns of a runlength compressed image.


Detailed Description

This file contains all functions used for run-length encoding and decoding of image files.

Definition in file rlenc.c.


Generated on Tue Dec 18 16:52:45 2007 for OPERA BUFR software by  doxygen 1.5.4