Searched refs:CLAMP (Results 1 – 11 of 11) sorted by relevance
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_pixarlog.c | 1012 wp[0] = (uint16)(((int32)CLAMP(ip[0])-(int32)CLAMP(ip[-stride])) & mask); in horizontalDifferenceF() 1027 #undef CLAMP in horizontalDifference16() 1033 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16() 1045 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference16() 1046 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference16() 1062 wp[0] = (uint16)((CLAMP(ip[0])-CLAMP(ip[-stride])) & mask); in horizontalDifference16() 1077 #undef CLAMP in horizontalDifference8() 1083 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8() 1095 r2 = wp[0] = CLAMP(ip[0]); g2 = wp[1] = CLAMP(ip[1]); in horizontalDifference8() 1096 b2 = wp[2] = CLAMP(ip[2]); a2 = wp[3] = CLAMP(ip[3]); in horizontalDifference8() [all …]
|
A D | tif_color.c | 179 #define CLAMP(f,min,max) ((f)<(min)?(min):(f)>(max)?(max):(f)) macro 190 Cb = CLAMP(Cb, 0, 255); in TIFFYCbCrtoRGB() 191 Cr = CLAMP(Cr, 0, 255); in TIFFYCbCrtoRGB() 194 *r = CLAMP(i, 0, 255); in TIFFYCbCrtoRGB() 197 *g = CLAMP(i, 0, 255); in TIFFYCbCrtoRGB() 199 *b = CLAMP(i, 0, 255); in TIFFYCbCrtoRGB() 258 { float f1 = 2-2*LumaRed; int32 D1 = FIX(CLAMP(f1,0.0F,2.0F)); in TIFFYCbCrToRGBInit() 259 float f2 = LumaRed*f1/LumaGreen; int32 D2 = -FIX(CLAMP(f2,0.0F,2.0F)); in TIFFYCbCrToRGBInit() 260 float f3 = 2-2*LumaBlue; int32 D3 = FIX(CLAMP(f3,0.0F,2.0F)); in TIFFYCbCrToRGBInit() 261 float f4 = LumaBlue*f3/LumaGreen; int32 D4 = -FIX(CLAMP(f4,0.0F,2.0F)); in TIFFYCbCrToRGBInit() [all …]
|
/AliOS-Things-master/components/SDL2/src/haptic/linux/ |
A D | SDL_syshaptic.c | 743 #define CLAMP(x) (((x) > 32767) ? 32767 : x) macro 771 0 : CLAMP(constant->length); in SDL_SYS_ToFFEffect() 783 CLAMP(constant->attack_length); in SDL_SYS_ToFFEffect() 785 CLAMP(constant->attack_level); in SDL_SYS_ToFFEffect() 806 0 : CLAMP(periodic->length); in SDL_SYS_ToFFEffect() 833 CLAMP(periodic->attack_length); in SDL_SYS_ToFFEffect() 835 CLAMP(periodic->attack_level); in SDL_SYS_ToFFEffect() 860 0 : CLAMP(condition->length); in SDL_SYS_ToFFEffect() 899 0 : CLAMP(ramp->length); in SDL_SYS_ToFFEffect() 900 dest->replay.delay = CLAMP(ramp->delay); in SDL_SYS_ToFFEffect() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/SoftmaxFunctions/ |
A D | arm_softmax_u8.c | 90 output[col] = (uint8_t)CLAMP(res, (int32_t)255, (int32_t)0); in arm_softmax_u8()
|
A D | arm_softmax_s8.c | 196 output[tail_idx + i] = (int8_t)CLAMP(res, (int32_t)ACT_MAX, (int32_t)ACT_MIN); in arm_softmax_s8() 246 output[col] = (int8_t)CLAMP(res, (int32_t)127, (int32_t)-128); in arm_softmax_s8()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/ |
A D | arm_softmax_u8.c | 90 output[col] = (uint8_t)CLAMP(res, (int32_t)255, (int32_t)0); in arm_softmax_u8()
|
A D | arm_softmax_s8.c | 196 output[tail_idx + i] = (int8_t)CLAMP(res, (int32_t)ACT_MAX, (int32_t)ACT_MIN); in arm_softmax_s8() 246 output[col] = (int8_t)CLAMP(res, (int32_t)127, (int32_t)-128); in arm_softmax_s8()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SVDFunctions/ |
A D | arm_svdf_s8.c | 244 output_data[i] = (q7_t)CLAMP( in arm_svdf_s8()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/SVDFunctions/ |
A D | arm_svdf_s8.c | 244 output_data[i] = (q7_t)CLAMP( in arm_svdf_s8()
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Include/ |
A D | arm_nnsupportfunctions.h | 48 #define CLAMP(x, h, l) MAX(MIN((x), (h)), (l)) macro
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Include/ |
A D | arm_nnsupportfunctions.h | 48 #define CLAMP(x, h, l) MAX(MIN((x), (h)), (l)) macro
|
Completed in 17 milliseconds