if (compress)
{
- expand_length = LZ4_uncompress(data_start, buffer,
- block_count * etc_block_size);
+ expand_length = LZ4_decompress_fast(data_start, buffer,
+ block_count * etc_block_size);
// That's an overhead for now, need to be fixed
if (expand_length != block_length)
goto on_error;
{
case EET_COMPRESSION_VERYFAST:
case EET_COMPRESSION_SUPERFAST:
- if (LZ4_uncompress((const char *)body,
- (char *)d, w * h * 4)
+ if (LZ4_decompress_fast((const char *)body,
+ (char *)d, w * h * 4)
!= (size - 32)) return 0;
break;
default:
dtmp = malloc(src_w * src_h * 4);
if (!dtmp) return 0;
- if (LZ4_uncompress((const char *)body,
- dtmp, w * h * 4)
+ if (LZ4_decompress_fast((const char *)body,
+ dtmp, w * h * 4)
!= (size - 32))
{
free(dtmp);
{
case EET_COMPRESSION_VERYFAST:
case EET_COMPRESSION_SUPERFAST:
- ret = LZ4_uncompress(tmp_data, data, dlen);
+ ret = LZ4_decompress_fast(tmp_data, data, dlen);
if (ret != compr_size)
{
if (free_tmp)
{
case EET_COMPRESSION_VERYFAST:
case EET_COMPRESSION_SUPERFAST:
- ret = LZ4_uncompress(data, tmp, size);
+ ret = LZ4_decompress_fast(data, tmp, size);
if (ret != compr_size)
{
free(tmp);
{
case EET_COMPRESSION_VERYFAST:
case EET_COMPRESSION_SUPERFAST:
- ret = LZ4_uncompress(data, tmp, size);
+ ret = LZ4_decompress_fast(data, tmp, size);
if (ret != compr_size)
{
free(tmp);