/* * ============================================================================ * DATA_FMT: Data format conversion functions * * Author: J. Zbiciak * Last Revision: 8/29/98 * ============================================================================ * * Exported functionality declared in this file: * * FMT_RLE_ENCODE -- RLE-encodes an image or font. * FMT_RLE_DECODE -- RLE-decodes an image or font. * * ============================================================================ */ #ifndef _DATA_FMT_H #define _DATA_FMT_H /* * ============================================================================ * FMT_RLE_ENCODE -- RLE-encodes an image or font. * * Accepts a pointer to an image or font record, and RLE-encodes it. Also * packs the header, etc. into the memory image. Relies on encode_img_hdr. * ============================================================================ */ int fmt_rle_encode ( res_rec_t *record ); /* * ============================================================================ * FMT_RLE_DECODE -- RLE-decodes an image or font. * * Accepts a pointer to an image or font record, and decodes it. Also * allocates a res_img_t structure and unpacks the header into it. Relies * on decode_img_hdr for this. * ============================================================================ */ int fmt_rle_decode ( res_rec_t *record ); #endif /* * ============================================================================ * Copyright (c) 1998, Joseph Zbiciak. * ============================================================================ */