mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Add unpacktool
This commit is contained in:
21
unpacktool/BWT.h
Normal file
21
unpacktool/BWT.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef __BWT_H__
|
||||
#define __BWT_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void CalculateInverseBWT(uint32_t *transform, uint8_t *block, int blocklen);
|
||||
void UnsortBWT(uint8_t *dest, uint8_t *src, int blocklen, int firstindex, uint32_t *transformbuf);
|
||||
|
||||
void UnsortST4(uint8_t *dest, uint8_t *src, int blocklen, int firstindex, uint32_t *transformbuf);
|
||||
|
||||
typedef struct MTFState
|
||||
{
|
||||
int table[256];
|
||||
} MTFState;
|
||||
|
||||
void ResetMTFDecoder(MTFState *self);
|
||||
int DecodeMTF(MTFState *self, int symbol);
|
||||
void DecodeMTFBlock(uint8_t *block, int blocklen);
|
||||
void DecodeM1FFNBlock(uint8_t *block, int blocklen, int order);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user