/dports/graphics/py-gdal/gdal-3.3.3/third_party/LercLib/ |
H A D | Huffman.cpp | 35 bool Huffman::ComputeCodes(const vector<int>& histo) in ComputeCodes() argument 37 if (histo.empty() || histo.size() >= m_maxHistoSize) in ComputeCodes() 44 int size = (int)histo.size(); in ComputeCodes() 46 if (histo[i] > 0) in ComputeCodes() 47 pq.push(Node((short)i, histo[i])); in ComputeCodes() 85 bool Huffman::ComputeCompressedSize(const std::vector<int>& histo, int& numBytes, double& avgBpp) c… in ComputeCompressedSize() argument 87 if (histo.empty() || histo.size() >= m_maxHistoSize) in ComputeCompressedSize() 95 int size = (int)histo.size(); in ComputeCompressedSize() 97 if (histo[i] > 0) in ComputeCompressedSize() 99 numBits += histo[i] * m_codeTable[i].first; in ComputeCompressedSize() [all …]
|
/dports/textproc/angle-grinder/angle-grinder-0.18.0/cargo-crates/quantiles-0.7.1/src/ |
H A D | histogram.rs | 509 let mut histo = Histogram::new(bounds).unwrap(); localVariable 512 histo.insert(i); 516 assert_eq!(total, histo.count()); 531 let mut histo = Histogram::new(bounds).unwrap(); localVariable 535 histo.insert(i); 540 assert_eq!(None, histo.sum()); 542 assert_eq!(Some(sum), histo.sum()); 560 histo.insert(i); 587 assert_eq!(below_count, histo.total_below(*b)) 605 histo.insert(i); [all …]
|
/dports/science/teem/teem-1.11.0-src/src/ten/ |
H A D | bimod.c | 41 biparm->histo = NULL; in tenEMBimodalParmNew() 53 biparm->histo = (double *)airFree(biparm->histo); in tenEMBimodalParmNix() 84 biparm->histo = (double*)(nhisto->data); in _tenEMBimodalInit() 94 biparm->histo, nrrdTypeDouble, biparm->N, in _tenEMBimodalInit() 98 biparm->histo, nrrdTypeDouble, biparm->N, in _tenEMBimodalInit() 101 biparm->histo[i] /= sum; in _tenEMBimodalInit() 120 biparm->histo, nrrdTypeDouble, median, in _tenEMBimodalInit() 124 biparm->histo, nrrdTypeDouble, median, in _tenEMBimodalInit() 220 h = biparm->histo[i]; in _tenEMBimodalNewFraction1() 237 h = biparm->histo[i]; in _tenEMBimodalNewMean() [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/mul/mbl/ |
H A D | mbl_histogram.h | 95 void vsl_b_write(vsl_b_ostream& bfs, const mbl_histogram& histo); 98 void vsl_b_read(vsl_b_istream& bfs, mbl_histogram& histo); 101 std::ostream& operator<<(std::ostream& os, const mbl_histogram& histo); 104 void vsl_print_summary(std::ostream& os, const mbl_histogram& histo);
|
H A D | mbl_wt_histogram.h | 100 void vsl_b_write(vsl_b_ostream& bfs, const mbl_wt_histogram& histo); 103 void vsl_b_read(vsl_b_istream& bfs, mbl_wt_histogram& histo); 106 std::ostream& operator<<(std::ostream& os, const mbl_wt_histogram& histo); 109 void vsl_print_summary(std::ostream& os, const mbl_wt_histogram& histo);
|
/dports/biology/stringtie/stringtie-2.1.1/SuperReads_RNA/global-1/jellyfish/swig/ruby/ |
H A D | test_mer_file.rb | 12 histo = [] 13 histo[@mf.count] = (histo[@mf.count] || 0) + 1 while @mf.next_mer 23 assert_equal jf_histo, histo
|
/dports/biology/jellyfish/jellyfish-2.3.0/swig/ruby/ |
H A D | test_mer_file.rb | 19 histo = [] 20 histo[@mf.count] = (histo[@mf.count] || 0) + 1 while @mf.next_mer 30 assert_equal jf_histo, histo
|
/dports/math/openturns/openturns-1.18/python/doc/examples/meta_modeling/low_rank_tensors_metamodel/ |
H A D | plot_tensor_cantilever_beam.py | 106 histo = ot.HistogramFactory().build(Y_train).drawPDF() variable 107 histo.setXTitle("Vertical deviation (cm)") 108 histo.setTitle("Distribution of the vertical deviation") 109 histo.setLegends([""]) 110 view = viewer.View(histo)
|
/dports/biology/jellyfish/jellyfish-2.3.0/swig/perl5/t/ |
H A D | test_mer_file.t | 15 # Compare histo 18 my @histo; 19 $histo[$rf->count]++ while($rf->next_mer); 21 open(my $io, "<", $data . "/swig_perl.histo"); 28 is_deeply(\@histo, \@jf_histo, "Histogram");
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/libwebp/src/enc/ |
H A D | histogram_enc.c | 70 WebPSafeFree(histo); in VP8LFreeHistogram() 74 WebPSafeFree(histo); in VP8LFreeHistogramSet() 112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local 116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram() 120 return histo; in VP8LAllocateHistogram() 205 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 212 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 224 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy() 593 UpdateHistogramCost(histo); in HistogramCopyAndAnalyze() 597 if (!histo->is_used_[0] && !histo->is_used_[1] && !histo->is_used_[2] in HistogramCopyAndAnalyze() [all …]
|
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/brotli-3.3.2/src/enc/ |
H A D | compress_fragment.rs | 144 histo: &mut [u32], in EmitInsertLen() 204 let _lhs = &mut histo[(61usize)]; in EmitInsertLen() 247 histo: &mut [u32], in EmitLongInsertLen() 261 let _lhs = &mut histo[(62usize)]; in EmitLongInsertLen() 275 let _lhs = &mut histo[(63usize)]; in EmitLongInsertLen() 304 histo: &mut [u32], in EmitDistance() 383 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() 409 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() 427 let _lhs = &mut histo[(39usize)]; in EmitCopyLenLastDistance() 432 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() [all …]
|
H A D | literal_cost.rs | 149 let mut histo: usize = histogram[utf8_pos][data[(masked_pos as (usize))] as (usize)]; in EstimateBitCostsForLiteralsUTF8() localVariable 152 if histo == 0usize { in EstimateBitCostsForLiteralsUTF8() 153 histo = 1usize; in EstimateBitCostsForLiteralsUTF8() 155 … lit_cost = FastLog2f64(in_window_utf8[utf8_pos] as u64) as f64 - FastLog2f64(histo as u64) as f64; in EstimateBitCostsForLiteralsUTF8() 197 let mut histo: usize; in BrotliEstimateBitCostsForLiterals() localVariable 216 histo = histogram[data[((pos.wrapping_add(i) & mask) as (usize))] as (usize)]; in BrotliEstimateBitCostsForLiterals() 217 if histo == 0usize { in BrotliEstimateBitCostsForLiterals() 218 histo = 1usize; in BrotliEstimateBitCostsForLiterals() 222 … let mut lit_cost: f64 = FastLog2f64(in_window as u64) as f64 - FastLog2f64(histo as u64) as f64; in BrotliEstimateBitCostsForLiterals()
|
/dports/www/firefox/firefox-99.0/media/libwebp/src/enc/ |
H A D | histogram_enc.c | 70 WebPSafeFree(histo); in VP8LFreeHistogram() 74 WebPSafeFree(histo); in VP8LFreeHistogramSet() 112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local 116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram() 120 return histo; in VP8LAllocateHistogram() 205 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 212 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 224 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy() 593 UpdateHistogramCost(histo); in HistogramCopyAndAnalyze() 597 if (!histo->is_used_[0] && !histo->is_used_[1] && !histo->is_used_[2] in HistogramCopyAndAnalyze() [all …]
|
/dports/graphics/webp/libwebp-1.2.1/src/enc/ |
H A D | histogram_enc.c | 70 WebPSafeFree(histo); in VP8LFreeHistogram() 74 WebPSafeFree(histo); in VP8LFreeHistogramSet() 112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local 116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram() 120 return histo; in VP8LAllocateHistogram() 205 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 212 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 224 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy() 593 UpdateHistogramCost(histo); in HistogramCopyAndAnalyze() 597 if (!histo->is_used_[0] && !histo->is_used_[1] && !histo->is_used_[2] in HistogramCopyAndAnalyze() [all …]
|
/dports/www/gohugo/hugo-0.91.2/vendor/github.com/bep/gowebp/libwebp_src/src/enc/ |
H A D | histogram_enc.c | 70 WebPSafeFree(histo); in VP8LFreeHistogram() 74 WebPSafeFree(histo); in VP8LFreeHistogramSet() 112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local 116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram() 120 return histo; in VP8LAllocateHistogram() 205 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 212 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 224 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy() 593 UpdateHistogramCost(histo); in HistogramCopyAndAnalyze() 597 if (!histo->is_used_[0] && !histo->is_used_[1] && !histo->is_used_[2] in HistogramCopyAndAnalyze() [all …]
|
/dports/security/suricata/suricata-6.0.4/rust/vendor/brotli/src/enc/ |
H A D | compress_fragment.rs | 144 histo: &mut [u32], in EmitInsertLen() 204 let _lhs = &mut histo[(61usize)]; in EmitInsertLen() 247 histo: &mut [u32], in EmitLongInsertLen() 261 let _lhs = &mut histo[(62usize)]; in EmitLongInsertLen() 275 let _lhs = &mut histo[(63usize)]; in EmitLongInsertLen() 304 histo: &mut [u32], in EmitDistance() 383 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() 409 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() 427 let _lhs = &mut histo[(39usize)]; in EmitCopyLenLastDistance() 432 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() [all …]
|
H A D | literal_cost.rs | 149 let mut histo: usize = histogram[utf8_pos][data[(masked_pos as (usize))] as (usize)]; in EstimateBitCostsForLiteralsUTF8() localVariable 152 if histo == 0usize { in EstimateBitCostsForLiteralsUTF8() 153 histo = 1usize; in EstimateBitCostsForLiteralsUTF8() 155 … lit_cost = FastLog2f64(in_window_utf8[utf8_pos] as u64) as f64 - FastLog2f64(histo as u64) as f64; in EstimateBitCostsForLiteralsUTF8() 197 let mut histo: usize; in BrotliEstimateBitCostsForLiterals() localVariable 216 histo = histogram[data[((pos.wrapping_add(i) & mask) as (usize))] as (usize)]; in BrotliEstimateBitCostsForLiterals() 217 if histo == 0usize { in BrotliEstimateBitCostsForLiterals() 218 histo = 1usize; in BrotliEstimateBitCostsForLiterals() 222 … let mut lit_cost: f64 = FastLog2f64(in_window as u64) as f64 - FastLog2f64(histo as u64) as f64; in BrotliEstimateBitCostsForLiterals()
|
/dports/graphics/opencv/opencv-4.5.3/3rdparty/libwebp/src/enc/ |
H A D | histogram_enc.c | 70 WebPSafeFree(histo); in VP8LFreeHistogram() 74 WebPSafeFree(histo); in VP8LFreeHistogramSet() 112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local 116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram() 120 return histo; in VP8LAllocateHistogram() 205 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 212 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 224 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy() 593 UpdateHistogramCost(histo); in HistogramCopyAndAnalyze() 597 if (!histo->is_used_[0] && !histo->is_used_[1] && !histo->is_used_[2] in HistogramCopyAndAnalyze() [all …]
|
/dports/www/xh/xh-0.14.1/cargo-crates/brotli-3.3.2/src/enc/ |
H A D | compress_fragment.rs | 144 histo: &mut [u32], in EmitInsertLen() 204 let _lhs = &mut histo[(61usize)]; in EmitInsertLen() 247 histo: &mut [u32], in EmitLongInsertLen() 261 let _lhs = &mut histo[(62usize)]; in EmitLongInsertLen() 275 let _lhs = &mut histo[(63usize)]; in EmitLongInsertLen() 304 histo: &mut [u32], in EmitDistance() 383 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() 409 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() 427 let _lhs = &mut histo[(39usize)]; in EmitCopyLenLastDistance() 432 let _lhs = &mut histo[(64usize)]; in EmitCopyLenLastDistance() [all …]
|
H A D | literal_cost.rs | 149 let mut histo: usize = histogram[utf8_pos][data[(masked_pos as (usize))] as (usize)]; in EstimateBitCostsForLiteralsUTF8() localVariable 152 if histo == 0usize { in EstimateBitCostsForLiteralsUTF8() 153 histo = 1usize; in EstimateBitCostsForLiteralsUTF8() 155 … lit_cost = FastLog2f64(in_window_utf8[utf8_pos] as u64) as f64 - FastLog2f64(histo as u64) as f64; in EstimateBitCostsForLiteralsUTF8() 197 let mut histo: usize; in BrotliEstimateBitCostsForLiterals() localVariable 216 histo = histogram[data[((pos.wrapping_add(i) & mask) as (usize))] as (usize)]; in BrotliEstimateBitCostsForLiterals() 217 if histo == 0usize { in BrotliEstimateBitCostsForLiterals() 218 histo = 1usize; in BrotliEstimateBitCostsForLiterals() 222 … let mut lit_cost: f64 = FastLog2f64(in_window as u64) as f64 - FastLog2f64(histo as u64) as f64; in BrotliEstimateBitCostsForLiterals()
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libwebp-sys2-0.1.2/c_src/src/enc/ |
H A D | histogram_enc.c | 70 WebPSafeFree(histo); in VP8LFreeHistogram() 74 WebPSafeFree(histo); in VP8LFreeHistogramSet() 112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local 116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram() 120 return histo; in VP8LAllocateHistogram() 205 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 212 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 224 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy() 593 UpdateHistogramCost(histo); in HistogramCopyAndAnalyze() 597 if (!histo->is_used_[0] && !histo->is_used_[1] && !histo->is_used_[2] in HistogramCopyAndAnalyze() [all …]
|
/dports/graphics/dssim/dssim-3.1.2/cargo-crates/libwebp-sys2-0.1.2/c_src/src/enc/ |
H A D | histogram_enc.c | 70 WebPSafeFree(histo); in VP8LFreeHistogram() 74 WebPSafeFree(histo); in VP8LFreeHistogramSet() 112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local 116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram() 120 return histo; in VP8LAllocateHistogram() 205 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 212 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 224 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy() 593 UpdateHistogramCost(histo); in HistogramCopyAndAnalyze() 597 if (!histo->is_used_[0] && !histo->is_used_[1] && !histo->is_used_[2] in HistogramCopyAndAnalyze() [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/toonzlib/ |
H A D | tbinarizer.cpp | 138 std::vector<int> histo(32, 0); in process() local 145 histo[v >> 3] += 1; in process() 151 if (histo[31] > tot / 2 && histo[30] < 4) { in process() 159 while (i >= 0 && histo[i] == 0) i--; in process() 162 while (i > 0 && histo[i - 1] > histo[i]) i--; in process() 172 int c = histo[i]; in process() 173 while (i < bgThreshold && c < 20) c += histo[++i]; in process()
|
/dports/graphics/freeimage/FreeImage/Source/LibWebP/src/enc/ |
H A D | histogram_enc.h | 74 VP8LHistogram* const histo); 77 void VP8LFreeHistogram(VP8LHistogram* const histo); 80 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo); 92 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
|
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/WebP/src/enc/ |
H A D | histogram_enc.h | 74 VP8LHistogram* const histo); 77 void VP8LFreeHistogram(VP8LHistogram* const histo); 80 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo); 92 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
|