Searched refs:num_codes (Results 1 – 9 of 9) sorted by relevance
/external/grpc-grpc/src/core/lib/slice/ |
D | b64.cc | 147 static int decode_group(const unsigned char* codes, size_t num_codes, in decode_group() argument 149 GPR_ASSERT(num_codes <= 4); in decode_group() 152 if (num_codes == 1) { in decode_group() 156 if (num_codes == 2) { in decode_group() 160 if (num_codes == 3) { in decode_group() 166 GPR_ASSERT(num_codes == 4); in decode_group() 198 size_t num_codes = 0; in grpc_base64_decode_with_len() local 222 codes[num_codes++] = static_cast<unsigned char>(code); in grpc_base64_decode_with_len() 223 if (num_codes == 4) { in grpc_base64_decode_with_len() 224 if (!decode_group(codes, num_codes, current, &result_size)) goto fail; in grpc_base64_decode_with_len() [all …]
|
/external/puffin/src/ |
D | huffman_table.cc | 253 auto num_codes = br->ReadBits(4) + 4; in BuildDynamicHuffmanTable() local 257 CheckHuffmanArrayLengths(num_lit_len, num_distance, num_codes)); in BuildDynamicHuffmanTable() 261 TEST_AND_RETURN_FALSE(*length - index >= (num_codes + 1) / 2); in BuildDynamicHuffmanTable() 263 for (; idx < num_codes; idx++) { in BuildDynamicHuffmanTable() 317 size_t num_codes, in BuildHuffmanCodeLengths() argument 321 for (size_t idx = 0; idx < num_codes;) { in BuildHuffmanCodeLengths() 373 TEST_AND_RETURN_FALSE(lens->size() == num_codes); in BuildHuffmanCodeLengths() 406 size_t num_codes = buffer[index] + 4; in BuildDynamicHuffmanTable() local 410 CheckHuffmanArrayLengths(num_lit_len, num_distance, num_codes)); in BuildDynamicHuffmanTable() 412 TEST_AND_RETURN_FALSE(length - index >= (num_codes + 1) / 2); in BuildDynamicHuffmanTable() [all …]
|
D | huffman_table.h | 54 size_t num_codes) { in CheckHuffmanArrayLengths() argument 55 if (num_lit_len > 286 || num_distance > 30 || num_codes > 19) { in CheckHuffmanArrayLengths() 59 << "num_codes(" << num_codes << ")"; in CheckHuffmanArrayLengths() 239 size_t num_codes, 255 size_t num_codes,
|
/external/brotli/c/enc/ |
D | brotli_bit_stream.c | 184 const int num_codes, const uint8_t* code_length_bitdepth, in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask() argument 210 if (num_codes > 1) { in BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask() 311 int num_codes = 0; in BrotliStoreHuffmanTree() local 326 if (num_codes == 0) { in BrotliStoreHuffmanTree() 328 num_codes = 1; in BrotliStoreHuffmanTree() 329 } else if (num_codes == 1) { in BrotliStoreHuffmanTree() 330 num_codes = 2; in BrotliStoreHuffmanTree() 345 BrotliStoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, in BrotliStoreHuffmanTree() 348 if (num_codes == 1) { in BrotliStoreHuffmanTree()
|
/external/v8/src/compiler/ |
D | register-allocator.cc | 2925 int* num_regs, int* num_codes, in GetFPRegisterSet() argument 2930 *num_codes = data()->config()->num_allocatable_float_registers(); in GetFPRegisterSet() 2934 *num_codes = data()->config()->num_allocatable_simd128_registers(); in GetFPRegisterSet() 2944 int num_codes = num_allocatable_registers(); in FindFreeRegistersForRange() local 2949 GetFPRegisterSet(rep, &num_regs, &num_codes, &codes); in FindFreeRegistersForRange() 3082 int num_codes = num_allocatable_registers(); in TryAllocateFreeReg() local 3087 GetFPRegisterSet(rep, &num_regs, &num_codes, &codes); in TryAllocateFreeReg() 3090 DCHECK_GE(free_until_pos.length(), num_codes); in TryAllocateFreeReg() 3104 for (int i = 0; i < num_codes; ++i) { in TryAllocateFreeReg() 3149 int num_codes = num_allocatable_registers(); in AllocateBlockedReg() local [all …]
|
D | register-allocator.h | 1073 int* num_codes, const int** codes) const;
|
/external/brotli/c/dec/ |
D | decode.c | 687 uint32_t num_codes = s->repeat; in ReadCodeLengthCodeLengths() local 703 s->repeat = num_codes; in ReadCodeLengthCodeLengths() 715 ++num_codes; in ReadCodeLengthCodeLengths() 723 if (!(num_codes == 1 || space == 0)) { in ReadCodeLengthCodeLengths()
|
/external/webp/src/enc/ |
D | histogram_enc.c | 513 const int num_codes = VP8LHistogramNumCodes(h->palette_code_bits_); in UpdateHistogramCost() local 515 PopulationCost(h->literal_, num_codes, NULL, &h->is_used_[0]) + in UpdateHistogramCost()
|
/external/webp/src/dec/ |
D | vp8l_dec.c | 333 const int num_codes = VP8LReadBits(br, 4) + 4; in ReadHuffmanCode() local 334 if (num_codes > NUM_CODE_LENGTH_CODES) { in ReadHuffmanCode() 339 for (i = 0; i < num_codes; ++i) { in ReadHuffmanCode()
|