Lines Matching refs:RGBA_COM
144 int32_t *mse[RGBA_COM];
1355 bool CheckQuality(int32_t* mseIn[RGBA_COM], int blockNum, int blockXYZ) in CheckQuality() argument
1357 double psnr[RGBA_COM + 1]; in CheckQuality()
1358 …double threshold[RGBA_COM + 1] = { THRESHOLD_R, THRESHOLD_G, THRESHOLD_B, THRESHOLD_A, THRESHOLD_R… in CheckQuality()
1359 uint64_t mseTotal[RGBA_COM + 1] = { 0, 0, 0, 0, 0}; in CheckQuality()
1360 for (int i = R_COM; i < RGBA_COM; i++) { in CheckQuality()
1364 if(i != A_COM) mseTotal[RGBA_COM] += *mse; in CheckQuality()
1368 for (int i = R_COM; i < RGBA_COM; i++) { in CheckQuality()
1376 if (mseTotal[RGBA_COM] == 0) { in CheckQuality()
1377 psnr[RGBA_COM] = MAX_PSNR; in CheckQuality()
1380 double mseRgb = (double)mseTotal[RGBA_COM] / (blockNum * blockXYZ * (RGBA_COM - 1)); in CheckQuality()
1381 psnr[RGBA_COM] = LOG_BASE * log((double)(MAX_VALUE * MAX_VALUE) / mseRgb) / log(LOG_BASE); in CheckQuality()
1385 psnr[RGBA_COM]); in CheckQuality()
1388 && (psnr[RGBA_COM] > threshold[RGBA_COM]); in CheckQuality()
1657 for (int i = R_COM; i < RGBA_COM; i++) { in main()
1693 for (int i = R_COM; i < RGBA_COM; i++) { in main()