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
RLE_RAW_ALLOC(3) FreeBSD Library Functions Manual RLE_RAW_ALLOC(3)

rle_raw_alloc - Allocate memory for rle_getraw or rle_putraw.

rle_raw_free - free memory allocated by rle_raw_alloc.

#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;

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_hdrxmax - the_hdrxmin + 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.

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

Spencer W. Thomas
University of Utah

The naming confusion between rle_freeraw and rle_raw_free is unfortunate.
2/2/87 4th Berkeley Distribution

Search for    or go to Top of page |  Section 3 |  Main Index

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