/AliOS-Things-master/components/SDL2/src/render/software/ |
A D | SDL_drawline.c | 38 if (x1 <= x2) { in SDL_DrawLine1() 40 length = draw_end ? (x2-x1+1) : (x2-x1); in SDL_DrawLine1() 46 length = draw_end ? (x1-x2+1) : (x1-x2); in SDL_DrawLine1() 49 } else if (x1 == x2) { in SDL_DrawLine1() 64 } else if (x1 == x2) { in SDL_DrawLine2() 73 AALINE(x1, y1, x2, y2, in SDL_DrawLine2() 77 AALINE(x1, y1, x2, y2, in SDL_DrawLine2() 81 AALINE(x1, y1, x2, y2, in SDL_DrawLine2() 94 } else if (x1 == x2) { in SDL_DrawLine4() 171 int x2, y2; in SDL_DrawLines() local [all …]
|
A D | SDL_blendline.c | 69 } else if (x1 == x2) { in SDL_BlendLine_RGB2() 108 AALINE(x1, y1, x2, y2, in SDL_BlendLine_RGB2() 113 AALINE(x1, y1, x2, y2, in SDL_BlendLine_RGB2() 174 } else if (x1 == x2) { in SDL_BlendLine_RGB555() 279 } else if (x1 == x2) { in SDL_BlendLine_RGB565() 385 } else if (x1 == x2) { in SDL_BlendLine_RGB4() 491 } else if (x1 == x2) { in SDL_BlendLine_RGBA4() 596 } else if (x1 == x2) { in SDL_BlendLine_RGB888() 701 } else if (x1 == x2) { in SDL_BlendLine_ARGB8888() 836 int x2, y2; in SDL_BlendLines() local [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_misc/ |
A D | lv_area.c | 50 void lv_area_set(lv_area_t * area_p, lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2) in lv_area_set() argument 54 area_p->x2 = x2; in lv_area_set() 65 area_p->x2 = area_p->x1 + w - 1; in lv_area_set_width() 103 size = (uint32_t)(area_p->x2 - area_p->x1 + 1) * (area_p->y2 - area_p->y1 + 1); in lv_area_get_size() 120 res_p->x2 = LV_MATH_MIN(a1_p->x2, a2_p->x2); in lv_area_intersect() 125 if((res_p->x1 > res_p->x2) || (res_p->y1 > res_p->y2)) { in lv_area_intersect() 141 a_res_p->x2 = LV_MATH_MAX(a1_p->x2, a2_p->x2); in lv_area_join() 155 if((p_p->x >= a_p->x1 && p_p->x <= a_p->x2) && ((p_p->y >= a_p->y1 && p_p->y <= a_p->y2))) { in lv_area_is_point_on() 170 …if((a1_p->x1 <= a2_p->x2) && (a1_p->x2 >= a2_p->x1) && (a1_p->y1 <= a2_p->y2) && (a1_p->y2 >= a2_p… in lv_area_is_on() 187 if(ain_p->x1 >= aholder_p->x1 && ain_p->y1 >= aholder_p->y1 && ain_p->x2 <= aholder_p->x2 && in lv_area_is_in()
|
/AliOS-Things-master/components/py_engine/tests/micropython/ |
A D | viper_args.py | 21 def f2(x1: int, x2: int): 22 print(x1, x2) 29 def f3(x1: int, x2: int, x3: int): 30 print(x1, x2, x3) 37 def f4(x1: int, x2: int, x3: int, x4: int): 38 print(x1, x2, x3, x4) 45 def f5(x1: int, x2: int, x3: int, x4: int, x5: int): 46 print(x1, x2, x3, x4, x5) 53 def f6(x1: int, x2: int, x3: int, x4: int, x5: int, x6: int): 54 print(x1, x2, x3, x4, x5, x6)
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/cmsis-dsp/Source/FilteringFunctions/ |
A D | arm_correlate_fast_opt_q15.c | 267 x2 = *__SIMD32(pScr)++; in arm_correlate_fast_opt_q15() 285 x3 = __PKHBT(x2, x1, 0); in arm_correlate_fast_opt_q15() 287 x3 = __PKHBT(x1, x2, 0); in arm_correlate_fast_opt_q15() 299 x3 = __PKHBT(x1, x2, 0); in arm_correlate_fast_opt_q15() 301 x3 = __PKHBT(x2, x1, 0); in arm_correlate_fast_opt_q15() 311 x3 = __PKHBT(x2, x1, 0); in arm_correlate_fast_opt_q15() 313 x3 = __PKHBT(x1, x2, 0); in arm_correlate_fast_opt_q15() 342 x3 = __PKHBT(x2, x1, 0); in arm_correlate_fast_opt_q15() 344 x3 = __PKHBT(x1, x2, 0); in arm_correlate_fast_opt_q15() 376 x2 = __PKHBT(a, b, 16); in arm_correlate_fast_opt_q15() [all …]
|
A D | arm_correlate_opt_q15.c | 267 x2 = *__SIMD32(pScr)++; in arm_correlate_opt_q15() 285 x3 = __PKHBT(x2, x1, 0); in arm_correlate_opt_q15() 287 x3 = __PKHBT(x1, x2, 0); in arm_correlate_opt_q15() 299 x3 = __PKHBT(x1, x2, 0); in arm_correlate_opt_q15() 301 x3 = __PKHBT(x2, x1, 0); in arm_correlate_opt_q15() 311 x3 = __PKHBT(x2, x1, 0); in arm_correlate_opt_q15() 313 x3 = __PKHBT(x1, x2, 0); in arm_correlate_opt_q15() 343 x3 = __PKHBT(x2, x1, 0); in arm_correlate_opt_q15() 345 x3 = __PKHBT(x1, x2, 0); in arm_correlate_opt_q15() 377 x2 = __PKHBT(a, b, 16); in arm_correlate_opt_q15() [all …]
|
A D | arm_fir_fast_q15.c | 120 x2 = *__SIMD32(px)++; in arm_fir_fast_q15() 139 x1 = __PKHBT(x2, x0, 0); in arm_fir_fast_q15() 141 x1 = __PKHBT(x0, x2, 0); in arm_fir_fast_q15() 152 x1 = __PKHBT(x0, x2, 0); in arm_fir_fast_q15() 154 x1 = __PKHBT(x2, x0, 0); in arm_fir_fast_q15() 177 x1 = __PKHBT(x2, x0, 0); in arm_fir_fast_q15() 179 x1 = __PKHBT(x0, x2, 0); in arm_fir_fast_q15() 207 x1 = __PKHBT(x2, x0, 0); in arm_fir_fast_q15() 209 x1 = __PKHBT(x0, x2, 0); in arm_fir_fast_q15() 220 x1 = __PKHBT(x0, x2, 0); in arm_fir_fast_q15() [all …]
|
A D | arm_conv_fast_opt_q15.c | 286 x2 = *__SIMD32(pScr1)++; in arm_conv_fast_opt_q15() 305 x3 = __PKHBT(x2, x1, 0); in arm_conv_fast_opt_q15() 307 x3 = __PKHBT(x1, x2, 0); in arm_conv_fast_opt_q15() 322 x3 = __PKHBT(x1, x2, 0); in arm_conv_fast_opt_q15() 324 x3 = __PKHBT(x2, x1, 0); in arm_conv_fast_opt_q15() 333 x3 = __PKHBT(x2, x1, 0); in arm_conv_fast_opt_q15() 335 x3 = __PKHBT(x1, x2, 0); in arm_conv_fast_opt_q15() 365 x3 = __PKHBT(x2, x1, 0); in arm_conv_fast_opt_q15() 367 x3 = __PKHBT(x1, x2, 0); in arm_conv_fast_opt_q15() 399 x2 = __PKHBT(a, b, 16); in arm_conv_fast_opt_q15() [all …]
|
A D | arm_conv_opt_q15.c | 288 x2 = *__SIMD32(pScr1)++; in arm_conv_opt_q15() 307 x3 = __PKHBT(x2, x1, 0); in arm_conv_opt_q15() 309 x3 = __PKHBT(x1, x2, 0); in arm_conv_opt_q15() 324 x3 = __PKHBT(x1, x2, 0); in arm_conv_opt_q15() 326 x3 = __PKHBT(x2, x1, 0); in arm_conv_opt_q15() 335 x3 = __PKHBT(x2, x1, 0); in arm_conv_opt_q15() 337 x3 = __PKHBT(x1, x2, 0); in arm_conv_opt_q15() 367 x3 = __PKHBT(x2, x1, 0); in arm_conv_opt_q15() 369 x3 = __PKHBT(x1, x2, 0); in arm_conv_opt_q15() 401 x2 = __PKHBT(a, b, 16); in arm_conv_opt_q15() [all …]
|
A D | arm_fir_q15.c | 150 x2 = _SIMD32_OFFSET(px1); in arm_fir_q15() 197 x2 = _SIMD32_OFFSET(px1); in arm_fir_q15() 376 x2 = *__SIMD32(px)++; in arm_fir_q15() 395 x1 = __PKHBT(x2, x0, 0); in arm_fir_q15() 397 x1 = __PKHBT(x0, x2, 0); in arm_fir_q15() 408 x1 = __PKHBT(x0, x2, 0); in arm_fir_q15() 410 x1 = __PKHBT(x2, x0, 0); in arm_fir_q15() 433 x1 = __PKHBT(x2, x0, 0); in arm_fir_q15() 435 x1 = __PKHBT(x0, x2, 0); in arm_fir_q15() 463 x1 = __PKHBT(x2, x0, 0); in arm_fir_q15() [all …]
|
A D | arm_fir_fast_q31.c | 72 q31_t x0, x1, x2, x3; /* Temporary variables to hold state */ in arm_fir_fast_q31() local 120 x2 = *(px++); in arm_fir_fast_q31() 141 multAcc_32x32_keep32_R(acc2, x2, c0); in arm_fir_fast_q31() 154 multAcc_32x32_keep32_R(acc1, x2, c0); in arm_fir_fast_q31() 165 multAcc_32x32_keep32_R(acc0, x2, c0); in arm_fir_fast_q31() 174 x2 = *(px + 3u); in arm_fir_fast_q31() 180 multAcc_32x32_keep32_R(acc3, x2, c0); in arm_fir_fast_q31() 204 multAcc_32x32_keep32_R(acc2, x2, c0); in arm_fir_fast_q31() 209 x1 = x2; in arm_fir_fast_q31() 210 x2 = x3; in arm_fir_fast_q31()
|
A D | arm_fir_f32.c | 190 x2 = *px++; in arm_fir_f32() 269 x2 = *(px++); in arm_fir_f32() 370 x1 = x2; in arm_fir_f32() 371 x2 = x3; in arm_fir_f32() 620 x2 = *px++; in arm_fir_f32() 646 p2 = x2 * c0; in arm_fir_f32() 681 p1 = x2 * c0; in arm_fir_f32() 705 p0 = x2 * c0; in arm_fir_f32() 718 x2 = *(px++); in arm_fir_f32() 874 x1 = x2; in arm_fir_f32() [all …]
|
A D | arm_conv_opt_q7.c | 84 q31_t x1, x2, x3, y1; /* Temporary input variables */ in arm_conv_opt_q7() local 267 x2 = *__SIMD32(pScr1)++; in arm_conv_opt_q7() 279 acc2 = __SMLAD(x2, y1, acc2); in arm_conv_opt_q7() 283 x3 = __PKHBT(x2, x1, 0); in arm_conv_opt_q7() 285 x3 = __PKHBT(x1, x2, 0); in arm_conv_opt_q7() 296 x3 = __PKHBT(x1, x2, 0); in arm_conv_opt_q7() 298 x3 = __PKHBT(x2, x1, 0); in arm_conv_opt_q7() 306 acc0 = __SMLAD(x2, y1, acc0); in arm_conv_opt_q7() 312 x2 = *__SIMD32(pScr1)++; in arm_conv_opt_q7() 315 x3 = __PKHBT(x2, x1, 0); in arm_conv_opt_q7() [all …]
|
A D | arm_correlate_opt_q7.c | 92 q31_t x1, x2, x3, y1; /* Temporary input variables */ in arm_correlate_opt_q7() local 293 x2 = *__SIMD32(pScr1)++; in arm_correlate_opt_q7() 305 acc2 = __SMLAD(x2, y1, acc2); in arm_correlate_opt_q7() 309 x3 = __PKHBT(x2, x1, 0); in arm_correlate_opt_q7() 311 x3 = __PKHBT(x1, x2, 0); in arm_correlate_opt_q7() 322 x3 = __PKHBT(x1, x2, 0); in arm_correlate_opt_q7() 324 x3 = __PKHBT(x2, x1, 0); in arm_correlate_opt_q7() 332 acc0 = __SMLAD(x2, y1, acc0); in arm_correlate_opt_q7() 338 x2 = *__SIMD32(pScr1)++; in arm_correlate_opt_q7() 341 x3 = __PKHBT(x2, x1, 0); in arm_correlate_opt_q7() [all …]
|
A D | arm_fir_decimate_f32.c | 149 float32_t x1, x2, x3; in arm_fir_decimate_f32() local 203 x2 = *(px2++); in arm_fir_decimate_f32() 210 acc2 += x2 * c0; in arm_fir_decimate_f32() 219 x2 = *(px2++); in arm_fir_decimate_f32() 225 acc2 += x2 * c0; in arm_fir_decimate_f32() 234 x2 = *(px2++); in arm_fir_decimate_f32() 240 acc2 += x2 * c0; in arm_fir_decimate_f32() 249 x2 = *(px2++); in arm_fir_decimate_f32() 255 acc2 += x2 * c0; in arm_fir_decimate_f32() 273 x2 = *(px2++); in arm_fir_decimate_f32() [all …]
|
A D | arm_fir_q7.c | 71 q7_t x0, x1, x2, x3; /* Temporary variables to hold state */ in arm_fir_q7() local 119 x2 = *(px++); in arm_fir_q7() 140 acc2 += ((q15_t) x2 * c0); in arm_fir_q7() 153 acc1 += ((q15_t) x2 * c0); in arm_fir_q7() 164 acc0 += ((q15_t) x2 * c0); in arm_fir_q7() 173 x2 = *(px + 3u); in arm_fir_q7() 179 acc3 += ((q15_t) x2 * c0); in arm_fir_q7() 203 acc2 += ((q15_t) x2 * c0); in arm_fir_q7() 208 x1 = x2; in arm_fir_q7() 209 x2 = x3; in arm_fir_q7()
|
A D | arm_correlate_fast_q15.c | 295 x2 = *__SIMD32(px); in arm_correlate_fast_q15() 301 acc2 = __SMLAD(x2, c0, acc2); in arm_correlate_fast_q15() 310 acc0 = __SMLAD(x2, c0, acc0); in arm_correlate_fast_q15() 371 x2 = _SIMD32_OFFSET(px + 1); in arm_correlate_fast_q15() 390 x2 = _SIMD32_OFFSET(px + 1); in arm_correlate_fast_q15() 872 x2 = __PKHBT(a, b, 16); in arm_correlate_fast_q15() 878 x2 = __PKHBT(b, a, 16); in arm_correlate_fast_q15() 1010 x2 = __PKHBT(b, a, 16); in arm_correlate_fast_q15() 1016 x2 = __PKHBT(a, b, 16); in arm_correlate_fast_q15() 1055 x2 = __PKHBT(b, a, 16); in arm_correlate_fast_q15() [all …]
|
A D | arm_fir_q31.c | 75 q31_t x0, x1, x2; /* Temporary variables to hold state */ in arm_fir_q31() local 135 x2 = *(px++); in arm_fir_q31() 140 acc2 += ((q63_t) x2 * c0); in arm_fir_q31() 148 acc1 += ((q63_t) x2 * c0); in arm_fir_q31() 159 acc0 += ((q63_t) x2 * c0); in arm_fir_q31() 177 x2 = *(px++); in arm_fir_q31() 182 acc2 += ((q63_t) x2 * c0); in arm_fir_q31() 186 x1 = x2; in arm_fir_q31()
|
A D | arm_conv_f32.c | 132 …float32_t x0, x1, x2, x3, c0; /* Temporary variables to hold state and coefficien… in arm_conv_f32() local 299 x2 = *(px++); in arm_conv_f32() 322 acc2 += x2 * c0; in arm_conv_f32() 337 acc1 += x2 * c0; in arm_conv_f32() 351 acc0 += x2 * c0; in arm_conv_f32() 363 x2 = *(px + 3u); in arm_conv_f32() 374 acc3 += x2 * c0; in arm_conv_f32() 397 acc2 += x2 * c0; in arm_conv_f32() 403 x1 = x2; in arm_conv_f32() 404 x2 = x3; in arm_conv_f32()
|
A D | arm_fir_interpolate_f32.c | 151 float32_t x1, x2, x3; in arm_fir_interpolate_f32() local 198 x2 = *(ptr1++); in arm_fir_interpolate_f32() 212 acc2 += x2 * c0; in arm_fir_interpolate_f32() 223 acc1 += x2 * c1; in arm_fir_interpolate_f32() 234 acc0 += x2 * c2; in arm_fir_interpolate_f32() 243 x2 = *(ptr1++); in arm_fir_interpolate_f32() 249 acc3 += x2 * c3; in arm_fir_interpolate_f32() 276 acc2 += x2 * c0; in arm_fir_interpolate_f32() 284 x1 = x2; in arm_fir_interpolate_f32() 285 x2 = x3; in arm_fir_interpolate_f32()
|
/AliOS-Things-master/components/SDL2/src/video/ |
A D | SDL_rect.c | 323 int x2, y2; in SDL_IntersectRectAndLine() local 362 x2 = *X2; in SDL_IntersectRectAndLine() 370 if (x1 >= rectx1 && x1 <= rectx2 && x2 >= rectx1 && x2 <= rectx2 && in SDL_IntersectRectAndLine() 376 if ((x1 < rectx1 && x2 < rectx1) || (x1 > rectx2 && x2 > rectx2) || in SDL_IntersectRectAndLine() 388 if (x2 < rectx1) { in SDL_IntersectRectAndLine() 390 } else if (x2 > rectx2) { in SDL_IntersectRectAndLine() 396 if (x1 == x2) { in SDL_IntersectRectAndLine() 413 outcode2 = ComputeOutCode(rect, x2, y2); in SDL_IntersectRectAndLine() 422 x = x1 + ((x2 - x1) * (y - y1)) / (y2 - y1); in SDL_IntersectRectAndLine() 456 x2 = x; in SDL_IntersectRectAndLine() [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testintersections.c | 87 add_line(int x1, int y1, int x2, int y2) in add_line() argument 91 if ((x1 == x2) && (y1 == y2)) in add_line() 97 lines[num_lines].w = x2; in add_line() 131 add_rect(int x1, int y1, int x2, int y2) in add_rect() argument 135 if ((x1 == x2) || (y1 == y2)) in add_rect() 138 if (x1 > x2) in add_rect() 139 SWAP(int, x1, x2); in add_rect() 144 x2 - x1, y2 - y1); in add_rect() 148 rects[num_rects].w = x2 - x1; in add_rect() 170 int x1, y1, x2, y2; in DrawRectLineIntersections() local [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/ |
A D | SDL_gfxPrimitives.c | 1063 x1 = x2; in hlineColorStore() 1227 x1 = x2; in hlineColor() 1618 x1 = x2; in rectangleColor() 1740 x1 = x2; in roundedRectangleColor() 1892 x1 = x2; in roundedBoxColor() 2131 x1 = x2; in boxColor() 2616 xx1 = x2; in _aalineColor() 5023 x2++; in polygonColor() 5034 x2++; in polygonColor() 5112 x2++; in aapolygonColor() [all …]
|
A D | SDL_gfxPrimitives.h | 76 …SDL_GFXPRIMITIVES_SCOPE int hlineColor(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint32 c… 88 Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 94 Sint16 x2, Sint16 y2, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 98 …SDL_GFXPRIMITIVES_SCOPE int boxColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2… 99 SDL_GFXPRIMITIVES_SCOPE int boxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, 105 SDL_GFXPRIMITIVES_SCOPE int roundedBoxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, 110 …SDL_GFXPRIMITIVES_SCOPE int lineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y… 112 Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 118 Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 121 …SDL_GFXPRIMITIVES_SCOPE int thickLineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sin… [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/tools/ |
A D | genpng.c | 180 double x1, y1, x2, y2; member 362 return ((x<x1) ^ (x<x2)) & ((y<y1) ^ (y<y2)); in square_check() 386 double cx = (arg->x1+arg->x2)/2; in square_check_line() 387 double wx = fabs(arg->x1-arg->x2)/2; in square_check_line() 462 if (square_check(x, y, x1, y1, x2, y2)) in circle_check() 465 const double cx = (x1 + x2)/2; in circle_check() 467 const double dx = x1 - x2; in circle_check() 495 double cx = (arg->x1+arg->x2)/2; in circle_check_line() 496 double wx = fabs(arg->x1-arg->x2)/2; in circle_check_line() 558 double lx = x2 - x1; in line_check() [all …]
|