]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiCustomizedCompress.h
3 Copyright (c) 2004, 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.
14 EfiCustomizedCompress.h
18 Header file for Customized compression routine
22 #ifndef _EFICUSTOMIZEDCOMPRESS_H
23 #define _EFICUSTOMIZEDCOMPRESS_H
25 SetCustomizedCompressionType (
33 The implementation of Customized SetCompressionType().
36 Type - The type if compression.
40 EFI_SUCCESS - The type has been set.
41 EFI_UNSUPPORTED - This type is unsupported.
50 OUT UINT32
*ScratchSize
57 The implementation of Customized GetInfo().
61 Source - The source buffer containing the compressed data.
62 SrcSize - The size of source buffer
63 DstSize - The size of destination buffer.
64 ScratchSize - The size of scratch buffer.
68 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.
69 EFI_INVALID_PARAMETER - The source data is corrupted
73 CustomizedDecompress (
76 IN OUT VOID
*Destination
,
86 The implementation of Customized Decompress().
90 This - The protocol instance pointer
91 Source - The source buffer containing the compressed data.
92 SrcSize - The size of source buffer
93 Destination - The destination buffer to store the decompressed data
94 DstSize - The size of destination buffer.
95 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
96 ScratchSize - The size of scratch buffer.
100 EFI_SUCCESS - Decompression is successfull
101 EFI_INVALID_PARAMETER - The source data is corrupted
109 IN OUT UINT32
*DstSize
116 The Customized compression routine.
120 SrcBuffer - The buffer storing the source data
121 SrcSize - The size of source data
122 DstBuffer - The buffer to store the compressed data
123 DstSize - On input, the size of DstBuffer; On output,
124 the size of the actual compressed data.
128 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,
129 DstSize contains the size needed.
130 EFI_SUCCESS - Compression is successful.