Home
last modified time | relevance | path

Searched refs:num_codes (Results 1 – 25 of 481) sorted by relevance

12345678910>>...20

/dports/devel/grpc134/grpc-1.34.1/src/core/lib/slice/
H A Db64.cc148 GPR_ASSERT(num_codes <= 4); in decode_group()
151 if (num_codes == 1) { in decode_group()
155 if (num_codes == 2) { in decode_group()
159 if (num_codes == 3) { in decode_group()
165 GPR_ASSERT(num_codes == 4); in decode_group()
197 size_t num_codes = 0; in grpc_base64_decode_with_len() local
221 codes[num_codes++] = static_cast<unsigned char>(code); in grpc_base64_decode_with_len()
222 if (num_codes == 4) { in grpc_base64_decode_with_len()
224 num_codes = 0; in grpc_base64_decode_with_len()
229 if (num_codes != 0 && in grpc_base64_decode_with_len()
[all …]
/dports/devel/grpc/grpc-1.42.0/src/core/lib/slice/
H A Db64.cc148 GPR_ASSERT(num_codes <= 4); in decode_group()
151 if (num_codes == 1) { in decode_group()
155 if (num_codes == 2) { in decode_group()
159 if (num_codes == 3) { in decode_group()
165 GPR_ASSERT(num_codes == 4); in decode_group()
197 size_t num_codes = 0; in grpc_base64_decode_with_len() local
221 codes[num_codes++] = static_cast<unsigned char>(code); in grpc_base64_decode_with_len()
222 if (num_codes == 4) { in grpc_base64_decode_with_len()
224 num_codes = 0; in grpc_base64_decode_with_len()
229 if (num_codes != 0 && in grpc_base64_decode_with_len()
[all …]
/dports/devel/grpc130/grpc-1.30.2/src/core/lib/slice/
H A Db64.cc148 GPR_ASSERT(num_codes <= 4); in decode_group()
151 if (num_codes == 1) { in decode_group()
155 if (num_codes == 2) { in decode_group()
159 if (num_codes == 3) { in decode_group()
165 GPR_ASSERT(num_codes == 4); in decode_group()
197 size_t num_codes = 0; in grpc_base64_decode_with_len() local
221 codes[num_codes++] = static_cast<unsigned char>(code); in grpc_base64_decode_with_len()
222 if (num_codes == 4) { in grpc_base64_decode_with_len()
224 num_codes = 0; in grpc_base64_decode_with_len()
229 if (num_codes != 0 && in grpc_base64_decode_with_len()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/grpc/src/src/core/lib/slice/
H A Db64.cc149 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()
225 num_codes = 0; in grpc_base64_decode_with_len()
230 if (num_codes != 0 && in grpc_base64_decode_with_len()
[all …]
/dports/devel/pecl-grpc/grpc-1.42.0/src/core/lib/slice/
H A Db64.cc148 GPR_ASSERT(num_codes <= 4); in decode_group()
151 if (num_codes == 1) { in decode_group()
155 if (num_codes == 2) { in decode_group()
159 if (num_codes == 3) { in decode_group()
165 GPR_ASSERT(num_codes == 4); in decode_group()
197 size_t num_codes = 0; in grpc_base64_decode_with_len() local
221 codes[num_codes++] = static_cast<unsigned char>(code); in grpc_base64_decode_with_len()
222 if (num_codes == 4) { in grpc_base64_decode_with_len()
224 num_codes = 0; in grpc_base64_decode_with_len()
229 if (num_codes != 0 && in grpc_base64_decode_with_len()
[all …]
/dports/devel/py-grpcio/grpcio-1.43.0/src/core/lib/slice/
H A Db64.cc148 GPR_ASSERT(num_codes <= 4); in decode_group()
151 if (num_codes == 1) { in decode_group()
155 if (num_codes == 2) { in decode_group()
159 if (num_codes == 3) { in decode_group()
165 GPR_ASSERT(num_codes == 4); in decode_group()
197 size_t num_codes = 0; in grpc_base64_decode_with_len() local
221 codes[num_codes++] = static_cast<unsigned char>(code); in grpc_base64_decode_with_len()
222 if (num_codes == 4) { in grpc_base64_decode_with_len()
224 num_codes = 0; in grpc_base64_decode_with_len()
229 if (num_codes != 0 && in grpc_base64_decode_with_len()
[all …]
/dports/graphics/tesseract/tesseract-5.0.0/src/training/unicharset/
H A Dvalidate_javanese.cpp75 const unsigned num_codes = codes_.size(); in ConsumeViramaIfValid() local
78 if (codes_used_ < num_codes && codes_[codes_used_].second == kZeroWidthJoiner) { in ConsumeViramaIfValid()
86 if (codes_used_ + 1 < num_codes && codes_[codes_used_ - 2].second != kCakra && in ConsumeViramaIfValid()
99 if (codes_used_ < num_codes && codes_[codes_used_].second == kZeroWidthNonJoiner) { in ConsumeViramaIfValid()
113 if (codes_used_ == num_codes || codes_[codes_used_].second != kZeroWidthNonJoiner) { in ConsumeViramaIfValid()
147 const unsigned num_codes = codes_.size(); in ConsumeConsonantHeadIfValid() local
159 if (codes_used_ < num_codes && codes_[codes_used_].first == CharClass::kNukta) { in ConsumeConsonantHeadIfValid()
171 if (codes_used_ < num_codes && (codes_[codes_used_].second == kZeroWidthJoiner || in ConsumeConsonantHeadIfValid()
175 if (++codes_used_ == num_codes) { in ConsumeConsonantHeadIfValid()
191 if (codes_used_ < num_codes && codes_[codes_used_].first == CharClass::kVirama) { in ConsumeConsonantHeadIfValid()
[all …]
H A Dvalidate_indic.cpp151 const unsigned num_codes = codes_.size(); in ConsumeViramaIfValid() local
154 if (codes_used_ < num_codes && codes_[codes_used_].second == kZeroWidthJoiner) { in ConsumeViramaIfValid()
162 if (codes_used_ + 1 < num_codes && codes_[codes_used_ - 2].second != kRayana && in ConsumeViramaIfValid()
175 if (codes_used_ < num_codes && codes_[codes_used_].second == kZeroWidthNonJoiner) { in ConsumeViramaIfValid()
189 if (codes_used_ == num_codes || codes_[codes_used_].second != kZeroWidthNonJoiner) { in ConsumeViramaIfValid()
223 const unsigned num_codes = codes_.size(); in ConsumeConsonantHeadIfValid() local
235 if (codes_used_ < num_codes && codes_[codes_used_].first == CharClass::kNukta) { in ConsumeConsonantHeadIfValid()
247 if (codes_used_ < num_codes && (codes_[codes_used_].second == kZeroWidthJoiner || in ConsumeConsonantHeadIfValid()
251 if (++codes_used_ == num_codes) { in ConsumeConsonantHeadIfValid()
267 if (codes_used_ < num_codes && codes_[codes_used_].first == CharClass::kVirama) { in ConsumeConsonantHeadIfValid()
[all …]
/dports/archivers/lhasa/lhasa-0.3.1/lib/
H A Dpm2_decoder.c173 int num_codes, min_code_length, length_bits, val; in read_code_tree() local
184 if (min_code_length < 0 || num_codes < 0) { in read_code_tree()
192 = num_codes >= 10 in read_code_tree()
193 && !(num_codes == 29 && min_code_length == 0); in read_code_tree()
198 set_tree_single(decoder->code_tree, num_codes - 1); in read_code_tree()
212 for (i = 0; i < (unsigned int) num_codes; ++i) { in read_code_tree()
233 code_lengths, (unsigned int) num_codes); in read_code_tree()
246 unsigned int single_offset, num_codes; in read_offset_tree() local
258 num_codes = 0; in read_offset_tree()
274 ++num_codes; in read_offset_tree()
[all …]
/dports/graphics/libjxl/libjxl-0.6.1/lib/jxl/
H A Denc_huffman.cc19 void StoreHuffmanTreeOfHuffmanTreeToBitMask(const int num_codes, in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument
41 if (num_codes > 1) { in StoreHuffmanTreeOfHuffmanTreeToBitMask()
135 int num_codes = 0; in StoreHuffmanTree() local
139 if (num_codes == 0) { in StoreHuffmanTree()
141 num_codes = 1; in StoreHuffmanTree()
142 } else if (num_codes == 1) { in StoreHuffmanTree()
143 num_codes = 2; in StoreHuffmanTree()
159 StoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, in StoreHuffmanTree()
162 if (num_codes == 1) { in StoreHuffmanTree()
/dports/www/firefox/firefox-99.0/third_party/jpeg-xl/lib/jxl/
H A Denc_huffman.cc19 void StoreHuffmanTreeOfHuffmanTreeToBitMask(const int num_codes, in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument
41 if (num_codes > 1) { in StoreHuffmanTreeOfHuffmanTreeToBitMask()
135 int num_codes = 0; in StoreHuffmanTree() local
139 if (num_codes == 0) { in StoreHuffmanTree()
141 num_codes = 1; in StoreHuffmanTree()
142 } else if (num_codes == 1) { in StoreHuffmanTree()
143 num_codes = 2; in StoreHuffmanTree()
159 StoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, in StoreHuffmanTree()
162 if (num_codes == 1) { in StoreHuffmanTree()
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/jpeg-xl/lib/jxl/
H A Denc_huffman.cc19 void StoreHuffmanTreeOfHuffmanTreeToBitMask(const int num_codes, in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument
41 if (num_codes > 1) { in StoreHuffmanTreeOfHuffmanTreeToBitMask()
135 int num_codes = 0; in StoreHuffmanTree() local
139 if (num_codes == 0) { in StoreHuffmanTree()
141 num_codes = 1; in StoreHuffmanTree()
142 } else if (num_codes == 1) { in StoreHuffmanTree()
143 num_codes = 2; in StoreHuffmanTree()
159 StoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, in StoreHuffmanTree()
162 if (num_codes == 1) { in StoreHuffmanTree()
/dports/www/firefox-esr/firefox-91.8.0/third_party/jpeg-xl/lib/jxl/
H A Denc_huffman.cc19 void StoreHuffmanTreeOfHuffmanTreeToBitMask(const int num_codes, in StoreHuffmanTreeOfHuffmanTreeToBitMask() argument
41 if (num_codes > 1) { in StoreHuffmanTreeOfHuffmanTreeToBitMask()
135 int num_codes = 0; in StoreHuffmanTree() local
139 if (num_codes == 0) { in StoreHuffmanTree()
141 num_codes = 1; in StoreHuffmanTree()
142 } else if (num_codes == 1) { in StoreHuffmanTree()
143 num_codes = 2; in StoreHuffmanTree()
159 StoreHuffmanTreeOfHuffmanTreeToBitMask(num_codes, code_length_bitdepth, in StoreHuffmanTree()
162 if (num_codes == 1) { in StoreHuffmanTree()
/dports/print/ghostscript9-agpl-base/ghostscript-9.52/base/
H A Dgsfcmap.c484 const int num_codes = cmap->num_codes; in gs_cmap_ToUnicode_next_entry() local
488 for (i = index; i < num_codes; i++) in gs_cmap_ToUnicode_next_entry()
491 if (i >= num_codes) in gs_cmap_ToUnicode_next_entry()
498 for (j = i + 1, c2 = c1 + 1; j < num_codes; j++, c2++) { in gs_cmap_ToUnicode_next_entry()
584 map = (uchar *)gs_alloc_bytes(mem, num_codes * (value_size + 2), in gs_cmap_ToUnicode_alloc()
590 memset(map, 0, num_codes * (value_size + 2)); in gs_cmap_ToUnicode_alloc()
597 cmap->num_codes = num_codes; in gs_cmap_ToUnicode_alloc()
630 memset(new_map, 0, cmap->num_codes * (new_value_size + 2)); in gs_cmap_ToUnicode_realloc()
632 for (i=0;i<cmap->num_codes;i++) { in gs_cmap_ToUnicode_realloc()
651 const int num_codes = ((gs_cmap_ToUnicode_t *)pcmap)->num_codes; in gs_cmap_ToUnicode_add_pair() local
[all …]
/dports/print/ghostscript9-agpl-x11/ghostscript-9.52/base/
H A Dgsfcmap.c484 const int num_codes = cmap->num_codes; in gs_cmap_ToUnicode_next_entry() local
488 for (i = index; i < num_codes; i++) in gs_cmap_ToUnicode_next_entry()
491 if (i >= num_codes) in gs_cmap_ToUnicode_next_entry()
498 for (j = i + 1, c2 = c1 + 1; j < num_codes; j++, c2++) { in gs_cmap_ToUnicode_next_entry()
584 map = (uchar *)gs_alloc_bytes(mem, num_codes * (value_size + 2), in gs_cmap_ToUnicode_alloc()
590 memset(map, 0, num_codes * (value_size + 2)); in gs_cmap_ToUnicode_alloc()
597 cmap->num_codes = num_codes; in gs_cmap_ToUnicode_alloc()
630 memset(new_map, 0, cmap->num_codes * (new_value_size + 2)); in gs_cmap_ToUnicode_realloc()
632 for (i=0;i<cmap->num_codes;i++) { in gs_cmap_ToUnicode_realloc()
651 const int num_codes = ((gs_cmap_ToUnicode_t *)pcmap)->num_codes; in gs_cmap_ToUnicode_add_pair() local
[all …]
/dports/print/ghostscript8-x11/ghostscript-8.71/base/
H A Dgsfcmap.c419 int num_codes; member
480 const int num_codes = cmap->num_codes; in gs_cmap_ToUnicode_next_entry() local
485 for (i = index; i < num_codes; i++) in gs_cmap_ToUnicode_next_entry()
488 if (i >= num_codes) in gs_cmap_ToUnicode_next_entry()
492 for (j = i + 1, c2 = c1 + 1; j < num_codes; j++, c2++) { in gs_cmap_ToUnicode_next_entry()
542 gs_cmap_ToUnicode_alloc(gs_memory_t *mem, int id, int num_codes, int key_size, gs_cmap_t **ppcmap) in gs_cmap_ToUnicode_alloc() argument
570 map = (uchar *)gs_alloc_bytes(mem, num_codes * gs_cmap_ToUnicode_code_bytes, in gs_cmap_ToUnicode_alloc()
574 memset(map, 0, num_codes * gs_cmap_ToUnicode_code_bytes); in gs_cmap_ToUnicode_alloc()
580 cmap->num_codes = num_codes; in gs_cmap_ToUnicode_alloc()
593 const int num_codes = ((gs_cmap_ToUnicode_t *)pcmap)->num_codes; in gs_cmap_ToUnicode_add_pair() local
[all …]
/dports/print/ghostscript8-base/ghostscript-8.71/base/
H A Dgsfcmap.c419 int num_codes; member
480 const int num_codes = cmap->num_codes; in gs_cmap_ToUnicode_next_entry() local
485 for (i = index; i < num_codes; i++) in gs_cmap_ToUnicode_next_entry()
488 if (i >= num_codes) in gs_cmap_ToUnicode_next_entry()
492 for (j = i + 1, c2 = c1 + 1; j < num_codes; j++, c2++) { in gs_cmap_ToUnicode_next_entry()
542 gs_cmap_ToUnicode_alloc(gs_memory_t *mem, int id, int num_codes, int key_size, gs_cmap_t **ppcmap) in gs_cmap_ToUnicode_alloc() argument
570 map = (uchar *)gs_alloc_bytes(mem, num_codes * gs_cmap_ToUnicode_code_bytes, in gs_cmap_ToUnicode_alloc()
574 memset(map, 0, num_codes * gs_cmap_ToUnicode_code_bytes); in gs_cmap_ToUnicode_alloc()
580 cmap->num_codes = num_codes; in gs_cmap_ToUnicode_alloc()
593 const int num_codes = ((gs_cmap_ToUnicode_t *)pcmap)->num_codes; in gs_cmap_ToUnicode_add_pair() local
[all …]
/dports/print/ghostscript9-base/ghostscript-9.06/base/
H A Dgsfcmap.c428 int num_codes; member
489 const int num_codes = cmap->num_codes; in gs_cmap_ToUnicode_next_entry() local
493 for (i = index; i < num_codes; i++) in gs_cmap_ToUnicode_next_entry()
496 if (i >= num_codes) in gs_cmap_ToUnicode_next_entry()
500 for (j = i + 1, c2 = c1 + 1; j < num_codes; j++, c2++) { in gs_cmap_ToUnicode_next_entry()
555 gs_cmap_ToUnicode_alloc(gs_memory_t *mem, int id, int num_codes, int key_size, gs_cmap_t **ppcmap) in gs_cmap_ToUnicode_alloc() argument
583 map = (uchar *)gs_alloc_bytes(mem, num_codes * gs_cmap_ToUnicode_code_bytes, in gs_cmap_ToUnicode_alloc()
589 memset(map, 0, num_codes * gs_cmap_ToUnicode_code_bytes); in gs_cmap_ToUnicode_alloc()
595 cmap->num_codes = num_codes; in gs_cmap_ToUnicode_alloc()
615 const int num_codes = ((gs_cmap_ToUnicode_t *)pcmap)->num_codes; in gs_cmap_ToUnicode_add_pair() local
[all …]
/dports/print/ghostscript9-x11/ghostscript-9.06/base/
H A Dgsfcmap.c428 int num_codes; member
489 const int num_codes = cmap->num_codes; in gs_cmap_ToUnicode_next_entry() local
493 for (i = index; i < num_codes; i++) in gs_cmap_ToUnicode_next_entry()
496 if (i >= num_codes) in gs_cmap_ToUnicode_next_entry()
500 for (j = i + 1, c2 = c1 + 1; j < num_codes; j++, c2++) { in gs_cmap_ToUnicode_next_entry()
555 gs_cmap_ToUnicode_alloc(gs_memory_t *mem, int id, int num_codes, int key_size, gs_cmap_t **ppcmap) in gs_cmap_ToUnicode_alloc() argument
583 map = (uchar *)gs_alloc_bytes(mem, num_codes * gs_cmap_ToUnicode_code_bytes, in gs_cmap_ToUnicode_alloc()
589 memset(map, 0, num_codes * gs_cmap_ToUnicode_code_bytes); in gs_cmap_ToUnicode_alloc()
595 cmap->num_codes = num_codes; in gs_cmap_ToUnicode_alloc()
615 const int num_codes = ((gs_cmap_ToUnicode_t *)pcmap)->num_codes; in gs_cmap_ToUnicode_add_pair() local
[all …]
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/deflate-0.8.6/src/
H A Dlength_encode.rs285 num_codes: &mut [u16; NUM_CODES_LENGTH], in enforce_max_code_lengths()
295 for &l in num_codes[(max_len as usize + 1)..].iter() {
299 num_codes[max_len] += num_above_max;
306 total += (u32::from(num_codes[i])) << (max_len - i);
312 num_codes[max_len] -= 1;
314 if num_codes[i] != 0 {
315 num_codes[i] -= 1;
316 num_codes[i + 1] += 2;
388 let mut num_codes = [0u16; NUM_CODES_LENGTH]; in in_place_lengths() localVariable
390 num_codes[l.value as usize] += 1; in in_place_lengths()
[all …]
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/deflate-0.8.6/src/
H A Dlength_encode.rs285 num_codes: &mut [u16; NUM_CODES_LENGTH], in enforce_max_code_lengths()
295 for &l in num_codes[(max_len as usize + 1)..].iter() {
299 num_codes[max_len] += num_above_max;
306 total += (u32::from(num_codes[i])) << (max_len - i);
312 num_codes[max_len] -= 1;
314 if num_codes[i] != 0 {
315 num_codes[i] -= 1;
316 num_codes[i + 1] += 2;
388 let mut num_codes = [0u16; NUM_CODES_LENGTH]; in in_place_lengths() localVariable
390 num_codes[l.value as usize] += 1; in in_place_lengths()
[all …]
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/deflate-0.9.1/src/
H A Dlength_encode.rs291 num_codes: &mut [u16; NUM_CODES_LENGTH], in enforce_max_code_lengths()
299 for &l in num_codes[(max_len as usize + 1)..].iter() {
303 num_codes[max_len] += num_above_max;
310 total += (u32::from(num_codes[i])) << (max_len - i);
316 num_codes[max_len] -= 1;
318 if num_codes[i] != 0 {
319 num_codes[i] -= 1;
320 num_codes[i + 1] += 2;
392 let mut num_codes = [0u16; NUM_CODES_LENGTH]; in in_place_lengths() localVariable
394 num_codes[l.value as usize] += 1; in in_place_lengths()
[all …]
/dports/multimedia/termplay/termplay-2.0.6/cargo-crates/deflate-0.7.20/src/
H A Dlength_encode.rs275 num_codes: &mut [u16; NUM_CODES_LENGTH], in enforce_max_code_lengths()
285 for &l in num_codes[(max_len as usize + 1)..].iter() {
289 num_codes[max_len] += num_above_max;
296 total += (num_codes[i] as u32) << (max_len - i);
302 num_codes[max_len] -= 1;
304 if num_codes[i] != 0 {
305 num_codes[i] -= 1;
306 num_codes[i + 1] += 2;
380 let mut num_codes = [0u16; NUM_CODES_LENGTH]; in in_place_lengths() localVariable
382 num_codes[l.value as usize] += 1; in in_place_lengths()
[all …]
/dports/graphics/librsvg2-rust/librsvg-2.52.8/vendor/deflate/src/
H A Dlength_encode.rs291 num_codes: &mut [u16; NUM_CODES_LENGTH], in enforce_max_code_lengths()
299 for &l in num_codes[(max_len as usize + 1)..].iter() {
303 num_codes[max_len] += num_above_max;
310 total += (u32::from(num_codes[i])) << (max_len - i);
316 num_codes[max_len] -= 1;
318 if num_codes[i] != 0 {
319 num_codes[i] -= 1;
320 num_codes[i + 1] += 2;
392 let mut num_codes = [0u16; NUM_CODES_LENGTH]; in in_place_lengths() localVariable
394 num_codes[l.value as usize] += 1; in in_place_lengths()
[all …]
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/deflate-0.7.19/src/
H A Dlength_encode.rs275 num_codes: &mut [u16; NUM_CODES_LENGTH], in enforce_max_code_lengths()
285 for &l in num_codes[(max_len as usize + 1)..].iter() {
289 num_codes[max_len] += num_above_max;
296 total += (num_codes[i] as u32) << (max_len - i);
302 num_codes[max_len] -= 1;
304 if num_codes[i] != 0 {
305 num_codes[i] -= 1;
306 num_codes[i + 1] += 2;
380 let mut num_codes = [0u16; NUM_CODES_LENGTH]; in in_place_lengths() localVariable
382 num_codes[l.value as usize] += 1; in in_place_lengths()
[all …]

12345678910>>...20