Lines Matching refs:stats
31 const VP8DistoStats* const stats, uint32_t N /*num samples*/) { in SSIMCalculation() argument
36 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()
40 const int64_t sxy = (int64_t)stats->xym * N - xmym; // can be negative in SSIMCalculation()
41 const uint64_t sxx = (uint64_t)stats->xxm * N - xmxm; in SSIMCalculation()
42 const uint64_t syy = (uint64_t)stats->yym * N - ymym; in SSIMCalculation()
55 double VP8SSIMFromStats(const VP8DistoStats* const stats) { in VP8SSIMFromStats() argument
56 return SSIMCalculation(stats, kWeightSum); in VP8SSIMFromStats()
59 double VP8SSIMFromStatsClipped(const VP8DistoStats* const stats) { in VP8SSIMFromStatsClipped() argument
60 return SSIMCalculation(stats, stats->w); in VP8SSIMFromStatsClipped()
66 VP8DistoStats stats = { 0, 0, 0, 0, 0, 0 }; in SSIMGetClipped_C() local
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()
87 stats.yym += w * s2 * s2; in SSIMGetClipped_C()
90 return VP8SSIMFromStatsClipped(&stats); in SSIMGetClipped_C()
95 VP8DistoStats stats = { 0, 0, 0, 0, 0, 0 }; in SSIMGet_C() local
102 stats.xm += w * s1; in SSIMGet_C()
103 stats.ym += w * s2; in SSIMGet_C()
104 stats.xxm += w * s1 * s1; in SSIMGet_C()
105 stats.xym += w * s1 * s2; in SSIMGet_C()
106 stats.yym += w * s2 * s2; in SSIMGet_C()
109 return VP8SSIMFromStats(&stats); in SSIMGet_C()