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

rle_row_alloc - Allocate scanline memory for rle_putrow or rle_getrow.

rle_row_free - Free scanline memory allocated by rle_row_alloc.

#include <rle.h>

rle_row_alloc( the_hdr, scanp )
rle_hdr * the_hdr;
rle_pixel *** scanp;

rle_row_free( the_hdr, scanp )
rle_hdr * the_hdr;
rle_pixel ** scanp;

The function rle_row_alloc is provided to make it easier to allocate storage for use by the RLE functions. It examines the the_hdr structure provided and returns (via its other argument) newly allocated space suitable for reading from or writing to an RLE file described by the the_hdr structure. rle_row_alloc allocates (the_hdrxmax + 1) bytes for each scanline, to allow for rle_getrow usage. Only those rows enabled by the bit-map in the_hdr will have memory allocated.

To free memory allocated by rle_row_alloc(3), call rle_row_free with the pointer to the allocated storage.

rle_hdr(3), rle_getrow(3), rle_putrow(3), librle(3), RLE(5).

Spencer W. Thomas
University of Utah

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.