]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompressLibInternal.h
2 BROTLI UEFI header file
4 Allows BROTLI code to build under UEFI (edk2) build environment
6 Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef __BROTLI_DECOMPRESS_INTERNAL_H__
12 #define __BROTLI_DECOMPRESS_INTERNAL_H__
15 #include <Library/BaseLib.h>
16 #include <Library/BaseMemoryLib.h>
17 #include <Library/DebugLib.h>
18 #include <Library/ExtractGuidedSectionLib.h>
19 #include <brotli/types.h>
20 #include <brotli/decode.h>
28 #define FILE_BUFFER_SIZE 65536
29 #define BROTLI_INFO_SIZE 8
30 #define BROTLI_DECODE_MAX 8
31 #define BROTLI_SCRATCH_MAX 16
33 #define memcpy CopyMem
34 #define memmove CopyMem
35 #define memset(dest,ch,count) SetMem(dest,(UINTN)(count),(UINT8)(ch))
49 BrotliUefiDecompressGetInfo (
50 IN CONST VOID
*Source
,
52 OUT UINT32
*DestinationSize
,
53 OUT UINT32
*ScratchSize
58 BrotliUefiDecompress (
59 IN CONST VOID
*Source
,
61 IN OUT VOID
*Destination
,