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:
@@ -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;
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "../common/types.h"
|
||||
#include "./port.h"
|
||||
#include <BrotliDecompressLibInternal.h>
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user