mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-10-31 19:23:54 +01:00 
			
		
		
		
	https://bugzilla.tianocore.org/show_bug.cgi?id=1201 Update Brotli to the latest version 1.0.6 https://github.com/google/brotli Verify VS2017, GCC5 build. Verify Decompression boot functionality. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
		
			
				
	
	
		
			33 lines
		
	
	
		
			838 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			838 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* Copyright 2017 Google Inc. All Rights Reserved.
 | |
| 
 | |
|    Distributed under MIT license.
 | |
|    See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
 | |
| */
 | |
| 
 | |
| #include "./encoder_dict.h"
 | |
| 
 | |
| #include "../common/dictionary.h"
 | |
| #include "../common/transform.h"
 | |
| #include "./dictionary_hash.h"
 | |
| #include "./hash.h"
 | |
| 
 | |
| #if defined(__cplusplus) || defined(c_plusplus)
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| void BrotliInitEncoderDictionary(BrotliEncoderDictionary* dict) {
 | |
|   dict->words = BrotliGetDictionary();
 | |
| 
 | |
|   dict->hash_table = kStaticDictionaryHash;
 | |
|   dict->buckets = kStaticDictionaryBuckets;
 | |
|   dict->dict_words = kStaticDictionaryWords;
 | |
| 
 | |
|   dict->cutoffTransformsCount = kCutoffTransformsCount;
 | |
|   dict->cutoffTransforms = kCutoffTransforms;
 | |
| 
 | |
| }
 | |
| 
 | |
| #if defined(__cplusplus) || defined(c_plusplus)
 | |
| }  /* extern "C" */
 | |
| #endif
 |