-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nitrocaster
committed
Oct 3, 2015
1 parent
27abe17
commit 1256d62
Showing
6 changed files
with
25 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
#include "stdafx.h" | ||
#include "lzo_compressor.h" | ||
#include "rt_lzo1x.h" | ||
|
||
int lzo_compress_dict(const lzo_bytep in, lzo_uint in_len, | ||
lzo_bytep out, lzo_uintp out_len, | ||
lzo_voidp wrkmem, | ||
const lzo_bytep dict, lzo_uint dict_len) | ||
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(in, in_len, out, out_len, wrkmem, dict, dict_len); | ||
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 lzo_bytep in, lzo_uint in_len, | ||
lzo_bytep out, lzo_uintp out_len, | ||
lzo_voidp wrkmem /* NOT USED */, | ||
const lzo_bytep dict, lzo_uint dict_len) | ||
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(in, in_len, out, out_len, wrkmem, dict, dict_len); | ||
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(); | ||
} | ||
{ 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 |
---|---|---|
@@ -1,23 +1,12 @@ | ||
#ifndef LZO_COMPRESSOR_INCLUDED | ||
#define LZO_COMPRESSOR_INCLUDED | ||
#pragma once | ||
#include "xrCore/xrCore.h" | ||
|
||
#include "rt_lzo1x.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_compress_dict( | ||
const lzo_bytep in, lzo_uint in_len, | ||
lzo_bytep out, lzo_uintp out_len, | ||
lzo_voidp wrkmem, | ||
const lzo_bytep dict, lzo_uint dict_len); | ||
|
||
XRCORE_API int lzo_decompress_dict( | ||
const lzo_bytep in, lzo_uint in_len, | ||
lzo_bytep out, lzo_uintp out_len, | ||
lzo_voidp wrkmem /* NOT USED */, | ||
const lzo_bytep dict, lzo_uint dict_len); | ||
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(); | ||
|
||
|
||
|
||
|
||
#endif //#ifndef LZO_COMPRESSOR_INCLUDED | ||
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
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
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