]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/Common/EfiCustomizedCompress.h
3 Copyright (c) 2004, 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.
14 EfiCustomizedCompress.h
18 Header file for Customized compression routine
22 #ifndef _EFICUSTOMIZEDCOMPRESS_H
23 #define _EFICUSTOMIZEDCOMPRESS_H
25 SetCustomizedCompressionType (
34 The implementation of Customized SetCompressionType().
37 Type - The type if compression.
41 EFI_SUCCESS - The type has been set.
42 EFI_UNSUPPORTED - This type is unsupported.
51 OUT UINT32
*ScratchSize
59 The implementation of Customized GetInfo().
63 Source - The source buffer containing the compressed data.
64 SrcSize - The size of source buffer
65 DstSize - The size of destination buffer.
66 ScratchSize - The size of scratch buffer.
70 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
71 EFI_INVALID_PARAMETER - The source data is corrupted
75 CustomizedDecompress (
78 IN OUT VOID
*Destination
,
89 The implementation of Customized Decompress().
93 This - The protocol instance pointer
94 Source - The source buffer containing the compressed data.
95 SrcSize - The size of source buffer
96 Destination - The destination buffer to store the decompressed data
97 DstSize - The size of destination buffer.
98 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
99 ScratchSize - The size of scratch buffer.
103 EFI_SUCCESS - Decompression is successfull
104 EFI_INVALID_PARAMETER - The source data is corrupted
112 IN OUT UINT32
*DstSize
120 The Customized compression routine.
124 SrcBuffer - The buffer storing the source data
125 SrcSize - The size of source data
126 DstBuffer - The buffer to store the compressed data
127 DstSize - On input, the size of DstBuffer; On output,
128 the size of the actual compressed data.
132 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,
133 DstSize contains the size needed.
134 EFI_SUCCESS - Compression is successful.