Lines Matching refs:sum_x
334 uint64_t sum_x[3] = { 0, 0, 0 }; // Y, U, V in getRawStats() local
363 sum_x[0] += Y; in getRawStats()
364 sum_x[1] += U; in getRawStats()
365 sum_x[2] += V; in getRawStats()
389 rawStats[i + 1] = sum_x[i]; in getRawStats()
396 int64_t sum_x[3], sum_xx[3]; // Y, U, V in Raw2YUVStats() local
401 sum_x[i] = rawStats[i + 1]; in Raw2YUVStats()
407 stats[0] = sum_x[0] / (float)num; // y average in Raw2YUVStats()
408 stats[1] = sum_x[1] / (float)num; // u average in Raw2YUVStats()
409 stats[2] = sum_x[2] / (float)num; // v average in Raw2YUVStats()
413 stats[3] = sqrtf((sum_xx[0] + 1) * num - sum_x[0] * sum_x[0]) / num; // y stdev in Raw2YUVStats()
414 stats[4] = sqrtf((sum_xx[1] + 1) * num - sum_x[1] * sum_x[1]) / num; // u stdev in Raw2YUVStats()
415 stats[5] = sqrtf((sum_xx[2] + 1) * num - sum_x[2] * sum_x[2]) / num; // v stdev in Raw2YUVStats()
418 stats[6] = (float)(sum_xy[0] + 1 - sum_x[0] * sum_x[1] / num) / num / stats[3] / stats[4]; in Raw2YUVStats()
420 stats[7] = (float)(sum_xy[1] + 1 - sum_x[0] * sum_x[2] / num) / num / stats[3] / stats[5]; in Raw2YUVStats()
422 stats[8] = (float)(sum_xy[2] + 1 - sum_x[1] * sum_x[2] / num) / num / stats[4] / stats[5]; in Raw2YUVStats()