GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  RLE_RAW_ALLOC (3)

NAME

rle_raw_alloc - Allocate memory for rle_getraw or rle_putraw.
rle_raw_free - free memory allocated by rle_raw_alloc.

CONTENTS

Synopsis
Description
See Also
Author
Bugs

SYNOPSIS

#include <rle.h>
#include <rle_raw.h>

rle_raw_alloc( the_hdr, scanp, nrawp )
rle_hdr * the_hdr;
rle_op *** scanp;
int ** nrawp;

rle_raw_free( the_hdr, scanp, nrawp )
rle_hdr * the_hdr;
rle_op ** scanp;
int * nrawp;

DESCRIPTION

The function rle_raw_alloc is provided to make it easier to allocate storage for use by the RLE "raw" functions. It examines the the_hdr structure provided and return (via its other arguments) newly allocated space suitable for reading from or writing to an RLE file described by the the_hdr structure. Rle_raw_alloc allocates (the_hdr->xmax - the_hdr->xmin + 1) elements per channel, which is more than should ever be needed for a valid RLE file.

Rle_raw_free should be used to free memory allocated by rle_raw_alloc(3). The arguments are pointers to the allocated storage. This is distinct from rle_freeraw(3), which only frees pixel arrays referenced by individual rle_op structures, while rle_raw_free frees the storage consumed by the arrays of pointers and rle_op structures. In fact, rle_freeraw should be called before calling rle_raw_free.

SEE ALSO

rle_hdr(3), rle_op(3), rle_putraw(3), rle_getraw(3), rle_freeraw(3), librle(3), RLE(5).

AUTHOR

Spencer W. Thomas
University of Utah

BUGS

The naming confusion between rle_freeraw and rle_raw_free is unfortunate.
Search for    or go to Top of page |  Section 3 |  Main Index


3 RLE_RAW_ALLOC (3) 2/2/87

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.