VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompressLibInternal.h@ 81344

Last change on this file since 81344 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 1.3 KB
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 - 2018, 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/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>
21
22typedef struct
23{
24 VOID *Buff;
25 UINTN BuffSize;
26} BROTLI_BUFF;
27
28#define FILE_BUFFER_SIZE 65536
29#define BROTLI_INFO_SIZE 8
30#define BROTLI_DECODE_MAX 8
31#define BROTLI_SCRATCH_MAX 16
32
33#define memcpy CopyMem
34#define memmove CopyMem
35#define memset(dest,ch,count) SetMem(dest,(UINTN)(count),(UINT8)(ch))
36
37VOID *
38BrDummyMalloc (
39 IN size_t Size
40 );
41
42VOID
43BrDummyFree (
44 IN VOID * Ptr
45 );
46
47EFI_STATUS
48EFIAPI
49BrotliUefiDecompressGetInfo (
50 IN CONST VOID *Source,
51 IN UINT32 SourceSize,
52 OUT UINT32 *DestinationSize,
53 OUT UINT32 *ScratchSize
54 );
55
56EFI_STATUS
57EFIAPI
58BrotliUefiDecompress (
59 IN CONST VOID *Source,
60 IN UINTN SourceSize,
61 IN OUT VOID *Destination,
62 IN OUT VOID *Scratch
63 );
64
65#endif
Note: See TracBrowser for help on using the repository browser.

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