]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Common/Decompress.h
2 Header file for compression routine
4 Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _EFI_DECOMPRESS_H
16 #define _EFI_DECOMPRESS_H
18 #include <Common/UefiBaseTypes.h>
25 OUT UINT32
*ScratchSize
31 The implementation Efi Decompress GetInfo().
35 Source - The source buffer containing the compressed data.
36 SrcSize - The size of source buffer
37 DstSize - The size of destination buffer.
38 ScratchSize - The size of scratch buffer.
42 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.
43 EFI_INVALID_PARAMETER - The source data is corrupted
51 IN OUT VOID
*Destination
,
60 The implementation of Efi Decompress().
64 Source - The source buffer containing the compressed data.
65 SrcSize - The size of source buffer
66 Destination - The destination buffer to store the decompressed data
67 DstSize - The size of destination buffer.
68 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
69 ScratchSize - The size of scratch buffer.
73 EFI_SUCCESS - Decompression is successfull
74 EFI_INVALID_PARAMETER - The source data is corrupted
83 OUT UINT32
*ScratchSize
89 The implementation Tiano Decompress GetInfo().
93 Source - The source buffer containing the compressed data.
94 SrcSize - The size of source buffer
95 DstSize - The size of destination buffer.
96 ScratchSize - The size of scratch buffer.
100 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.
101 EFI_INVALID_PARAMETER - The source data is corrupted
109 IN OUT VOID
*Destination
,
111 IN OUT VOID
*Scratch
,
112 IN UINT32 ScratchSize
118 The implementation of Tiano Decompress().
122 Source - The source buffer containing the compressed data.
123 SrcSize - The size of source buffer
124 Destination - The destination buffer to store the decompressed data
125 DstSize - The size of destination buffer.
126 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
127 ScratchSize - The size of scratch buffer.
131 EFI_SUCCESS - Decompression is successfull
132 EFI_INVALID_PARAMETER - The source data is corrupted
138 (*GETINFO_FUNCTION
) (
142 OUT UINT32
*ScratchSize
147 (*DECOMPRESS_FUNCTION
) (
150 IN OUT VOID
*Destination
,
152 IN OUT VOID
*Scratch
,
153 IN UINT32 ScratchSize
160 OUT VOID
**Destination
,