Searched refs:NORMALIZE_SIGNED (Results 1 – 2 of 2) sorted by relevance
66 #define NORMALIZE_SIGNED( v, min, max ) ( v < -1.0f ? min : ( v > 1.f ? max : round_to_even( v * m… macro
2646 ptr[ i ] = (cl_char)NORMALIZE_SIGNED( srcVector[ i ], -127.0f, 127.f ); in pack_image_pixel()2653 ptr[ i ] = (short)NORMALIZE_SIGNED( srcVector[ i ], -32767.f, 32767.f ); in pack_image_pixel()