]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Common/Decompress.h
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. 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 compression routine
22 #ifndef _EFI_DECOMPRESS_H
23 #define _EFI_DECOMPRESS_H
25 #include <Common/UefiBaseTypes.h>
32 OUT UINT32
*ScratchSize
38 The implementation Efi Decompress GetInfo().
42 Source - The source buffer containing the compressed data.
43 SrcSize - The size of source buffer
44 DstSize - The size of destination buffer.
45 ScratchSize - The size of scratch buffer.
49 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
50 EFI_INVALID_PARAMETER - The source data is corrupted
58 IN OUT VOID
*Destination
,
67 The implementation of Efi Decompress().
71 Source - The source buffer containing the compressed data.
72 SrcSize - The size of source buffer
73 Destination - The destination buffer to store the decompressed data
74 DstSize - The size of destination buffer.
75 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
76 ScratchSize - The size of scratch buffer.
80 EFI_SUCCESS - Decompression is successfull
81 EFI_INVALID_PARAMETER - The source data is corrupted
90 OUT UINT32
*ScratchSize
96 The implementation Tiano Decompress GetInfo().
100 Source - The source buffer containing the compressed data.
101 SrcSize - The size of source buffer
102 DstSize - The size of destination buffer.
103 ScratchSize - The size of scratch buffer.
107 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
108 EFI_INVALID_PARAMETER - The source data is corrupted
116 IN OUT VOID
*Destination
,
118 IN OUT VOID
*Scratch
,
119 IN UINT32 ScratchSize
125 The implementation of Tiano Decompress().
129 Source - The source buffer containing the compressed data.
130 SrcSize - The size of source buffer
131 Destination - The destination buffer to store the decompressed data
132 DstSize - The size of destination buffer.
133 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
134 ScratchSize - The size of scratch buffer.
138 EFI_SUCCESS - Decompression is successfull
139 EFI_INVALID_PARAMETER - The source data is corrupted
145 (*GETINFO_FUNCTION
) (
149 OUT UINT32
*ScratchSize
154 (*DECOMPRESS_FUNCTION
) (
157 IN OUT VOID
*Destination
,
159 IN OUT VOID
*Scratch
,
160 IN UINT32 ScratchSize