Print profiler header and footer.
This commit is contained in:
parent
ef4515a674
commit
2463575083
@ -103,8 +103,10 @@ static BOOL test_RGBToRGB_16s8u_P3AC4R_func(prim_size_t roi, DWORD DstFormat)
|
||||
}
|
||||
|
||||
printf("Results for %lux%lu [%s]", roi.width, roi.height, GetColorFormatName(DstFormat));
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(genericProf);
|
||||
PROFILER_PRINT(optProf);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
fail:
|
||||
PROFILER_FREE(genericProf);
|
||||
PROFILER_FREE(optProf);
|
||||
|
@ -2238,7 +2238,9 @@ static int test_PrimitivesYCbCr(const primitives_t* prims, UINT32 format, prim_s
|
||||
printf("B: diff: %d (%f%%)\n", cnt[0], err[0]);
|
||||
}
|
||||
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(prof);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
fail:
|
||||
_aligned_free(actual);
|
||||
PROFILER_FREE(prof);
|
||||
|
@ -95,8 +95,10 @@ static BOOL test_YCoCgRToRGB_8u_AC4R_func(UINT32 width, UINT32 height)
|
||||
}
|
||||
}
|
||||
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(genericProf);
|
||||
PROFILER_PRINT(optProf);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
}
|
||||
|
||||
fail:
|
||||
|
@ -254,7 +254,9 @@ static BOOL TestPrimitiveYUVCombine(primitives_t* prims, prim_size_t roi)
|
||||
}
|
||||
|
||||
PROFILER_EXIT(yuvCombine);
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(yuvCombine);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
|
||||
for (x = 0; x < 3; x++)
|
||||
{
|
||||
@ -282,7 +284,9 @@ static BOOL TestPrimitiveYUVCombine(primitives_t* prims, prim_size_t roi)
|
||||
}
|
||||
|
||||
PROFILER_EXIT(yuvSplit);
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(yuvSplit);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
|
||||
for (x = 0; x < 3; x++)
|
||||
{
|
||||
@ -468,7 +472,9 @@ static BOOL TestPrimitiveYUV(primitives_t* prims, prim_size_t roi, BOOL use444)
|
||||
}
|
||||
|
||||
PROFILER_EXIT(rgbToYUV444);
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(rgbToYUV444);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -483,7 +489,9 @@ static BOOL TestPrimitiveYUV(primitives_t* prims, prim_size_t roi, BOOL use444)
|
||||
}
|
||||
|
||||
PROFILER_EXIT(rgbToYUV420);
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(rgbToYUV420);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
}
|
||||
|
||||
if (!check_padding(rgb, size * sizeof(UINT32), padding, "rgb"))
|
||||
@ -507,7 +515,9 @@ static BOOL TestPrimitiveYUV(primitives_t* prims, prim_size_t roi, BOOL use444)
|
||||
}
|
||||
|
||||
PROFILER_EXIT(yuv444ToRGB);
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(yuv444ToRGB);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -521,7 +531,9 @@ static BOOL TestPrimitiveYUV(primitives_t* prims, prim_size_t roi, BOOL use444)
|
||||
}
|
||||
|
||||
PROFILER_EXIT(yuv420ToRGB);
|
||||
PROFILER_PRINT_HEADER;
|
||||
PROFILER_PRINT(yuv420ToRGB);
|
||||
PROFILER_PRINT_FOOTER;
|
||||
}
|
||||
|
||||
if (!check_padding(rgb_dst, size * sizeof(UINT32), padding, "rgb dst"))
|
||||
|
Loading…
Reference in New Issue
Block a user