VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompressLibInternal.h

Last change on this file was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1007 bytes
Line 
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
19typedef struct {
20 VOID *Buff;
21 UINTN BuffSize;
22} BROTLI_BUFF;
23
24#define FILE_BUFFER_SIZE 65536
25#define BROTLI_INFO_SIZE 8
26#define BROTLI_DECODE_MAX 8
27#define BROTLI_SCRATCH_MAX 16
28
29EFI_STATUS
30EFIAPI
31BrotliUefiDecompressGetInfo (
32 IN CONST VOID *Source,
33 IN UINT32 SourceSize,
34 OUT UINT32 *DestinationSize,
35 OUT UINT32 *ScratchSize
36 );
37
38EFI_STATUS
39EFIAPI
40BrotliUefiDecompress (
41 IN CONST VOID *Source,
42 IN UINTN SourceSize,
43 IN OUT VOID *Destination,
44 IN OUT VOID *Scratch
45 );
46
47#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette