[primitives,tests] use winpr_alinged_calloc
This commit is contained in:
parent
c840d127e9
commit
1c63284372
@ -36,11 +36,11 @@ static BOOL test_RGBToRGB_16s8u_P3AC4R_func(prim_size_t roi, DWORD DstFormat)
|
||||
PROFILER_DEFINE(optProf)
|
||||
PROFILER_CREATE(genericProf, "RGBToRGB_16s8u_P3AC4R-GENERIC")
|
||||
PROFILER_CREATE(optProf, "RGBToRGB_16s8u_P3AC4R-OPTIMIZED")
|
||||
r = winpr_aligned_recalloc(NULL, 1, rgbStride * roi.height, 16);
|
||||
g = winpr_aligned_recalloc(NULL, 1, rgbStride * roi.height, 16);
|
||||
b = winpr_aligned_recalloc(NULL, 1, rgbStride * roi.height, 16);
|
||||
out1 = winpr_aligned_recalloc(NULL, 1, dstStride * roi.height, 16);
|
||||
out2 = winpr_aligned_recalloc(NULL, 1, dstStride * roi.height, 16);
|
||||
r = winpr_aligned_calloc(1, rgbStride * roi.height, 16);
|
||||
g = winpr_aligned_calloc(1, rgbStride * roi.height, 16);
|
||||
b = winpr_aligned_calloc(1, rgbStride * roi.height, 16);
|
||||
out1 = winpr_aligned_calloc(1, dstStride * roi.height, 16);
|
||||
out2 = winpr_aligned_calloc(1, dstStride * roi.height, 16);
|
||||
|
||||
if (!r || !g || !b || !out1 || !out2)
|
||||
goto fail;
|
||||
|
@ -36,9 +36,9 @@ static BOOL test_YCoCgRToRGB_8u_AC4R_func(UINT32 width, UINT32 height)
|
||||
PIXEL_FORMAT_RGBX32, PIXEL_FORMAT_BGRA32, PIXEL_FORMAT_BGRX32 };
|
||||
PROFILER_DEFINE(genericProf)
|
||||
PROFILER_DEFINE(optProf)
|
||||
in = winpr_aligned_recalloc(NULL, 1, size, 16);
|
||||
out_c = winpr_aligned_recalloc(NULL, 1, size, 16);
|
||||
out_sse = winpr_aligned_recalloc(NULL, 1, size, 16);
|
||||
in = winpr_aligned_calloc(1, size, 16);
|
||||
out_c = winpr_aligned_calloc(1, size, 16);
|
||||
out_sse = winpr_aligned_calloc(1, size, 16);
|
||||
|
||||
if (!in || !out_c || !out_sse)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user