TianoCore EDK2 master
Loading...
Searching...
No Matches
BrotliDecompressLibInternal.h
Go to the documentation of this file.
1
11#ifndef __BROTLI_DECOMPRESS_INTERNAL_H__
12#define __BROTLI_DECOMPRESS_INTERNAL_H__
13
14#include <PiPei.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;
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
30EFIAPI
32 IN CONST VOID *Source,
33 IN UINT32 SourceSize,
34 OUT UINT32 *DestinationSize,
35 OUT UINT32 *ScratchSize
36 );
37
39EFIAPI
41 IN CONST VOID *Source,
42 IN UINTN SourceSize,
43 IN OUT VOID *Destination,
44 IN OUT VOID *Scratch
45 );
46
47#endif
UINT64 UINTN
EFI_STATUS EFIAPI BrotliUefiDecompressGetInfo(IN CONST VOID *Source, IN UINT32 SourceSize, OUT UINT32 *DestinationSize, OUT UINT32 *ScratchSize)
EFI_STATUS EFIAPI BrotliUefiDecompress(IN CONST VOID *Source, IN UINTN SourceSize, IN OUT VOID *Destination, IN OUT VOID *Scratch)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29