mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 04:02:42 +01:00
c3bf9bd4a0
5 files in Crypto were licensed under GPL-3.0-only which is incompatible with our project's GPL-2.0-only license. They have now been corrected to use GPL-2.0-or-later.
16 lines
794 B
C
16 lines
794 B
C
#pragma once
|
||
|
||
// Copyright (C) 2014 Hykem <hykem@hotmail.com>
|
||
// Licensed under the terms of the GNU GPL, version 2.0 or later versions.
|
||
// http://www.gnu.org/licenses/gpl-2.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);
|