2019-10-27 17:00:00 +01:00
|
|
|
|
|
|
|
#ifndef DECODE_MAC_H__
|
|
|
|
#define DECODE_MAC_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "file.h"
|
|
|
|
|
|
|
|
uint8_t *decodeLzss(File &f, uint32_t &decodedSize);
|
|
|
|
|
|
|
|
struct DecodeBuffer {
|
|
|
|
uint8_t *ptr;
|
|
|
|
int w, h, pitch;
|
|
|
|
int x, y;
|
|
|
|
bool xflip;
|
|
|
|
|
2019-10-27 17:00:00 +01:00
|
|
|
void (*setPixel)(DecodeBuffer *buf, int x, int y, uint8_t color);
|
2019-10-27 17:00:00 +01:00
|
|
|
void *dataPtr;
|
|
|
|
};
|
|
|
|
|
|
|
|
void decodeC103(const uint8_t *a3, int w, int h, DecodeBuffer *buf);
|
|
|
|
void decodeC211(const uint8_t *a3, int w, int h, DecodeBuffer *buf);
|
|
|
|
|
|
|
|
#endif
|