Home
last modified time | relevance | path

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

/external/brotli/c/enc/
Dcluster.c25 return TO_BROTLI_BOOL(p1->cost_diff > p2->cost_diff); in HistogramPairIsLess()
27 return TO_BROTLI_BOOL((p1->idx2 - p1->idx1) > (p2->idx2 - p2->idx1)); in HistogramPairIsLess()
Dentropy_encode.c51 return TO_BROTLI_BOOL(v0->total_count_ < v1->total_count_); in SortHuffmanTree()
53 return TO_BROTLI_BOOL(v0->index_right_or_value_ > v1->index_right_or_value_); in SortHuffmanTree()
401 TO_BROTLI_BOOL(total_reps_non_zero > count_reps_non_zero * 2); in DecideOverRleUse()
402 *use_rle_for_zero = TO_BROTLI_BOOL(total_reps_zero > count_reps_zero * 2); in DecideOverRleUse()
Dstatic_dict.c53 TO_BROTLI_BOOL(FindMatchLengthWithLimit(dict, data, w.len) == w.len); in IsMatch()
57 return TO_BROTLI_BOOL(dict[0] >= 'a' && dict[0] <= 'z' && in IsMatch()
280 TO_BROTLI_BOOL(w.transform != BROTLI_TRANSFORM_UPPERCASE_FIRST); in BrotliFindAllStaticDictionaryMatches()
326 BROTLI_BOOL is_space = TO_BROTLI_BOOL(data[0] == ' '); in BrotliFindAllStaticDictionaryMatches()
380 TO_BROTLI_BOOL(w.transform != BROTLI_TRANSFORM_UPPERCASE_FIRST); in BrotliFindAllStaticDictionaryMatches()
Dutf8_util.c80 return TO_BROTLI_BOOL((double)size_utf8 > min_fraction * (double)length); in BrotliIsMostlyUTF8()
Dencode.c170 state->params.disable_literal_context_modeling = TO_BROTLI_BOOL(!!value); in BrotliEncoderSetParameter()
178 state->params.large_window = TO_BROTLI_BOOL(!!value); in BrotliEncoderSetParameter()
911 return TO_BROTLI_BOOL(wrapped_input_pos < wrapped_last_processed_pos); in UpdateLastProcessedPos()
943 TO_BROTLI_BOOL((last_command->dist_prefix_ & 0x3FF) == 0), in ExtendLastCommand()
1103 const BROTLI_BOOL next_input_fits_metablock = TO_BROTLI_BOOL( in EncodeData()
1107 const BROTLI_BOOL should_flush = TO_BROTLI_BOOL( in EncodeData()
1326 is_last = TO_BROTLI_BOOL(metablock_start + metablock_size == input_size); in BrotliCompressBufferQuality10()
1868 BROTLI_BOOL is_last = TO_BROTLI_BOOL( in BrotliEncoderCompressStream()
1870 BROTLI_BOOL force_flush = TO_BROTLI_BOOL( in BrotliEncoderCompressStream()
1894 return TO_BROTLI_BOOL(s->stream_state_ == BROTLI_STREAM_FINISHED && in BrotliEncoderIsFinished()
[all …]
Dcommand.h135 TO_BROTLI_BOOL((self->dist_prefix_ & 0x3FF) == 0), &self->cmd_prefix_); in InitCommand()
Dcompress_fragment.c59 return TO_BROTLI_BOOL( in IsMatch()
386 return TO_BROTLI_BOOL(r >= 0.0); in ShouldMergeBlock()
400 return TO_BROTLI_BOOL(literal_ratio > MIN_RATIO); in ShouldUseUncompressedMode()
Dcompress_fragment_two_pass.c62 return TO_BROTLI_BOOL(p1[4] == p2[4] && p1[5] == p2[5]); in IsMatch()
536 return TO_BROTLI_BOOL(BitsEntropy(literal_histo, 256) < max_total_bit_cost); in ShouldCompress()
Dhash_to_binary_tree_inc.h122 TO_BROTLI_BOOL(max_length >= MAX_TREE_COMP_LENGTH); in FN()
Dbackward_references_hq.c512 TO_BROTLI_BOOL(dist > dictionary_start + gap); in UpdateNodes()
597 TO_BROTLI_BOOL(distance > dictionary_start + gap); in BrotliZopfliCreateCommands()
Dbrotli_bit_stream.c400 return TO_BROTLI_BOOL(v0->total_count_ < v1->total_count_); in SortHuffmanTree()
711 BROTLI_BOOL use_rle = TO_BROTLI_BOOL(max_run_length_prefix > 0); in EncodeContextMap()
/external/brotli/c/include/brotli/
Dtypes.h55 #define TO_BROTLI_BOOL(X) (!!(X) ? BROTLI_TRUE : BROTLI_FALSE) macro
/external/brotli/c/dec/
Dbit_reader.h100 return TO_BROTLI_BOOL(br->avail_in >= num); in BrotliCheckInputAmount()
328 return TO_BROTLI_BOOL(pad_bits == 0); in BrotliJumpToByteBoundary()
Ddecode.c70 state->large_window = TO_BROTLI_BOOL(!!value); in BrotliDecoderSetParameter()
2547 return TO_BROTLI_BOOL( in BrotliDecoderHasMoreOutput()
2577 return TO_BROTLI_BOOL(s->state != BROTLI_STATE_UNINITED || in BrotliDecoderIsUsed()
2582 return TO_BROTLI_BOOL(s->state == BROTLI_STATE_DONE) && in BrotliDecoderIsFinished()
/external/brotli/c/tools/
Dbrotli.c275 params->junk_source = TO_BROTLI_BOOL(c == 'j'); in ParseParams()