]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Common/Decompress.h
2 Header file for compression routine
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _EFI_DECOMPRESS_H
10 #define _EFI_DECOMPRESS_H
12 #include <Common/UefiBaseTypes.h>
19 OUT UINT32
*ScratchSize
25 The implementation Efi Decompress GetInfo().
29 Source - The source buffer containing the compressed data.
30 SrcSize - The size of source buffer
31 DstSize - The size of destination buffer.
32 ScratchSize - The size of scratch buffer.
36 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.
37 EFI_INVALID_PARAMETER - The source data is corrupted
45 IN OUT VOID
*Destination
,
54 The implementation of Efi Decompress().
58 Source - The source buffer containing the compressed data.
59 SrcSize - The size of source buffer
60 Destination - The destination buffer to store the decompressed data
61 DstSize - The size of destination buffer.
62 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
63 ScratchSize - The size of scratch buffer.
67 EFI_SUCCESS - Decompression is successful
68 EFI_INVALID_PARAMETER - The source data is corrupted
77 OUT UINT32
*ScratchSize
83 The implementation Tiano Decompress GetInfo().
87 Source - The source buffer containing the compressed data.
88 SrcSize - The size of source buffer
89 DstSize - The size of destination buffer.
90 ScratchSize - The size of scratch buffer.
94 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.
95 EFI_INVALID_PARAMETER - The source data is corrupted
103 IN OUT VOID
*Destination
,
105 IN OUT VOID
*Scratch
,
106 IN UINT32 ScratchSize
112 The implementation of Tiano Decompress().
116 Source - The source buffer containing the compressed data.
117 SrcSize - The size of source buffer
118 Destination - The destination buffer to store the decompressed data
119 DstSize - The size of destination buffer.
120 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
121 ScratchSize - The size of scratch buffer.
125 EFI_SUCCESS - Decompression is successful
126 EFI_INVALID_PARAMETER - The source data is corrupted
132 (*GETINFO_FUNCTION
) (
136 OUT UINT32
*ScratchSize
141 (*DECOMPRESS_FUNCTION
) (
144 IN OUT VOID
*Destination
,
146 IN OUT VOID
*Scratch
,
147 IN UINT32 ScratchSize
154 OUT VOID
**Destination
,