Home
last modified time | relevance | path

Searched refs:alphabet_size (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/third_party/brotli/src/brotli/enc/
Dentropy_encode.h76 const int alphabet_size, in BuildEntropyCode() argument
89 if (alphabet_size >= 50 && code->count_ >= 16) { in BuildEntropyCode()
92 OptimizeHuffmanCountsForRle(alphabet_size, counts); in BuildEntropyCode()
93 CreateHuffmanTree(counts, alphabet_size, tree_limit, &code->depth_[0]); in BuildEntropyCode()
95 CreateHuffmanTree(&histogram.data_[0], alphabet_size, tree_limit, in BuildEntropyCode()
98 ConvertBitDepthsToSymbols(&code->depth_[0], alphabet_size, &code->bits_[0]); in BuildEntropyCode()
Dencode.cc235 const EntropyCode<kSize>& code, int alphabet_size, in StoreHuffmanCodeSimple() argument
273 const EntropyCode<kSize>& code, int alphabet_size, in StoreHuffmanCodeComplex() argument
280 alphabet_size, in StoreHuffmanCodeComplex()
302 const int alphabet_size, in BuildAndStoreEntropyCode() argument
310 int max_bits_counter = alphabet_size - 1; in BuildAndStoreEntropyCode()
317 for (size_t i = 0; i < alphabet_size; i++) { in BuildAndStoreEntropyCode()
331 if (alphabet_size >= 50 && code->count_ >= 16) { in BuildAndStoreEntropyCode()
332 std::vector<int> counts(alphabet_size); in BuildAndStoreEntropyCode()
333 memcpy(&counts[0], histogram.data_, sizeof(counts[0]) * alphabet_size); in BuildAndStoreEntropyCode()
334 OptimizeHuffmanCountsForRle(alphabet_size, &counts[0]); in BuildAndStoreEntropyCode()
[all …]
/external/chromium_org/remoting/host/
Dhost_secret.cc34 int alphabet_size = strlen(kHostSecretAlphabet); in GenerateSupportHostSecret() local
37 result[i] = kHostSecretAlphabet[CryptoRandomInt(alphabet_size)]; in GenerateSupportHostSecret()
/external/chromium_org/third_party/brotli/src/brotli/dec/
Ddecode.c208 static int ReadHuffmanCode(int alphabet_size, in ReadHuffmanCode() argument
217 (uint8_t*)BrotliSafeMalloc((uint64_t)alphabet_size, in ReadHuffmanCode()
234 int max_bits_counter = alphabet_size - 1; in ReadHuffmanCode()
242 memset(code_lengths, 0, (size_t)alphabet_size); in ReadHuffmanCode()
244 symbols[i] = (int)BrotliReadBits(br, max_bits) % alphabet_size; in ReadHuffmanCode()
303 alphabet_size, code_lengths, br); in ReadHuffmanCode()
307 code_lengths, alphabet_size); in ReadHuffmanCode()
310 PrintUcharVector(code_lengths, alphabet_size); in ReadHuffmanCode()
360 int alphabet_size; member
366 static void HuffmanTreeGroupInit(HuffmanTreeGroup* group, int alphabet_size, in HuffmanTreeGroupInit() argument
[all …]
/external/webp/src/dec/
Dvp8l.c242 static int ReadHuffmanCode(int alphabet_size, VP8LDecoder* const dec, in ReadHuffmanCode() argument
265 alphabet_size, num_symbols); in ReadHuffmanCode()
275 memset(code_lengths, 0, alphabet_size * sizeof(*code_lengths)); in ReadHuffmanCode()
280 ok = ReadHuffmanCodeLengths(dec, code_length_code_lengths, alphabet_size, in ReadHuffmanCode()
283 alphabet_size); in ReadHuffmanCode()
331 int alphabet_size = kAlphabetSize[j]; in ReadHuffmanCodes() local
333 alphabet_size += 1 << color_cache_bits; in ReadHuffmanCodes()
335 if (max_alphabet_size < alphabet_size) { in ReadHuffmanCodes()
336 max_alphabet_size = alphabet_size; in ReadHuffmanCodes()
354 int alphabet_size = kAlphabetSize[j]; in ReadHuffmanCodes() local
[all …]
/external/chromium_org/third_party/libwebp/dec/
Dvp8l.c242 static int ReadHuffmanCode(int alphabet_size, VP8LDecoder* const dec, in ReadHuffmanCode() argument
265 alphabet_size, num_symbols); in ReadHuffmanCode()
275 memset(code_lengths, 0, alphabet_size * sizeof(*code_lengths)); in ReadHuffmanCode()
280 ok = ReadHuffmanCodeLengths(dec, code_length_code_lengths, alphabet_size, in ReadHuffmanCode()
283 alphabet_size); in ReadHuffmanCode()
331 int alphabet_size = kAlphabetSize[j]; in ReadHuffmanCodes() local
333 alphabet_size += 1 << color_cache_bits; in ReadHuffmanCodes()
335 if (max_alphabet_size < alphabet_size) { in ReadHuffmanCodes()
336 max_alphabet_size = alphabet_size; in ReadHuffmanCodes()
354 int alphabet_size = kAlphabetSize[j]; in ReadHuffmanCodes() local
[all …]
/external/chromium_org/remoting/client/
Dlog_to_server.cc164 const int alphabet_size = arraysize(kSessionIdAlphabet) - 1; in GenerateSessionId() local
165 session_id_[i] = kSessionIdAlphabet[base::RandGenerator(alphabet_size)]; in GenerateSessionId()