1 | /** @file
|
---|
2 | BROTLI UEFI header file
|
---|
3 |
|
---|
4 | Allows BROTLI code to build under UEFI (edk2) build environment
|
---|
5 |
|
---|
6 | Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
|
---|
7 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 |
|
---|
9 | **/
|
---|
10 |
|
---|
11 | #ifndef __BROTLI_DECOMPRESS_INTERNAL_H__
|
---|
12 | #define __BROTLI_DECOMPRESS_INTERNAL_H__
|
---|
13 |
|
---|
14 | #include <PiPei.h>
|
---|
15 | #include <Library/ExtractGuidedSectionLib.h>
|
---|
16 | #include <brotli/c/include/brotli/types.h>
|
---|
17 | #include <brotli/c/include/brotli/decode.h>
|
---|
18 |
|
---|
19 | typedef struct
|
---|
20 | {
|
---|
21 | VOID *Buff;
|
---|
22 | UINTN BuffSize;
|
---|
23 | } BROTLI_BUFF;
|
---|
24 |
|
---|
25 | #define FILE_BUFFER_SIZE 65536
|
---|
26 | #define BROTLI_INFO_SIZE 8
|
---|
27 | #define BROTLI_DECODE_MAX 8
|
---|
28 | #define BROTLI_SCRATCH_MAX 16
|
---|
29 |
|
---|
30 | EFI_STATUS
|
---|
31 | EFIAPI
|
---|
32 | BrotliUefiDecompressGetInfo (
|
---|
33 | IN CONST VOID *Source,
|
---|
34 | IN UINT32 SourceSize,
|
---|
35 | OUT UINT32 *DestinationSize,
|
---|
36 | OUT UINT32 *ScratchSize
|
---|
37 | );
|
---|
38 |
|
---|
39 | EFI_STATUS
|
---|
40 | EFIAPI
|
---|
41 | BrotliUefiDecompress (
|
---|
42 | IN CONST VOID *Source,
|
---|
43 | IN UINTN SourceSize,
|
---|
44 | IN OUT VOID *Destination,
|
---|
45 | IN OUT VOID *Scratch
|
---|
46 | );
|
---|
47 |
|
---|
48 | #endif
|
---|