Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 43) sorted by relevance

12

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Dssim.c36 const uint64_t xmxm = (uint64_t)stats->xm * stats->xm; in SSIMCalculation()
37 const uint64_t ymym = (uint64_t)stats->ym * stats->ym; in SSIMCalculation()
39 const int64_t xmym = (int64_t)stats->xm * stats->ym; in SSIMCalculation()
60 return SSIMCalculation(stats, stats->w); in VP8SSIMFromStatsClipped()
82 stats.w += w; in SSIMGetClipped_C()
83 stats.xm += w * s1; in SSIMGetClipped_C()
84 stats.ym += w * s2; in SSIMGetClipped_C()
85 stats.xxm += w * s1 * s1; in SSIMGetClipped_C()
86 stats.xym += w * s1 * s2; in SSIMGetClipped_C()
102 stats.xm += w * s1; in SSIMGet_C()
[all …]
A Dlossless_enc_mips32.c219 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats) { in GetEntropyUnrefinedHelper() argument
220 int* const pstreaks = &stats->streaks[0][0]; in GetEntropyUnrefinedHelper()
221 int* const pcnts = &stats->counts[0]; in GetEntropyUnrefinedHelper()
246 VP8LStreaks* const stats) { in GetEntropyUnrefined_MIPS32() argument
251 memset(stats, 0, sizeof(*stats)); in GetEntropyUnrefined_MIPS32()
257 GetEntropyUnrefinedHelper(x, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined_MIPS32()
260 GetEntropyUnrefinedHelper(0, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined_MIPS32()
269 VP8LStreaks* const stats) { in GetCombinedEntropyUnrefined_MIPS32() argument
274 memset(stats, 0, sizeof(*stats)); in GetCombinedEntropyUnrefined_MIPS32()
280 GetEntropyUnrefinedHelper(xy, i, &xy_prev, &i_prev, entropy, stats); in GetCombinedEntropyUnrefined_MIPS32()
[all …]
A Dssim_sse2.c127 VP8DistoStats stats; in SSIMGet_SSE2() local
140 stats.xm = HorizontalAdd16b_SSE2(&xm); in SSIMGet_SSE2()
141 stats.ym = HorizontalAdd16b_SSE2(&ym); in SSIMGet_SSE2()
142 stats.xxm = HorizontalAdd32b_SSE2(&xxm); in SSIMGet_SSE2()
143 stats.xym = HorizontalAdd32b_SSE2(&xym); in SSIMGet_SSE2()
144 stats.yym = HorizontalAdd32b_SSE2(&yym); in SSIMGet_SSE2()
145 return VP8SSIMFromStats(&stats); in SSIMGet_SSE2()
A Dlossless_enc.c435 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats) { in GetEntropyUnrefinedHelper() argument
450 stats->counts[*val_prev != 0] += (streak > 3); in GetEntropyUnrefinedHelper()
451 stats->streaks[*val_prev != 0][(streak > 3)] += streak; in GetEntropyUnrefinedHelper()
459 VP8LStreaks* const stats) { in GetEntropyUnrefined_C() argument
464 memset(stats, 0, sizeof(*stats)); in GetEntropyUnrefined_C()
470 GetEntropyUnrefinedHelper(x, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined_C()
473 GetEntropyUnrefinedHelper(0, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined_C()
482 VP8LStreaks* const stats) { in GetCombinedEntropyUnrefined_C() argument
487 memset(stats, 0, sizeof(*stats)); in GetCombinedEntropyUnrefined_C()
493 GetEntropyUnrefinedHelper(xy, i, &xy_prev, &i_prev, bit_entropy, stats); in GetCombinedEntropyUnrefined_C()
[all …]
A Dlossless.h185 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats);
191 VP8LStreaks* const stats);
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/
A Daccuracy_utils.cc62 StreamingAccuracyStats* stats) { in CalculateAccuracyStats() argument
69 stats->how_many_ground_truth_words = 0; in CalculateAccuracyStats()
75 ++stats->how_many_ground_truth_words; in CalculateAccuracyStats()
78 stats->how_many_false_positives = 0; in CalculateAccuracyStats()
79 stats->how_many_correct_words = 0; in CalculateAccuracyStats()
80 stats->how_many_wrong_words = 0; in CalculateAccuracyStats()
100 ++stats->how_many_correct_words; in CalculateAccuracyStats()
102 ++stats->how_many_wrong_words; in CalculateAccuracyStats()
109 ++stats->how_many_false_positives; in CalculateAccuracyStats()
122 stats.how_many_ground_truth_words; in PrintAccuracyStats()
[all …]
A Daccuracy_utils_test.cc43 StreamingAccuracyStats stats; in TEST() local
46 &stats); in TEST()
47 EXPECT_EQ(2, stats.how_many_ground_truth_words); in TEST()
48 EXPECT_EQ(2, stats.how_many_ground_truth_matched); in TEST()
49 EXPECT_EQ(1, stats.how_many_false_positives); in TEST()
50 EXPECT_EQ(1, stats.how_many_correct_words); in TEST()
51 EXPECT_EQ(1, stats.how_many_wrong_words); in TEST()
55 StreamingAccuracyStats stats; in TEST() local
56 PrintAccuracyStats(stats); in TEST()
A Dtest_streaming_accuracy.cc278 tensorflow::StreamingAccuracyStats stats; in main() local
281 &stats); in main()
282 int32 false_positive_delta = stats.how_many_false_positives - in main()
284 int32 correct_delta = stats.how_many_correct_words - in main()
287 stats.how_many_wrong_words - previous_stats.how_many_wrong_words; in main()
300 previous_stats = stats; in main()
301 tensorflow::PrintAccuracyStats(stats); in main()
306 tensorflow::StreamingAccuracyStats stats; in main() local
308 time_tolerance_ms, &stats); in main()
309 tensorflow::PrintAccuracyStats(stats); in main()
A Dtest_streaming_accuracy.py123 stats = StreamingAccuracyStats()
124 stats.read_ground_truth_file(FLAGS.ground_truth)
167 stats.calculate_accuracy_stats(all_found_words, current_time_ms,
170 recognition_state = stats.delta()
178 stats.print_accuracy_stats()
179 stats.calculate_accuracy_stats(all_found_words, -1, FLAGS.time_tolerance_ms)
180 stats.print_accuracy_stats()
A Daccuracy_utils.h53 StreamingAccuracyStats* stats);
56 void PrintAccuracyStats(const StreamingAccuracyStats& stats);
/AliOS-Things-master/components/py_engine/tests/
A Drun-natmodtests.py97 def run_tests(target_truth, target, args, stats): argument
150 stats["total"] += 1
152 stats["pass"] += 1
154 stats["skip"] += 1
156 stats["fail"] += 1
186 run_tests(target_truth, target, args, stats)
191 print("{} tests performed".format(stats["total"]))
192 print("{} tests passed".format(stats["pass"]))
193 if stats["fail"]:
195 if stats["skip"]:
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dalpha_enc.c61 picture.stats = stats; in EncodeLossless()
105 WebPAuxStats stats; member
272 stats->lossless_features = best.stats.lossless_features; in ApplyFiltersAndEncode()
273 stats->histogram_bits = best.stats.histogram_bits; in ApplyFiltersAndEncode()
274 stats->transform_bits = best.stats.transform_bits; in ApplyFiltersAndEncode()
275 stats->cache_bits = best.stats.cache_bits; in ApplyFiltersAndEncode()
276 stats->palette_size = best.stats.palette_size; in ApplyFiltersAndEncode()
277 stats->lossless_size = best.stats.lossless_size; in ApplyFiltersAndEncode()
278 stats->lossless_hdr_size = best.stats.lossless_hdr_size; in ApplyFiltersAndEncode()
279 stats->lossless_data_size = best.stats.lossless_data_size; in ApplyFiltersAndEncode()
[all …]
A Dwebp_enc.c272 WebPAuxStats* stats = enc->pic_->stats; in FinalizePSNR() local
275 stats->PSNR[0] = (float)GetPSNR(sse[0], size); in FinalizePSNR()
276 stats->PSNR[1] = (float)GetPSNR(sse[1], size / 4); in FinalizePSNR()
277 stats->PSNR[2] = (float)GetPSNR(sse[2], size / 4); in FinalizePSNR()
279 stats->PSNR[4] = (float)GetPSNR(sse[3], size); in FinalizePSNR()
285 WebPAuxStats* const stats = enc->pic_->stats; in StoreStats() local
286 if (stats != NULL) { in StoreStats()
290 stats->segment_quant[i] = enc->dqm_[i].quant_; in StoreStats()
296 stats->coded_size = enc->coded_size_; in StoreStats()
298 stats->block_count[i] = enc->block_count_[i]; in StoreStats()
[all …]
A Dframe_enc.c204 if (enc->pic_->stats != NULL) { in SetSegmentProbas()
493 if (pic->stats != NULL) { in StoreSideInfo()
526 if (pic->stats != NULL) { in ResetSideInfo()
623 PassStats stats; in StatLoop() local
625 InitPassStats(enc, &stats); in StatLoop()
646 num_pass_left, stats.last_value, stats.value, stats.last_q, stats.q); in StatLoop()
658 ComputeNextQ(&stats); in StatLoop()
783 PassStats stats; in VP8EncTokenLoop() local
786 InitPassStats(enc, &stats); in VP8EncTokenLoop()
852 num_pass_left, stats.last_value, stats.value, in VP8EncTokenLoop()
[all …]
A Dcost_enc.h35 StatsArray* stats; member
45 static WEBP_INLINE int VP8RecordStats(int bit, proba_t* const stats) { in VP8RecordStats() argument
46 proba_t p = *stats; in VP8RecordStats()
54 *stats = p; in VP8RecordStats()
A Dhistogram_enc.c284 retval += stats->counts[0] * 1.5625 + 0.234375 * stats->streaks[0][1]; in FinalHuffmanCost()
287 retval += stats->counts[1] * 2.578125 + 0.703125 * stats->streaks[1][1]; in FinalHuffmanCost()
302 VP8LStreaks stats; in PopulationCost() local
309 *is_used = (stats.streaks[1][0] != 0 || stats.streaks[1][1] != 0); in PopulationCost()
321 VP8LStreaks stats; in GetCombinedEntropy() local
327 memset(&stats, 0, sizeof(stats)); in GetCombinedEntropy()
329 stats.streaks[1][0] = 1; in GetCombinedEntropy()
331 stats.counts[0] = 1; in GetCombinedEntropy()
333 return FinalHuffmanCost(&stats); in GetCombinedEntropy()
346 memset(&stats, 0, sizeof(stats)); in GetCombinedEntropy()
[all …]
A Dvp8l_enc.c1649 if (stats != NULL) { in EncodeStreamHook()
1800 memcpy(picture->stats, &stats_side, sizeof(*picture->stats)); in VP8LEncodeStream()
1856 if (picture->stats != NULL) { in VP8LEncodeImage()
1857 WebPAuxStats* const stats = picture->stats; in VP8LEncodeImage() local
1858 memset(stats, 0, sizeof(*stats)); in VP8LEncodeImage()
1859 stats->PSNR[0] = 99.f; in VP8LEncodeImage()
1860 stats->PSNR[1] = 99.f; in VP8LEncodeImage()
1861 stats->PSNR[2] = 99.f; in VP8LEncodeImage()
1862 stats->PSNR[3] = 99.f; in VP8LEncodeImage()
1863 stats->PSNR[4] = 99.f; in VP8LEncodeImage()
[all …]
A Dtoken_enc.c92 proba_t* const stats) { in AddToken() argument
99 VP8RecordStats(bit, stats); in AddToken()
121 proba_t* s = res->stats[n][ctx]; in VP8RecordCoeffTokens()
132 s = res->stats[VP8EncBands[n]][0]; in VP8RecordCoeffTokens()
137 s = res->stats[VP8EncBands[n]][1]; in VP8RecordCoeffTokens()
185 s = res->stats[VP8EncBands[n]][2]; in VP8RecordCoeffTokens()
A Dcost_enc.c210 res->stats = enc->proba_.stats_[coeff_type]; in VP8InitResidual()
292 proba_t* s = res->stats[n][ctx]; in VP8RecordCoeffs()
302 s = res->stats[VP8EncBands[n]][0]; in VP8RecordCoeffs()
306 s = res->stats[VP8EncBands[n]][1]; in VP8RecordCoeffs()
335 s = res->stats[VP8EncBands[n]][2]; in VP8RecordCoeffs()
A Dsyntax_enc.c293 if (enc->pic_->stats) { in GeneratePartition0()
294 enc->pic_->stats->header_bytes[0] = (int)((pos2 - pos1 + 7) >> 3); in GeneratePartition0()
295 enc->pic_->stats->header_bytes[1] = (int)((pos3 - pos2 + 7) >> 3); in GeneratePartition0()
296 enc->pic_->stats->alpha_data_size = (int)enc->alpha_data_size_; in GeneratePartition0()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/examples/
A Dcwebp.c168 stats->lossless_hdr_size, stats->lossless_data_size); in PrintFullLosslessInfo()
178 stats->histogram_bits, stats->transform_bits, stats->cache_bits); in PrintFullLosslessInfo()
187 const WebPAuxStats* const stats = pic->stats; in PrintExtraInfoLossless() local
189 fprintf(stderr, "%7d %2.2f\n", stats->coded_size, stats->PSNR[3]); in PrintExtraInfoLossless()
202 const WebPAuxStats* const stats = pic->stats; in PrintExtraInfoLossy() local
204 fprintf(stderr, "%7d %2.2f\n", stats->coded_size, stats->PSNR[3]); in PrintExtraInfoLossy()
218 stats->PSNR[0], stats->PSNR[1], stats->PSNR[2], stats->PSNR[3], in PrintExtraInfoLossy()
231 100.f * stats->header_bytes[0] / stats->coded_size, in PrintExtraInfoLossy()
233 100.f * stats->header_bytes[1] / stats->coded_size); in PrintExtraInfoLossy()
236 stats->alpha_data_size, stats->PSNR[4]); in PrintExtraInfoLossy()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/extras/
A Dget_disto.c110 const uint32_t N = stats->w; in SSIMCalculation()
115 const uint64_t xmxm = (uint64_t)stats->xm * stats->xm; in SSIMCalculation()
116 const uint64_t ymym = (uint64_t)stats->ym * stats->ym; in SSIMCalculation()
118 const int64_t xmym = (int64_t)stats->xm * stats->ym; in SSIMCalculation()
151 stats.w += w; in SSIMGetClipped()
152 stats.xm += w * s1; in SSIMGetClipped()
153 stats.ym += w * s2; in SSIMGetClipped()
154 stats.xxm += w * s1 * s1; in SSIMGetClipped()
155 stats.xym += w * s1 * s2; in SSIMGetClipped()
156 stats.yym += w * s2 * s2; in SSIMGetClipped()
[all …]
/AliOS-Things-master/components/lwip/lwip2.0.0/core/
A Dmemp.c252 desc->stats->avail = desc->num; in memp_init_pool()
257 desc->stats->name = desc->desc; in memp_init_pool()
277 lwip_stats.memp[i] = memp_pools[i]->stats; in memp_init()
328 desc->stats->used++; in do_memp_malloc_pool()
329 if (desc->stats->used > desc->stats->max) { in do_memp_malloc_pool()
330 desc->stats->max = desc->stats->used; in do_memp_malloc_pool()
339 desc->stats->err++; in do_memp_malloc_pool()
423 desc->stats->used--; in do_memp_free_pool()
/AliOS-Things-master/components/py_engine/engine/tools/
A Dcc1170 stats = len(map), len(entries) / len(map), total_attempts / len(entries)
172 stats = 0, 0, 0
174 print(' table stats: size=%d, load=%.2f, avg_lookups=%.1f' % stats)
207 return (match.group('id'),) + stats
219 stats = process_map_table(f, line, output)
221 print(' [%s: size=%d, load=%.2f, avg_lookups=%.1f]' % stats)
/AliOS-Things-master/components/amp/engine/quickjs_engine/startup/
A Dquickjs_init.c403 JSMemoryUsage stats; in dump_quickjs_memory() local
404 JS_ComputeMemoryUsage(rt, &stats); in dump_quickjs_memory()
405 JS_DumpMemoryUsage(stdout, &stats, rt); in dump_quickjs_memory()

Completed in 37 milliseconds

12