Table of Contents

Name

MAGReader - initializes MAG image reader

Synopsis


#include <maglo.h>
int MAGReader(MagImage *mag, MagReader *rd);

Description

MAGReader() initializes MagReader at pre-allocated storage rd against a MAG file to which mag is associated.

Call MAGReaderNextPixel function with rd initialized with this function to retreive image data.

After reading all the data from a image, MAGReaderDelete should be called to return unused resources to system.

Return Values

On successful completion MAGReader function returns MAGERR_NOERROR. Otherwise one of following error codes is returned:

MAGERR_DATA_PARTIAL
The image data is truncated.
MAGERR_MEM_ERROR
Out of memory.

See Also

MAGReaderDelete(3) , MAGReaderNextPixel(3) , libmaglo(7)


Table of Contents