Lines Matching refs:BrotliWriteBits

109   BrotliWriteBits(  in StoreCommandExtra()
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()
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()
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()
224 BrotliWriteBits(2, skip_some, storage_ix, storage); in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask()
229 BrotliWriteBits(kHuffmanBitLengthHuffmanCodeBitLengths[l], in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask()
243 BrotliWriteBits(code_length_bitdepth[ix], code_length_bitdepth_symbols[ix], 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()
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()
395 BrotliWriteBits(4, 1, storage_ix, storage); in BuildAndStoreHuffmanTree()
396 BrotliWriteBits(max_bits, s4[0], storage_ix, storage); in BuildAndStoreHuffmanTree()
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()
568 BrotliWriteBits(kZeroRepsDepth[reps], kZeroRepsBits[reps], in BrotliBuildAndStoreHuffmanTreeFast()
572 BrotliWriteBits(kCodeLengthDepth[value], kCodeLengthBits[value], in BrotliBuildAndStoreHuffmanTreeFast()
579 BrotliWriteBits(kCodeLengthDepth[value], kCodeLengthBits[value], in BrotliBuildAndStoreHuffmanTreeFast()
584 BrotliWriteBits(kNonZeroRepsDepth[reps], kNonZeroRepsBits[reps], in BrotliBuildAndStoreHuffmanTreeFast()
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()
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()
759 BrotliWriteBits(code->type_depths[typecode], code->type_bits[typecode], in StoreBlockSwitch()
764 BrotliWriteBits(code->length_depths[lencode], code->length_bits[lencode], in StoreBlockSwitch()
766 BrotliWriteBits(len_nextra, len_extra, storage_ix, storage); in StoreBlockSwitch()
821 BrotliWriteBits(1, 1, storage_ix, storage); in StoreTrivialContextMap()
822 BrotliWriteBits(4, repeat_code - 1, storage_ix, storage); in StoreTrivialContextMap()
832 BrotliWriteBits(depths[code], bits[code], storage_ix, storage); in StoreTrivialContextMap()
833 BrotliWriteBits( in StoreTrivialContextMap()
835 BrotliWriteBits(repeat_code, repeat_bits, storage_ix, storage); in StoreTrivialContextMap()
838 BrotliWriteBits(1, 1, storage_ix, storage); in StoreTrivialContextMap()
903 BrotliWriteBits(self->depths_[ix], self->bits_[ix], storage_ix, storage); in StoreSymbol()
926 BrotliWriteBits(self->depths_[ix], self->bits_[ix], storage_ix, storage); in StoreSymbolWithContext()
991 BrotliWriteBits(2, dist->distance_postfix_bits, storage_ix, storage); in BrotliStoreMetaBlock()
992 BrotliWriteBits( in BrotliStoreMetaBlock()
996 BrotliWriteBits(2, literal_context_mode, storage_ix, storage); in BrotliStoreMetaBlock()
1074 BrotliWriteBits(distnumextra, distextra, storage_ix, storage); in BrotliStoreMetaBlock()
1130 BrotliWriteBits( in StoreDataWithHuffmanCodes()
1135 BrotliWriteBits( in StoreDataWithHuffmanCodes()
1144 BrotliWriteBits(dist_depth[dist_code], dist_bits[dist_code], in StoreDataWithHuffmanCodes()
1146 BrotliWriteBits(distnumextra, distextra, storage_ix, storage); in StoreDataWithHuffmanCodes()
1177 BrotliWriteBits(13, 0, storage_ix, storage); in BrotliStoreMetaBlockTrivial()
1215 BrotliWriteBits(13, 0, storage_ix, storage); in BrotliStoreMetaBlockFast()
1323 BrotliWriteBits(1, 1, storage_ix, storage); /* islast */ in BrotliStoreUncompressedMetaBlock()
1324 BrotliWriteBits(1, 1, storage_ix, storage); /* isempty */ in BrotliStoreUncompressedMetaBlock()