]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/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
23 #include <UefiBaseTypes.h>
25 #ifndef _EFICUSTOMIZEDCOMPRESS_H
26 #define _EFICUSTOMIZEDCOMPRESS_H
28 SetCustomizedCompressionType (
37 The implementation of Customized SetCompressionType().
40 Type - The type if compression.
44 EFI_SUCCESS - The type has been set.
45 EFI_UNSUPPORTED - This type is unsupported.
54 OUT UINT32
*ScratchSize
62 The implementation of Customized GetInfo().
66 Source - The source buffer containing the compressed data.
67 SrcSize - The size of source buffer
68 DstSize - The size of destination buffer.
69 ScratchSize - The size of scratch buffer.
73 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
74 EFI_INVALID_PARAMETER - The source data is corrupted
78 CustomizedDecompress (
81 IN OUT VOID
*Destination
,
92 The implementation of Customized Decompress().
96 This - The protocol instance pointer
97 Source - The source buffer containing the compressed data.
98 SrcSize - The size of source buffer
99 Destination - The destination buffer to store the decompressed data
100 DstSize - The size of destination buffer.
101 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
102 ScratchSize - The size of scratch buffer.
106 EFI_SUCCESS - Decompression is successfull
107 EFI_INVALID_PARAMETER - The source data is corrupted
115 IN OUT UINT32
*DstSize
123 The Customized compression routine.
127 SrcBuffer - The buffer storing the source data
128 SrcSize - The size of source data
129 DstBuffer - The buffer to store the compressed data
130 DstSize - On input, the size of DstBuffer; On output,
131 the size of the actual compressed data.
135 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,
136 DstSize contains the size needed.
137 EFI_SUCCESS - Compression is successful.