summaryrefslogtreecommitdiff
path: root/Tools/CCode/Source/CompressDll/CompressDll.c
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-07 05:29:07 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-07 05:29:07 +0000
commit30f80dd8dedf2c333be4616442daf5d1b412e23e (patch)
tree81c72954148b30a1a9ac81ff160b2279e5e8faba /Tools/CCode/Source/CompressDll/CompressDll.c
parent61e61e3d30f3965953dcfe646d15a17bd9173da1 (diff)
downloadedk2-platforms-30f80dd8dedf2c333be4616442daf5d1b412e23e.tar.xz
The main issue want to be resolve is that some tools need EfiCompress and other tools need TianoCompress, but only common Compress(indeed is TianoCompress) is provided in tool/CCode/Common.
EfiCompress and TianoCompress are all originated from LZ77 algorithms and they have very little different, that different position set for Huffman code. EfiCompress is defined in EFI 1.1 spec and EfiRom tool need it to create a recognized compressed EFI driver. TianoCompress is for pursuer more size saving and it used be GenFfs and GenSection tools. So this patch: 1) Split EfiComress and TianoCompress in edkII’s tools 2) Change EfiRom tool use EfiCompress and GenFfs/GenSection use TianoCompress git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2064 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/CCode/Source/CompressDll/CompressDll.c')
-rw-r--r--Tools/CCode/Source/CompressDll/CompressDll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/CCode/Source/CompressDll/CompressDll.c b/Tools/CCode/Source/CompressDll/CompressDll.c
index cc06f26c05..f46e603283 100644
--- a/Tools/CCode/Source/CompressDll/CompressDll.c
+++ b/Tools/CCode/Source/CompressDll/CompressDll.c
@@ -15,11 +15,11 @@
typedef long long __int64;/*For cygwin build*/
#endif
#include "CompressDll.h"
-#include "EfiCompress.h"
+#include "Compress.h"
extern
EFI_STATUS
-Compress (
+TianoCompress (
IN UINT8 *SrcBuffer,
IN UINT32 SrcSize,
IN UINT8 *DstBuffer,
@@ -47,7 +47,7 @@ JNIEXPORT jbyteArray JNICALL Java_org_tianocore_framework_tasks_Compress_CallCo
// First call compress function and get need buffer size
//
- Result = Compress (
+ Result = TianoCompress (
(char*) InputBuffer,
SourceSize,
DestBuffer,
@@ -61,7 +61,7 @@ JNIEXPORT jbyteArray JNICALL Java_org_tianocore_framework_tasks_Compress_CallCo
//
// Second call compress and get the DestBuffer value
//
- Result = Compress(
+ Result = TianoCompress(
(char*) InputBuffer,
SourceSize,
DestBuffer,