Home
last modified time | relevance | path

Searched refs:pt (Results 1 – 25 of 51) sorted by relevance

123

/AliOS-Things-master/components/SDL2/test/
A Dtesthittesting.c18 hitTest(SDL_Window *window, const SDL_Point *pt, void *data) in hitTest() argument
24 if (SDL_PointInRect(pt, &areas[i])) { in hitTest()
37 if (pt->x < RESIZE_BORDER && pt->y < RESIZE_BORDER) { in hitTest()
39 } else if (pt->x > RESIZE_BORDER && pt->x < w - RESIZE_BORDER && pt->y < RESIZE_BORDER) { in hitTest()
41 } else if (pt->x > w - RESIZE_BORDER && pt->y < RESIZE_BORDER) { in hitTest()
43 } else if (pt->x > w - RESIZE_BORDER && pt->y > RESIZE_BORDER && pt->y < h - RESIZE_BORDER) { in hitTest()
45 } else if (pt->x > w - RESIZE_BORDER && pt->y > h - RESIZE_BORDER) { in hitTest()
47 } else if (pt->x < w - RESIZE_BORDER && pt->x > RESIZE_BORDER && pt->y > h - RESIZE_BORDER) { in hitTest()
49 } else if (pt->x < RESIZE_BORDER && pt->y > h - RESIZE_BORDER) { in hitTest()
51 } else if (pt->x < RESIZE_BORDER && pt->y < h - RESIZE_BORDER && pt->y > RESIZE_BORDER) { in hitTest()
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/examples/
A Dtest_point.js25 var pt, pt2;
27 pt = new Point(2, 3);
28 assert(pt.x === 2);
29 assert(pt.y === 3);
30 pt.x = 4;
31 assert(pt.x === 4);
32 assert(pt.norm() == 5);
/AliOS-Things-master/components/freetype/src/tools/ftrandom/
A Dftrandom.c227 char* pt; in extmatch() local
233 pt = strrchr( filename, '.' ); in extmatch()
234 if ( pt == NULL ) in extmatch()
236 if ( pt < strrchr( filename, '/' ) ) in extmatch()
572 char* pt = argv[i]; in main() local
576 if ( pt[0] == '-' && pt[1] == '-' ) in main()
577 ++pt; in main()
579 if ( strcmp( pt, "-all" ) == 0 ) in main()
583 else if ( strcmp( pt, "-dir" ) == 0 ) in main()
609 else if ( strcmp( pt, "-ext" ) == 0 ) in main()
[all …]
/AliOS-Things-master/components/SDL2/src/video/windows/
A DSDL_windowsmouse.c227 POINT pt; in WIN_WarpMouse() local
234 pt.x = x; in WIN_WarpMouse()
235 pt.y = y; in WIN_WarpMouse()
237 SetCursorPos(pt.x, pt.y); in WIN_WarpMouse()
243 POINT pt; in WIN_WarpMouseGlobal() local
245 pt.x = x; in WIN_WarpMouseGlobal()
246 pt.y = y; in WIN_WarpMouseGlobal()
247 SetCursorPos(pt.x, pt.y); in WIN_WarpMouseGlobal()
279 GetCursorPos(&pt); in WIN_GetGlobalMouseState()
280 *x = (int) pt.x; in WIN_GetGlobalMouseState()
[all …]
A DSDL_windowsevents.c635 POINT pt; in WIN_WindowProc() local
639 GetCursorPos(&pt); in WIN_WindowProc()
640 currentHnd = WindowFromPoint(pt); in WIN_WindowProc()
641 ScreenToClient(hwnd, &pt); in WIN_WindowProc()
645 … if(currentHnd != hwnd || pt.x < 0 || pt.y < 0 || pt.x > hwndRect.right || pt.y > hwndRect.right) { in WIN_WindowProc()
646 SDL_SendMouseMotion(data->window, 0, 0, (int)pt.x, (int)pt.y); in WIN_WindowProc()
/AliOS-Things-master/components/mbedtls/library/
A Decp.c541 ECP_VALIDATE( pt != NULL ); in mbedtls_ecp_point_init()
543 mbedtls_mpi_init( &pt->X ); in mbedtls_ecp_point_init()
589 if( pt == NULL ) in mbedtls_ecp_point_free()
1102 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &pt->X, &pt->X, &ZZi ) ); MOD_MUL( pt->X ); in ecp_normalize_jac()
1107 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &pt->Y, &pt->Y, &ZZi ) ); MOD_MUL( pt->Y ); in ecp_normalize_jac()
1108 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &pt->Y, &pt->Y, &Zi ) ); MOD_MUL( pt->Y ); in ecp_normalize_jac()
1470 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &pt->Z, &pt->Z, &l ) ); MOD_MUL( pt->Z ); in ecp_randomize_jac()
1474 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &pt->X, &pt->X, &ll ) ); MOD_MUL( pt->X ); in ecp_randomize_jac()
1478 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &pt->Y, &pt->Y, &ll ) ); MOD_MUL( pt->Y ); in ecp_randomize_jac()
2420 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &YY, &pt->Y, &pt->Y ) ); MOD_MUL( YY );
[all …]
A Dgcm.c617 static const unsigned char pt[MAX_TESTS][64] = variable
821 pt[pt_index[i]], buf, 16, tag_buf ); in mbedtls_gcm_self_test()
857 if( memcmp( buf, pt[pt_index[i]], pt_len[i] ) != 0 || in mbedtls_gcm_self_test()
889 ret = mbedtls_gcm_update( &ctx, 32, pt[pt_index[i]], buf ); in mbedtls_gcm_self_test()
893 ret = mbedtls_gcm_update( &ctx, rest_len, pt[pt_index[i]] + 32, in mbedtls_gcm_self_test()
900 ret = mbedtls_gcm_update( &ctx, pt_len[i], pt[pt_index[i]], buf ); in mbedtls_gcm_self_test()
962 if( memcmp( buf, pt[pt_index[i]], pt_len[i] ) != 0 || in mbedtls_gcm_self_test()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Decp.h471 void mbedtls_ecp_point_init( mbedtls_ecp_point *pt );
496 void mbedtls_ecp_point_free( mbedtls_ecp_point *pt );
571 int mbedtls_ecp_set_zero( mbedtls_ecp_point *pt );
582 int mbedtls_ecp_is_zero( mbedtls_ecp_point *pt );
683 mbedtls_ecp_point *pt,
709 const mbedtls_ecp_point *pt,
968 const mbedtls_ecp_point *pt );
A Decp_internal.h121 mbedtls_ecp_point *pt, int (*f_rng)(void *, unsigned char *, size_t),
239 mbedtls_ecp_point *pt );
/AliOS-Things-master/components/uvoice/internal/
A Duvoice_alios.h454 static inline const char *os_partition_name(int pt) in os_partition_name() argument
458 if (hal_flash_info_get((hal_partition_t)pt, &info)) in os_partition_name()
463 static inline int os_partition_size(int pt) in os_partition_size() argument
467 if (hal_flash_info_get((hal_partition_t)pt, &info)) in os_partition_size()
472 static inline int os_partition_read(int pt, uint32_t *offset, uint8_t *buffer, uint32_t len) in os_partition_read() argument
474 return hal_flash_read((hal_partition_t)pt, offset, buffer, len); in os_partition_read()
477 static inline int os_partition_write(int pt, uint32_t *offset, const uint8_t *buffer , uint32_t len) in os_partition_write() argument
479 return hal_flash_write((hal_partition_t)pt, offset, buffer, len); in os_partition_write()
482 static inline int os_partition_erase(int pt, uint32_t offset, uint32_t len) in os_partition_erase() argument
484 return hal_flash_erase((hal_partition_t)pt, offset, len); in os_partition_erase()
A Duvoice_aos.h304 static inline const char *os_partition_name(int pt) in os_partition_name() argument
309 static inline int os_partition_size(int pt) in os_partition_size() argument
314 static inline int os_partition_read(int pt, uint32_t *offset, uint8_t *buffer, uint32_t len) in os_partition_read() argument
319 static inline int os_partition_write(int pt, uint32_t *offset, const uint8_t *buffer, uint32_t len) in os_partition_write() argument
324 static inline int os_partition_erase(int pt, uint32_t offset, uint32_t len) in os_partition_erase() argument
A Duvoice_amp.h340 static inline const char *os_partition_name(int pt) in os_partition_name() argument
345 static inline int os_partition_size(int pt) in os_partition_size() argument
350 static inline int os_partition_read(int pt, uint32_t *offset, uint8_t *buffer, uint32_t len) in os_partition_read() argument
355 static inline int os_partition_write(int pt, uint32_t *offset, const uint8_t *buffer , uint32_t len) in os_partition_write() argument
360 static inline int os_partition_erase(int pt, uint32_t offset, uint32_t len) in os_partition_erase() argument
A Duvoice_linux.h391 static inline const char *os_partition_name(int pt) in os_partition_name() argument
396 static inline int os_partition_size(int pt) in os_partition_size() argument
401 static inline int os_partition_read(int pt, uint32_t *offset, uint8_t *buffer, uint32_t len) in os_partition_read() argument
406 static inline int os_partition_write(int pt, uint32_t *offset, const uint8_t *buffer , uint32_t len) in os_partition_write() argument
411 static inline int os_partition_erase(int pt, uint32_t offset, uint32_t len) in os_partition_erase() argument
/AliOS-Things-master/components/py_engine/modules/minicv/base/include/
A DIHaasUI.h179 virtual int DrawPoint(Point_t *pt, int32_t color) = 0;
308 virtual bool DrawPixels(int32_t* pixels, Point_t *pt, int32_t width, int32_t height) = 0;
333 virtual bool DrawImage(char * path, Point_t *pt, int32_t width, int32_t height) = 0;
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/c/include/
A DWrapperIHaasUI.h48 int UIDrawPoint(void* instance, Point_t *pt, int32_t color);
55 bool UIDrawPixels(void* instance, int32_t* pixels, Point_t *pt, int32_t width, int32_t height);
56 bool UIDrawImage(void* instance, char * path, Point_t *pt, int32_t width, int32_t height);
/AliOS-Things-master/components/linkkit/infra/
A Dinfra_preauth.c114 char *p_start, *p_end, *pt; in _preauth_parse_auth_rsp_string() local
129 pt = p; in _preauth_parse_auth_rsp_string()
131 while (--pt > json_string) { in _preauth_parse_auth_rsp_string()
132 if (*pt == '\"') { in _preauth_parse_auth_rsp_string()
134 p_start = pt + 1; in _preauth_parse_auth_rsp_string()
137 p_end = pt; in _preauth_parse_auth_rsp_string()
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/c/src/
A DWrapperIHaasUI.cpp158 int UIDrawPoint(void* instance, Point_t *pt, int32_t color) in UIDrawPoint() argument
168 int ret = mIHaasUI->DrawPoint(pt, color); in UIDrawPoint()
242 bool UIDrawPixels(void* instance, int32_t* pixels, Point_t *pt, int32_t width, int32_t height) in UIDrawPixels() argument
252 bool ret = mIHaasUI->DrawPixels(pixels, pt, width, height); in UIDrawPixels()
259 bool UIDrawImage(void* instance, char * path, Point_t *pt, int32_t width, int32_t height) in UIDrawImage() argument
269 bool ret = mIHaasUI->DrawImage(path, pt, width, height); in UIDrawImage()
/AliOS-Things-master/components/py_engine/modules/minicv/
A Dui.c368 Point_t pt; in obj_drawPoint() local
369 pt.x = x; in obj_drawPoint()
370 pt.y = y; in obj_drawPoint()
484 Point_t pt; in obj_drawCircle() local
485 pt.x = x; in obj_drawCircle()
486 pt.y = y; in obj_drawCircle()
561 Point_t pt; in obj_drawPixels() local
562 pt.x = x; in obj_drawPixels()
563 pt.y = y; in obj_drawPixels()
601 pt.x = x; in obj_drawImage()
[all …]
A Dimageproc.c339 Point_t pt; in obj_drawMarker() local
340 pt.x = x; in obj_drawMarker()
341 pt.y = y; in obj_drawMarker()
343 ret = ImageProcDrawMarker(driver_obj->mInstance, src, &pt, type); in obj_drawMarker()
379 Point_t pt; in obj_fillPoly() local
380 pt.x = x; in obj_fillPoly()
381 pt.y = y; in obj_fillPoly()
382 Point_t *ptt = &pt; in obj_fillPoly()
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Dpppoe.c387 struct pppoetag pt; in pppoe_disc_input() local
437 while (off + sizeof(pt) <= pb->len) { in pppoe_disc_input()
438 MEMCPY(&pt, (u8_t*)pb->payload + off, sizeof(pt)); in pppoe_disc_input()
439 tag = lwip_ntohs(pt.tag); in pppoe_disc_input()
440 len = lwip_ntohs(pt.len); in pppoe_disc_input()
441 if (off + sizeof(pt) + len > pb->len) { in pppoe_disc_input()
457 hunique = (u8_t*)pb->payload + off + sizeof(pt); in pppoe_disc_input()
460 sc = pppoe_find_softc_by_hunique((u8_t*)pb->payload + off + sizeof(pt), len, netif); in pppoe_disc_input()
468 ac_cookie = (u8_t*)pb->payload + off + sizeof(pt); in pppoe_disc_input()
490 strncpy(error_tmp, (char*)pb->payload + off + sizeof(pt), error_len); in pppoe_disc_input()
[all …]
/AliOS-Things-master/components/SDL2/src/core/winrt/
A DSDL_winrtapp_direct3d.cpp733 Windows::UI::Input::PointerPoint ^ pt = args->CurrentPoint;
736 pt->Position.X, pt->Position.Y,
738 pt->Properties->MouseWheelDelta,
739 pt->FrameId,
740 pt->PointerId,
741 WINRT_GetSDLButtonForPointerPoint(pt));
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/
A Dlibunicode.c329 uint32_t *pt; in cr_compress() local
331 pt = cr->points; in cr_compress()
337 if (pt[i] == pt[i + 1]) { in cr_compress()
342 while ((j + 3) < len && pt[j + 1] == pt[j + 2]) in cr_compress()
345 pt[k] = pt[i]; in cr_compress()
346 pt[k + 1] = pt[j + 1]; in cr_compress()
/AliOS-Things-master/components/SDL2/src/gfx/Docs/html/
A Ddoxygen.css151 font-size: 9pt;
535 font-size: 9pt;
543 font-size: 11pt;
592 font-size: 11pt;
754 font-size: 8pt;
761 font-size: 8pt;
775 font-size: 8pt;
/AliOS-Things-master/components/SDL2/src/video/winrt/
A DSDL_winrtpointerinput.cpp131 WINRT_GetSDLButtonForPointerPoint(Windows::UI::Input::PointerPoint ^pt)
138 switch (pt->Properties->PointerUpdateKind)
A DSDL_winrtevents_c.h56 extern Uint8 WINRT_GetSDLButtonForPointerPoint(Windows::UI::Input::PointerPoint ^pt);

Completed in 50 milliseconds

123