MdeModulePkg: Add Brotli algorithm decompression library

- Add Brotli algorithm decompression library support

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bell Song <binx.song@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Song, BinX
2017-03-23 10:16:02 +08:00
committed by Liming Gao
parent 36ff6d8019
commit 841b259062
15 changed files with 697 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ BROTLI_BOOL BrotliWarmupBitReader(BrotliBitReader* const br) {
}
}
while ((((size_t)br->next_in) & aligned_read_mask) != 0) {
while ((((size_t)(*br->next_in)) & aligned_read_mask) != 0) {
if (!BrotliPullByte(br)) {
/* If we consumed all the input, we don't care about the alignment. */
return BROTLI_TRUE;

View File

@@ -9,7 +9,8 @@
#ifndef BROTLI_DEC_BIT_READER_H_
#define BROTLI_DEC_BIT_READER_H_
#include <string.h> /* memcpy */
//#include <string.h> /* memcpy */
#include <BrotliDecompressLibInternal.h>
#include "../common/types.h"
#include "./port.h"

View File

@@ -10,8 +10,9 @@
#include <arm_neon.h>
#endif
#include <stdlib.h> /* free, malloc */
#include <string.h> /* memcpy, memset */
//#include <stdlib.h> /* free, malloc */
//#include <string.h> /* memcpy, memset */
#include <BrotliDecompressLibInternal.h>
#include "../common/constants.h"
#include "../common/dictionary.h"

View File

@@ -8,7 +8,7 @@
#include "./huffman.h"
#include <string.h> /* memcpy, memset */
//#include <string.h> /* memcpy, memset */
#include "../common/constants.h"
#include "../common/types.h"

View File

@@ -11,6 +11,7 @@
#include "../common/types.h"
#include "./port.h"
#include <BrotliDecompressLibInternal.h>
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {

View File

@@ -6,7 +6,8 @@
#include "./state.h"
#include <stdlib.h> /* free, malloc */
//#include <stdlib.h> /* free, malloc */
#include <BrotliDecompressLibInternal.h>
#include "../common/types.h"
#include "./huffman.h"