|
typedef MERROR_RETVAL(* | mfmt_decode) (mfile_t *p_file_in, off_t file_offset, off_t file_sz, size_t line_w, MAUG_MHANDLE buffer_out, off_t buffer_out_sz, uint8_t flags) |
| Callback to decode compressed data.
|
|
typedef MERROR_RETVAL(* | mfmt_read_header_cb) (struct MFMT_STRUCT *header, mfile_t *p_file_in, uint32_t file_offset, off_t file_sz, uint8_t *p_flags) |
| Callback to read image header and get properties.
|
|
typedef MERROR_RETVAL(* | mfmt_read_palette_cb) (struct MFMT_STRUCT *header, uint32_t *palette, size_t palette_sz, mfile_t *p_file_in, uint32_t file_offset, off_t file_sz, uint8_t flags) |
| Callback to read image palette into 24-bit RGB values.
|
|
typedef MERROR_RETVAL(* | mfmt_read_px_cb) (struct MFMT_STRUCT *header, uint8_t SEG_FAR *px, off_t px_sz, mfile_t *p_file_in, uint32_t file_offset, off_t file_sz, uint8_t flags) |
| Callback to read image pixels into 8-bit values.
|
|
|
MERROR_RETVAL | mfmt_decode_rle (mfile_t *p_file_in, off_t file_offset, off_t file_sz, size_t line_w, MAUG_MHANDLE buffer_out, off_t buffer_out_sz, uint8_t flags) |
| Decode RLE-encoded data from an input file into a memory buffer.
|
|
MERROR_RETVAL | mfmt_read_bmp_header (struct MFMT_STRUCT *header, mfile_t *p_file_in, uint32_t file_offset, off_t file_sz, uint8_t *p_flags) |
|
MERROR_RETVAL | mfmt_read_bmp_palette (struct MFMT_STRUCT *header, uint32_t *palette, size_t palette_sz, mfile_t *p_file_in, uint32_t file_offset, off_t file_sz, uint8_t flags) |
|
MERROR_RETVAL | mfmt_read_bmp_px (struct MFMT_STRUCT *header, uint8_t SEG_FAR *px, off_t px_sz, mfile_t *p_file_in, uint32_t file_offset, off_t file_sz, uint8_t flags) |
| Read mfmt_bitmap pixels into an 8-bit memory bitmap.
|
|