Home
last modified time | relevance | path

Searched refs:BROTLI_DCHECK (Results 1 – 15 of 15) sorted by relevance

/external/brotli/c/enc/
Dwrite_bits.h51 BROTLI_DCHECK((bits >> n_bits) == 0); in BrotliWriteBits()
52 BROTLI_DCHECK(n_bits <= 56); in BrotliWriteBits()
77 BROTLI_DCHECK((pos & 7) == 0); in BrotliWriteBitsPrepareStorage()
Dblock_splitter_inc.h79 BROTLI_DCHECK(num_histograms <= 256); in FN()
129 BROTLI_DCHECK((k >> 3) < bitmaplen); in FN()
140 BROTLI_DCHECK(((size_t)cur_id >> 3) < bitmaplen); in FN()
164 BROTLI_DCHECK(block_ids[i] < num_histograms); in FN()
171 BROTLI_DCHECK(block_ids[i] < num_histograms); in FN()
173 BROTLI_DCHECK(next_id <= num_histograms); in FN()
229 BROTLI_DCHECK(block_idx < num_blocks); in FN()
235 BROTLI_DCHECK(block_idx == num_blocks); in FN()
271 BROTLI_DCHECK(num_clusters == cluster_size_size); in FN()
272 BROTLI_DCHECK(num_clusters == all_histograms_size); in FN()
Dcompress_fragment_two_pass.c51 BROTLI_DCHECK(offset <= 8 - length); in HashBytesAtOffset()
286 BROTLI_DCHECK(next_emit < ip); in CreateCommands()
292 BROTLI_DCHECK(hash == Hash(ip, shift, min_match)); in CreateCommands()
306 BROTLI_DCHECK(candidate >= base_ip); in CreateCommands()
307 BROTLI_DCHECK(candidate < ip); in CreateCommands()
331 BROTLI_DCHECK(0 == memcmp(base, candidate, matched)); in CreateCommands()
395 BROTLI_DCHECK(0 == memcmp(base, candidate, matched)); in CreateCommands()
445 BROTLI_DCHECK(next_emit <= ip_end); in CreateCommands()
491 BROTLI_DCHECK(code < 128); in StoreCommands()
505 BROTLI_DCHECK(code < 128); in StoreCommands()
[all …]
Dcompress_fragment.c50 BROTLI_DCHECK(offset >= 0); in HashBytesAtOffset()
51 BROTLI_DCHECK(offset <= 3); in HashBytesAtOffset()
524 BROTLI_DCHECK(next_emit < ip); in BrotliCompressFragmentFastImpl()
529 BROTLI_DCHECK(hash == Hash(next_ip, shift)); in BrotliCompressFragmentFastImpl()
544 BROTLI_DCHECK(candidate >= base_ip); in BrotliCompressFragmentFastImpl()
545 BROTLI_DCHECK(candidate < ip); in BrotliCompressFragmentFastImpl()
568 BROTLI_DCHECK(0 == memcmp(base, candidate, matched)); in BrotliCompressFragmentFastImpl()
628 BROTLI_DCHECK(0 == memcmp(base, candidate, matched)); in BrotliCompressFragmentFastImpl()
661 BROTLI_DCHECK(next_emit <= ip_end); in BrotliCompressFragmentFastImpl()
671 BROTLI_DCHECK(total_block_size > (1 << 16)); in BrotliCompressFragmentFastImpl()
[all …]
Dmetablock.c223 BROTLI_DCHECK(mb->command_histograms == 0); in BrotliBuildMetaBlock()
236 BROTLI_DCHECK(mb->literal_context_map == 0); in BrotliBuildMetaBlock()
243 BROTLI_DCHECK(mb->literal_histograms == 0); in BrotliBuildMetaBlock()
267 BROTLI_DCHECK(mb->distance_context_map == 0); in BrotliBuildMetaBlock()
274 BROTLI_DCHECK(mb->distance_histograms == 0); in BrotliBuildMetaBlock()
346 BROTLI_DCHECK(num_contexts <= BROTLI_MAX_STATIC_CONTEXTS); in InitContextBlockSplitter()
372 BROTLI_DCHECK(*histograms == 0); in InitContextBlockSplitter()
525 BROTLI_DCHECK(mb->literal_context_map == 0); in MapStaticContexts()
Dmemory.c124 BROTLI_DCHECK(m->new_freed == 0); in CollectGarbagePointers()
128 BROTLI_DCHECK(m->perm_allocated + m->new_allocated <= MAX_PERM_ALLOCATED); in CollectGarbagePointers()
Dencode.c222 BROTLI_DCHECK(max_table_size >= 256); in GetHashTable()
358 BROTLI_DCHECK(total != 0); in ChooseContextMap()
577 BROTLI_DCHECK(*storage_ix <= 14); in WriteMetaBlockInternal()
1035 BROTLI_DCHECK(s->params.hasher.type == 10); in EncodeData()
1042 BROTLI_DCHECK(s->params.hasher.type == 10); in EncodeData()
1095 BROTLI_DCHECK(s->input_pos_ >= s->last_flush_pos_); in EncodeData()
1096 BROTLI_DCHECK(s->input_pos_ > s->last_flush_pos_ || is_last); in EncodeData()
1097 BROTLI_DCHECK(s->input_pos_ - s->last_flush_pos_ <= 1u << 24); in EncodeData()
1206 BROTLI_DCHECK(input_size <= mask + 1); in BrotliCompressBufferQuality10()
1647 BROTLI_DCHECK(out_bytes <= *available_out); in BrotliEncoderCompressStreamFast()
[all …]
Dbrotli_bit_stream.c92 BROTLI_DCHECK(length > 0); in BrotliEncodeMlen()
93 BROTLI_DCHECK(length <= (1 << 24)); in BrotliEncodeMlen()
94 BROTLI_DCHECK(lg <= 24); in BrotliEncodeMlen()
314 BROTLI_DCHECK(num <= BROTLI_NUM_COMMAND_SYMBOLS); in BrotliStoreHuffmanTree()
623 BROTLI_DCHECK(max_value < 256u); in MoveToFrontTransform()
631 BROTLI_DCHECK(index < mtf_size); in MoveToFrontTransform()
663 BROTLI_DCHECK(*out_size <= i); in RunLengthCodeZeros()
Dhash_to_binary_tree_inc.h157 BROTLI_DCHECK(cur_len <= MAX_TREE_COMP_LENGTH); in FN()
162 BROTLI_DCHECK( in FN()
Dentropy_encode.c26 BROTLI_DCHECK(max_depth <= 15); in BrotliSetDepth()
168 BROTLI_DCHECK(repetitions > 0); in BrotliWriteHuffmanTreeRepetitions()
Dmetablock_inc.h70 BROTLI_DCHECK(*histograms == 0); in FN()
Dbackward_references_hq.c769 BROTLI_DCHECK(BackwardMatchLength(&matches[j]) <= in BrotliCreateHqZopfliBackwardReferences()
/external/brotli/c/dec/
Dhuffman.c118 BROTLI_DCHECK(BROTLI_HUFFMAN_MAX_CODE_LENGTH_CODE_LENGTH <= in BrotliBuildCodeLengthsHuffmanTable()
189 BROTLI_DCHECK(root_bits <= BROTLI_REVERSE_BITS_MAX); in BrotliBuildHuffmanTable()
190 BROTLI_DCHECK(BROTLI_HUFFMAN_MAX_CODE_LENGTH - root_bits <= in BrotliBuildHuffmanTable()
Ddecode.c1393 BROTLI_DCHECK(0); /* Unreachable */ in CopyUncompressedBlockToOutput()
/external/brotli/c/common/
Dplatform.h469 #define BROTLI_DCHECK(x) assert(x) macro
472 #define BROTLI_DCHECK(x) macro