• Home
  • Raw
  • Download

Lines Matching refs:storage_ix

101     const Command* cmd, size_t* storage_ix, uint8_t* storage) {  in StoreCommandExtra()  argument
110 insnumextra + GetCopyExtra(copycode), bits, storage_ix, storage); in StoreCommandExtra()
124 static void StoreVarLenUint8(size_t n, size_t* storage_ix, uint8_t* storage) { in StoreVarLenUint8() argument
126 BrotliWriteBits(1, 0, storage_ix, storage); in StoreVarLenUint8()
129 BrotliWriteBits(1, 1, storage_ix, storage); in StoreVarLenUint8()
130 BrotliWriteBits(3, nbits, storage_ix, storage); in StoreVarLenUint8()
131 BrotliWriteBits(nbits, n - ((size_t)1 << nbits), storage_ix, storage); in StoreVarLenUint8()
140 size_t* storage_ix, in StoreCompressedMetaBlockHeader() argument
147 BrotliWriteBits(1, (uint64_t)is_final_block, storage_ix, storage); in StoreCompressedMetaBlockHeader()
150 BrotliWriteBits(1, 0, storage_ix, storage); in StoreCompressedMetaBlockHeader()
154 BrotliWriteBits(2, nibblesbits, storage_ix, storage); in StoreCompressedMetaBlockHeader()
155 BrotliWriteBits(nlenbits, lenbits, storage_ix, storage); in StoreCompressedMetaBlockHeader()
159 BrotliWriteBits(1, 0, storage_ix, storage); in StoreCompressedMetaBlockHeader()
167 size_t* storage_ix, in BrotliStoreUncompressedMetaBlockHeader() argument
175 BrotliWriteBits(1, 0, storage_ix, storage); in BrotliStoreUncompressedMetaBlockHeader()
177 BrotliWriteBits(2, nibblesbits, storage_ix, storage); in BrotliStoreUncompressedMetaBlockHeader()
178 BrotliWriteBits(nlenbits, lenbits, storage_ix, storage); in BrotliStoreUncompressedMetaBlockHeader()
180 BrotliWriteBits(1, 1, storage_ix, storage); in BrotliStoreUncompressedMetaBlockHeader()
185 size_t* storage_ix, uint8_t* storage) { in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask() argument
224 BrotliWriteBits(2, skip_some, storage_ix, storage); in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask()
230 kHuffmanBitLengthHuffmanCodeSymbols[l], storage_ix, storage); in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask()
239 size_t* BROTLI_RESTRICT storage_ix, uint8_t* BROTLI_RESTRICT storage) { in BrotliStoreHuffmanTreeToBitMask() argument
244 storage_ix, storage); in BrotliStoreHuffmanTreeToBitMask()
248 BrotliWriteBits(2, huffman_tree_extra_bits[i], storage_ix, storage); in BrotliStoreHuffmanTreeToBitMask()
251 BrotliWriteBits(3, huffman_tree_extra_bits[i], storage_ix, storage); in BrotliStoreHuffmanTreeToBitMask()
261 size_t* storage_ix, uint8_t* storage) { in StoreSimpleHuffmanTree() argument
263 BrotliWriteBits(2, 1, storage_ix, storage); in StoreSimpleHuffmanTree()
264 BrotliWriteBits(2, num_symbols - 1, storage_ix, storage); /* NSYM - 1 */ in StoreSimpleHuffmanTree()
280 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
281 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
283 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
284 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
285 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in StoreSimpleHuffmanTree()
287 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
288 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
289 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in StoreSimpleHuffmanTree()
290 BrotliWriteBits(max_bits, symbols[3], storage_ix, storage); in StoreSimpleHuffmanTree()
292 BrotliWriteBits(1, depths[symbols[0]] == 1 ? 1 : 0, storage_ix, storage); in StoreSimpleHuffmanTree()
300 size_t* storage_ix, uint8_t* storage) { in BrotliStoreHuffmanTree() argument
346 storage_ix, storage); in BrotliStoreHuffmanTree()
358 storage_ix, storage); in BrotliStoreHuffmanTree()
369 size_t* storage_ix, in BuildAndStoreHuffmanTree() argument
395 BrotliWriteBits(4, 1, storage_ix, storage); in BuildAndStoreHuffmanTree()
396 BrotliWriteBits(max_bits, s4[0], storage_ix, storage); in BuildAndStoreHuffmanTree()
407 StoreSimpleHuffmanTree(depth, s4, count, max_bits, storage_ix, storage); in BuildAndStoreHuffmanTree()
409 BrotliStoreHuffmanTree(depth, histogram_length, tree, storage_ix, storage); in BuildAndStoreHuffmanTree()
423 size_t* storage_ix, in BrotliBuildAndStoreHuffmanTreeFast() argument
441 BrotliWriteBits(4, 1, storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
442 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
524 BrotliWriteBits(2, 1, storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
525 BrotliWriteBits(2, count - 1, storage_ix, storage); /* NSYM - 1 */ in BrotliBuildAndStoreHuffmanTreeFast()
538 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
539 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
541 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
542 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
543 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
545 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
546 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
547 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
548 BrotliWriteBits(max_bits, symbols[3], storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
550 BrotliWriteBits(1, depth[symbols[0]] == 1 ? 1 : 0, storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
556 StoreStaticCodeLengthCode(storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
569 storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
573 storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
580 storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
585 storage_ix, storage); in BrotliBuildAndStoreHuffmanTreeFast()
700 size_t* storage_ix, uint8_t* storage) { in EncodeContextMap() argument
710 StoreVarLenUint8(num_clusters - 1, storage_ix, storage); in EncodeContextMap()
727 BrotliWriteBits(1, (uint64_t)use_rle, storage_ix, storage); in EncodeContextMap()
729 BrotliWriteBits(4, max_run_length_prefix - 1, storage_ix, storage); in EncodeContextMap()
734 tree, depths, bits, storage_ix, storage); in EncodeContextMap()
738 BrotliWriteBits(depths[rle_symbol], bits[rle_symbol], storage_ix, storage); in EncodeContextMap()
740 BrotliWriteBits(rle_symbol, extra_bits_val, storage_ix, storage); in EncodeContextMap()
743 BrotliWriteBits(1, 1, storage_ix, storage); /* use move-to-front */ in EncodeContextMap()
752 size_t* storage_ix, in StoreBlockSwitch() argument
760 storage_ix, storage); in StoreBlockSwitch()
765 storage_ix, storage); in StoreBlockSwitch()
766 BrotliWriteBits(len_nextra, len_extra, storage_ix, storage); in StoreBlockSwitch()
777 size_t* storage_ix, in BuildAndStoreBlockSplitCode() argument
791 StoreVarLenUint8(num_types - 1, storage_ix, storage); in BuildAndStoreBlockSplitCode()
795 storage_ix, storage); in BuildAndStoreBlockSplitCode()
799 &code->length_bits[0], storage_ix, storage); in BuildAndStoreBlockSplitCode()
800 StoreBlockSwitch(code, lengths[0], types[0], 1, storage_ix, storage); in BuildAndStoreBlockSplitCode()
808 size_t* storage_ix, in StoreTrivialContextMap() argument
810 StoreVarLenUint8(num_types - 1, storage_ix, storage); in StoreTrivialContextMap()
821 BrotliWriteBits(1, 1, storage_ix, storage); in StoreTrivialContextMap()
822 BrotliWriteBits(4, repeat_code - 1, storage_ix, storage); in StoreTrivialContextMap()
829 tree, depths, bits, storage_ix, storage); in StoreTrivialContextMap()
832 BrotliWriteBits(depths[code], bits[code], storage_ix, storage); in StoreTrivialContextMap()
834 depths[repeat_code], bits[repeat_code], storage_ix, storage); in StoreTrivialContextMap()
835 BrotliWriteBits(repeat_code, repeat_bits, storage_ix, storage); in StoreTrivialContextMap()
838 BrotliWriteBits(1, 1, storage_ix, storage); in StoreTrivialContextMap()
881 HuffmanTree* tree, size_t* storage_ix, uint8_t* storage) { in BuildAndStoreBlockSwitchEntropyCodes() argument
884 storage_ix, storage); in BuildAndStoreBlockSwitchEntropyCodes()
889 static void StoreSymbol(BlockEncoder* self, size_t symbol, size_t* storage_ix, in StoreSymbol() argument
898 storage_ix, storage); in StoreSymbol()
903 BrotliWriteBits(self->depths_[ix], self->bits_[ix], storage_ix, storage); in StoreSymbol()
911 size_t context, const uint32_t* context_map, size_t* storage_ix, in StoreSymbolWithContext() argument
920 storage_ix, storage); in StoreSymbolWithContext()
926 BrotliWriteBits(self->depths_[ix], self->bits_[ix], storage_ix, storage); in StoreSymbolWithContext()
945 static void JumpToByteBoundary(size_t* storage_ix, uint8_t* storage) { in JumpToByteBoundary() argument
946 *storage_ix = (*storage_ix + 7u) & ~7u; in JumpToByteBoundary()
947 storage[*storage_ix >> 3] = 0; in JumpToByteBoundary()
955 size_t* storage_ix, uint8_t* storage) { in BrotliStoreMetaBlock() argument
972 StoreCompressedMetaBlockHeader(is_last, length, storage_ix, storage); in BrotliStoreMetaBlock()
986 BuildAndStoreBlockSwitchEntropyCodes(&literal_enc, tree, storage_ix, storage); in BrotliStoreMetaBlock()
987 BuildAndStoreBlockSwitchEntropyCodes(&command_enc, tree, storage_ix, storage); in BrotliStoreMetaBlock()
989 &distance_enc, tree, storage_ix, storage); in BrotliStoreMetaBlock()
991 BrotliWriteBits(2, dist->distance_postfix_bits, storage_ix, storage); in BrotliStoreMetaBlock()
994 storage_ix, storage); in BrotliStoreMetaBlock()
996 BrotliWriteBits(2, literal_context_mode, storage_ix, storage); in BrotliStoreMetaBlock()
1001 BROTLI_LITERAL_CONTEXT_BITS, tree, storage_ix, storage); in BrotliStoreMetaBlock()
1005 mb->literal_histograms_size, tree, storage_ix, storage); in BrotliStoreMetaBlock()
1011 BROTLI_DISTANCE_CONTEXT_BITS, tree, storage_ix, storage); in BrotliStoreMetaBlock()
1015 mb->distance_histograms_size, tree, storage_ix, storage); in BrotliStoreMetaBlock()
1021 storage_ix, storage); in BrotliStoreMetaBlock()
1025 storage_ix, storage); in BrotliStoreMetaBlock()
1029 storage_ix, storage); in BrotliStoreMetaBlock()
1036 StoreSymbol(&command_enc, cmd_code, storage_ix, storage); in BrotliStoreMetaBlock()
1037 StoreCommandExtra(&cmd, storage_ix, storage); in BrotliStoreMetaBlock()
1041 StoreSymbol(&literal_enc, input[pos & mask], storage_ix, storage); in BrotliStoreMetaBlock()
1051 mb->literal_context_map, storage_ix, storage, in BrotliStoreMetaBlock()
1067 StoreSymbol(&distance_enc, dist_code, storage_ix, storage); in BrotliStoreMetaBlock()
1071 mb->distance_context_map, storage_ix, storage, in BrotliStoreMetaBlock()
1074 BrotliWriteBits(distnumextra, distextra, storage_ix, storage); in BrotliStoreMetaBlock()
1082 JumpToByteBoundary(storage_ix, storage); in BrotliStoreMetaBlock()
1122 size_t* storage_ix, in StoreDataWithHuffmanCodes() argument
1131 cmd_depth[cmd_code], cmd_bits[cmd_code], storage_ix, storage); in StoreDataWithHuffmanCodes()
1132 StoreCommandExtra(&cmd, storage_ix, storage); in StoreDataWithHuffmanCodes()
1136 lit_depth[literal], lit_bits[literal], storage_ix, storage); in StoreDataWithHuffmanCodes()
1145 storage_ix, storage); in StoreDataWithHuffmanCodes()
1146 BrotliWriteBits(distnumextra, distextra, storage_ix, storage); in StoreDataWithHuffmanCodes()
1155 size_t* storage_ix, uint8_t* storage) { in BrotliStoreMetaBlockTrivial() argument
1168 StoreCompressedMetaBlockHeader(is_last, length, storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1177 BrotliWriteBits(13, 0, storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1184 storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1188 storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1192 storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1198 storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1200 JumpToByteBoundary(storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1208 size_t* storage_ix, uint8_t* storage) { in BrotliStoreMetaBlockFast() argument
1213 StoreCompressedMetaBlockHeader(is_last, length, storage_ix, storage); in BrotliStoreMetaBlockFast()
1215 BrotliWriteBits(13, 0, storage_ix, storage); in BrotliStoreMetaBlockFast()
1237 storage_ix, storage); in BrotliStoreMetaBlockFast()
1239 StoreStaticCommandHuffmanTree(storage_ix, storage); in BrotliStoreMetaBlockFast()
1240 StoreStaticDistanceHuffmanTree(storage_ix, storage); in BrotliStoreMetaBlockFast()
1247 storage_ix, storage); in BrotliStoreMetaBlockFast()
1267 storage_ix, storage); in BrotliStoreMetaBlockFast()
1273 storage_ix, storage); in BrotliStoreMetaBlockFast()
1280 storage_ix, storage); in BrotliStoreMetaBlockFast()
1286 storage_ix, storage); in BrotliStoreMetaBlockFast()
1290 JumpToByteBoundary(storage_ix, storage); in BrotliStoreMetaBlockFast()
1300 size_t* BROTLI_RESTRICT storage_ix, in BrotliStoreUncompressedMetaBlock() argument
1303 BrotliStoreUncompressedMetaBlockHeader(len, storage_ix, storage); in BrotliStoreUncompressedMetaBlock()
1304 JumpToByteBoundary(storage_ix, storage); in BrotliStoreUncompressedMetaBlock()
1308 memcpy(&storage[*storage_ix >> 3], &input[masked_pos], len1); in BrotliStoreUncompressedMetaBlock()
1309 *storage_ix += len1 << 3; in BrotliStoreUncompressedMetaBlock()
1313 memcpy(&storage[*storage_ix >> 3], &input[masked_pos], len); in BrotliStoreUncompressedMetaBlock()
1314 *storage_ix += len << 3; in BrotliStoreUncompressedMetaBlock()
1318 BrotliWriteBitsPrepareStorage(*storage_ix, storage); in BrotliStoreUncompressedMetaBlock()
1323 BrotliWriteBits(1, 1, storage_ix, storage); /* islast */ in BrotliStoreUncompressedMetaBlock()
1324 BrotliWriteBits(1, 1, storage_ix, storage); /* isempty */ in BrotliStoreUncompressedMetaBlock()
1325 JumpToByteBoundary(storage_ix, storage); in BrotliStoreUncompressedMetaBlock()