-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from gditeck/decouple-lzo
Decouple and update lzo.
- Loading branch information
Showing
32 changed files
with
72 additions
and
12,470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "stdafx.h" | ||
#include "lzo_compressor.h" | ||
#include "lzo/lzo1x.h" | ||
|
||
int lzo_compress_dict(const void *input, u32 inputSize, void *output, u32 &outputSize, | ||
void *workMem, const void *dict, u32 dictSize) | ||
{ | ||
return lzo1x_999_compress_dict((lzo_bytep)input, inputSize, (lzo_bytep)output, (lzo_uintp)&outputSize, | ||
workMem, (lzo_bytep)dict, dictSize); | ||
} | ||
|
||
int lzo_decompress_dict(const void *input, u32 inputSize, void *output, u32 &outputSize, | ||
void *workMem, const void *dict, u32 dictSize) | ||
{ | ||
return lzo1x_decompress_dict_safe((lzo_bytep)input, inputSize, (lzo_bytep)output, (lzo_uintp)&outputSize, | ||
workMem, (lzo_bytep)dict, dictSize); | ||
} | ||
|
||
int lzo_initialize() | ||
{ return lzo_init(); } | ||
|
||
u32 lzo_get_workmem_size() | ||
{ return LZO1X_999_MEM_COMPRESS; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
#include "xrCore/xrCore.h" | ||
|
||
XRCORE_API int lzo_compress_dict(const void *input, u32 inputSize, void *output, u32 &outputSize, | ||
void *workMem, const void *dict, u32 dictSize); | ||
|
||
XRCORE_API int lzo_decompress_dict(const void *input, u32 inputSize, void *output, u32 &outputSize, | ||
void *workMem, const void *dict, u32 dict_len); | ||
|
||
XRCORE_API int lzo_initialize(); | ||
|
||
XRCORE_API u32 lzo_get_workmem_size(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
|
||
|
||
#include "rt_lzo1x.h" | ||
#include "lzo/lzo1x.h" | ||
|
||
|
||
#define HEAP_ALLOC(var,size) \ | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/xrCore/rt_compressor9.cpp → src/xrCore/Compression/rt_compressor9.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.