]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/Common/Decompress.h
3 Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Header file for decompression routine.
19 Providing both EFI and Tiano decompress algorithms.
23 #ifndef _DECOMPRESS_H_
24 #define _DECOMPRESS_H_
32 OUT UINT32
*ScratchSize
38 The implementation is same as that of EFI_DECOMPRESS_PROTOCOL.GetInfo().
42 This - The protocol instance pointer
43 Source - The source buffer containing the compressed data.
44 SrcSize - The size of source buffer
45 DstSize - The size of destination buffer.
46 ScratchSize - The size of scratch buffer.
50 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.
51 EFI_INVALID_PARAMETER - The source data is corrupted
61 IN OUT VOID
*Destination
,
70 The implementation is same as that of EFI_DECOMPRESS_PROTOCOL.Decompress().
74 This - The protocol instance pointer
75 Source - The source buffer containing the compressed data.
76 SrcSize - The size of source buffer
77 Destination - The destination buffer to store the decompressed data
78 DstSize - The size of destination buffer.
79 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
80 ScratchSize - The size of scratch buffer.
84 EFI_SUCCESS - Decompression is successfull
85 EFI_INVALID_PARAMETER - The source data is corrupted
96 OUT UINT32
*ScratchSize
102 The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.GetInfo().
106 This - The protocol instance pointer
107 Source - The source buffer containing the compressed data.
108 SrcSize - The size of source buffer
109 DstSize - The size of destination buffer.
110 ScratchSize - The size of scratch buffer.
114 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.
115 EFI_INVALID_PARAMETER - The source data is corrupted
125 IN OUT VOID
*Destination
,
127 IN OUT VOID
*Scratch
,
128 IN UINT32 ScratchSize
134 The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.Decompress().
138 This - The protocol instance pointer
139 Source - The source buffer containing the compressed data.
140 SrcSize - The size of source buffer
141 Destination - The destination buffer to store the decompressed data
142 DstSize - The size of destination buffer.
143 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
144 ScratchSize - The size of scratch buffer.
148 EFI_SUCCESS - Decompression is successfull
149 EFI_INVALID_PARAMETER - The source data is corrupted
156 (*GETINFO_FUNCTION
) (
160 OUT UINT32
*ScratchSize
165 (*DECOMPRESS_FUNCTION
) (
168 IN OUT VOID
*Destination
,
170 IN OUT VOID
*Scratch
,
171 IN UINT32 ScratchSize