| 1 | /* Copyright 2013 Google Inc. All Rights Reserved. |
| 2 | |
| 3 | Distributed under MIT license. |
| 4 | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT |
| 5 | */ |
| 6 | |
| 7 | /* Block split point selection utilities. */ |
| 8 | |
| 9 | #ifndef BROTLI_ENC_BLOCK_SPLITTER_H_ |
| 10 | #define BROTLI_ENC_BLOCK_SPLITTER_H_cxx . . $ `c/enc/block_splitter.h:10:9`! |
| 11 | |
| 12 | #include "../common/platform.h"cxx . . $ `<file>/c/common/platform.h`/ |
| 13 | #include "command.h"cxx . . $ `<file>/c/enc/command.h`/ |
| 14 | #include "memory.h"cxx . . $ `<file>/c/enc/memory.h`/ |
| 15 | |
| 16 | #if defined(__cplusplus) || defined(c_plusplus) |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
| 20 | typedef struct BlockSplitcxx . . $ BlockSplit# { |
| 21 | size_t num_typescxx . . $ BlockSplit#num_types.; /* Amount of distinct types */ |
| 22 | size_t num_blockscxx . . $ BlockSplit#num_blocks.; /* Amount of values in types and length */ |
| 23 | uint8_tcxx . . $ uint8_t#* typescxx . . $ BlockSplit#types.; |
| 24 | uint32_tcxx . . $ uint32_t#* lengthscxx . . $ BlockSplit#lengths.; |
| 25 | |
| 26 | size_t types_alloc_sizecxx . . $ BlockSplit#types_alloc_size.; |
| 27 | size_t lengths_alloc_sizecxx . . $ BlockSplit#lengths_alloc_size.; |
| 28 | } BlockSplitcxx . . $ BlockSplit#; |
| 29 | |
| 30 | BROTLI_INTERNALcxx . . $ `c/include/brotli/port.h:252:9`! void BrotliInitBlockSplitcxx . . $ BrotliInitBlockSplit(fd85396dabab75ea).(BlockSplitcxx . . $ BlockSplit#* self); |
| 31 | BROTLI_INTERNALcxx . . $ `c/include/brotli/port.h:252:9`! void BrotliDestroyBlockSplitcxx . . $ BrotliDestroyBlockSplit(32d86f58ea320c2).(MemoryManagercxx . . $ MemoryManager#* m, |
| 32 | BlockSplitcxx . . $ BlockSplit#* self); |
| 33 | |
| 34 | BROTLI_INTERNALcxx . . $ `c/include/brotli/port.h:252:9`! void BrotliSplitBlockcxx . . $ BrotliSplitBlock(dba73011e4417e6d).(MemoryManagercxx . . $ MemoryManager#* m, |
| 35 | const Commandcxx . . $ Command#* cmds, |
| 36 | const size_t num_commands, |
| 37 | const uint8_tcxx . . $ uint8_t#* data, |
| 38 | const size_t offset, |
| 39 | const size_t mask, |
| 40 | const BrotliEncoderParamscxx . . $ BrotliEncoderParams#* params, |
| 41 | BlockSplitcxx . . $ BlockSplit#* literal_split, |
| 42 | BlockSplitcxx . . $ BlockSplit#* insert_and_copy_split, |
| 43 | BlockSplitcxx . . $ BlockSplit#* dist_split); |
| 44 | |
| 45 | #if defined(__cplusplus) || defined(c_plusplus) |
| 46 | } /* extern "C" */ |
| 47 | #endif |
| 48 | |
| 49 | #endif /* BROTLI_ENC_BLOCK_SPLITTER_H_ */ |