int TestPrimitivesYCoCg(int argc, char* argv[]) { prim_test_setup(FALSE); /* Random resolution tests */ if (argc < 2) { UINT32 x; for (x = 0; x < 10; x++) { UINT32 w, h; do { winpr_RAND((BYTE*)&w, sizeof(w)); w %= 2048; } while (w < 16); do { winpr_RAND((BYTE*)&h, sizeof(h)); h %= 2048; } while (h < 16); if (!test_YCoCgRToRGB_8u_AC4R_func(w, h)) return 1; } } /* Test once with full HD */ if (!test_YCoCgRToRGB_8u_AC4R_func(1920, 1080)) return 1; return 0; }
int TestPrimitivesYUV(int argc, char* argv[]) { UINT32 x; int rc = -1; prim_test_setup(FALSE); for (x = 0; x < 10; x++) { if (!TestPrimitiveYUV(TRUE)) goto end; if (!TestPrimitiveYUV(FALSE)) goto end; if (!TestPrimitiveYUVCombine()) goto end; } rc = 0; end: return rc; }
int TestPrimitivesColors(int argc, char* argv[]) { prim_test_setup(FALSE); if (!test_RGBToRGB_16s8u_P3AC4R_func()) return 1; if (g_TestPrimitivesPerformance) { if (!test_RGBToRGB_16s8u_P3AC4R_speed()) return 1; } if (!test_yCbCrToRGB_16s16s_P3P3_func()) return 1; if (g_TestPrimitivesPerformance) { if (!test_yCbCrToRGB_16s16s_P3P3_speed()) return 1; } return 0; }