24 lines
484 B
C
24 lines
484 B
C
|
|
||
|
#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;
|
||
|
|
||
|
void (*setPixel)(DecodeBuffer *buf, int src_x, int src_y, int src_w, int src_h, uint8_t color);
|
||
|
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
|