Searched refs:NORMALIZE_UNROUNDED (Results 1 – 2 of 2) sorted by relevance
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.cpp | 2824 errors[i] = ptr[i] - NORMALIZE_UNROUNDED(srcVector[i], 255.f); in pack_image_pixel_error() 2832 errors[i] = ptr[i] - NORMALIZE_UNROUNDED(srcVector[i], 65535.f); in pack_image_pixel_error() 2840 ((ptr[0] >> 10) & 31) - NORMALIZE_UNROUNDED(srcVector[0], 31.f); in pack_image_pixel_error() 2842 ((ptr[0] >> 5) & 31) - NORMALIZE_UNROUNDED(srcVector[1], 31.f); in pack_image_pixel_error() 2844 ((ptr[0] >> 0) & 31) - NORMALIZE_UNROUNDED(srcVector[2], 31.f); in pack_image_pixel_error() 2852 ((ptr[0] >> 11) & 31) - NORMALIZE_UNROUNDED(srcVector[0], 31.f); in pack_image_pixel_error() 2854 ((ptr[0] >> 5) & 63) - NORMALIZE_UNROUNDED(srcVector[1], 63.f); in pack_image_pixel_error() 2856 ((ptr[0] >> 0) & 31) - NORMALIZE_UNROUNDED(srcVector[2], 31.f); in pack_image_pixel_error() 2864 - NORMALIZE_UNROUNDED(srcVector[0], 1023.f); in pack_image_pixel_error() 2866 - NORMALIZE_UNROUNDED(srcVector[1], 1023.f); in pack_image_pixel_error() [all …]
|
D | imageHelpers.h | 69 #define NORMALIZE_UNROUNDED(v, max) (v < 0 ? 0 : (v > 1.f ? max : v * max)) macro
|