mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
15 lines
No EOL
772 B
C
15 lines
No EOL
772 B
C
#pragma once
|
||
|
||
// Copyright (C) 2014 Hykem <hykem@hotmail.com>
|
||
// Licensed under the terms of the GNU GPL, version 3
|
||
// http://www.gnu.org/licenses/gpl-3.0.txt
|
||
|
||
// Reverse-engineered custom Lempel–Ziv–Markov based compression.
|
||
|
||
#include <string.h>
|
||
|
||
void decode_range(unsigned int *range, unsigned int *code, unsigned char **src);
|
||
int decode_bit(unsigned int *range, unsigned int *code, int *index, unsigned char **src, unsigned char *c);
|
||
int decode_number(unsigned char *ptr, int index, int *bit_flag, unsigned int *range, unsigned int *code, unsigned char **src);
|
||
int decode_word(unsigned char *ptr, int index, int *bit_flag, unsigned int *range, unsigned int *code, unsigned char **src);
|
||
int decompress(unsigned char *out, unsigned char *in, unsigned int size); |