mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-24 20:14:39 -04:00
Implement custom LZMA dictionary size support, fixes #154
This commit is contained in:
parent
e6f84f9f7d
commit
4bee991c94
9 changed files with 93 additions and 33 deletions
|
@ -64,7 +64,8 @@ LzmaCompress (
|
|||
CONST UINT8 *Source,
|
||||
UINT32 SourceSize,
|
||||
UINT8 *Destination,
|
||||
UINT32 *DestinationSize
|
||||
UINT32 *DestinationSize,
|
||||
UINT32 DictionarySize
|
||||
)
|
||||
{
|
||||
SRes LzmaResult;
|
||||
|
@ -79,8 +80,7 @@ LzmaCompress (
|
|||
}
|
||||
|
||||
LzmaEncProps_Init(&props);
|
||||
// TODO: need to detect this instead of hardcoding
|
||||
props.dictSize = LZMA_DICTIONARY_SIZE;
|
||||
props.dictSize = DictionarySize;
|
||||
props.level = 9;
|
||||
props.fb = 273;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue