Lines Matching refs:num
399 int64_t num = rawStats[0]; // #Y,U,V in Raw2YUVStats() local
406 if (num > 0) { 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()