2 BROTLI UEFI header file
4 Allows BROTLI code to build under UEFI (edk2) build environment
6 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #ifndef __BROTLI_DECOMPRESS_INTERNAL_H__
18 #define __BROTLI_DECOMPRESS_INTERNAL_H__
21 #include <Library/BaseLib.h>
22 #include <Library/BaseMemoryLib.h>
23 #include <Library/DebugLib.h>
24 #include <Library/ExtractGuidedSectionLib.h>
25 #include <common/types.h>
26 #include <dec/decode.h>
34 #define FILE_BUFFER_SIZE 65536
35 #define BROTLI_INFO_SIZE 8
36 #define BROTLI_DECODE_MAX 8
37 #define BROTLI_SCRATCH_MAX 16
39 #define memcpy CopyMem
40 #define memmove CopyMem
41 #define memset(dest,ch,count) SetMem(dest,(UINTN)(count),(UINT8)(ch))
55 BrotliUefiDecompressGetInfo (
56 IN CONST VOID
*Source
,
58 OUT UINT32
*DestinationSize
,
59 OUT UINT32
*ScratchSize
64 BrotliUefiDecompress (
65 IN CONST VOID
*Source
,
67 IN OUT VOID
*Destination
,