/AliOS-Things-master/components/SDL2/src/video/ |
A D | SDL_stretch.c | 204 SDL_Surface * dst, const SDL_Rect * dstrect) in SDL_SoftStretch() argument 241 if (dstrect) { in SDL_SoftStretch() 242 if ((dstrect->x < 0) || (dstrect->y < 0) || in SDL_SoftStretch() 243 ((dstrect->x + dstrect->w) > dst->w) || in SDL_SoftStretch() 244 ((dstrect->y + dstrect->h) > dst->h)) { in SDL_SoftStretch() 252 dstrect = &full_dst; in SDL_SoftStretch() 277 inc = (srcrect->h << 16) / dstrect->h; in SDL_SoftStretch() 279 dst_row = dstrect->y; in SDL_SoftStretch() 291 + (dstrect->x * bpp); in SDL_SoftStretch() 330 (Uint16 *) dstp, dstrect->w); in SDL_SoftStretch() [all …]
|
A D | SDL_surface.c | 648 if (dstrect == NULL) { in SDL_UpperBlit() 652 dstrect = &fulldst; in SDL_UpperBlit() 695 dstrect->x += dx; in SDL_UpperBlit() 727 dstrect->w = dstrect->h = 0; in SDL_UpperBlit() 758 if (NULL == dstrect) { in SDL_UpperBlitScaled() 762 dst_w = dstrect->w; in SDL_UpperBlitScaled() 763 dst_h = dstrect->h; in SDL_UpperBlitScaled() 774 if (NULL == dstrect) { in SDL_UpperBlitScaled() 780 dst_x0 = dstrect->x; in SDL_UpperBlitScaled() 781 dst_y0 = dstrect->y; in SDL_UpperBlitScaled() [all …]
|
A D | SDL_blit.c | 35 SDL_Surface * dst, SDL_Rect * dstrect) in SDL_SoftBlit() argument 78 (Uint8 *) dst->pixels + (Uint16) dstrect->y * dst->pitch + in SDL_SoftBlit() 79 (Uint16) dstrect->x * info->dst_fmt->BytesPerPixel; in SDL_SoftBlit() 80 info->dst_w = dstrect->w; in SDL_SoftBlit() 81 info->dst_h = dstrect->h; in SDL_SoftBlit()
|
A D | SDL_RLEaccel.c | 452 SDL_Surface * surf_dst, SDL_Rect * dstrect) in SDL_RLEBlit() argument 468 x = dstrect->x; in SDL_RLEBlit() 469 y = dstrect->y; in SDL_RLEBlit() 730 SDL_Surface * surf_dst, SDL_Rect * dstrect) in SDL_RLEAlphaBlit() argument 744 x = dstrect->x; in SDL_RLEAlphaBlit() 745 y = dstrect->y; in SDL_RLEAlphaBlit()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testime.c | 496 SDL_Rect dstrect; in _Redraw() 498 dstrect.x = textRect.x; in _Redraw() 500 dstrect.w = 16 * UNIFONT_DRAW_SCALE; in _Redraw() 502 drawnTextRect.y = dstrect.y; in _Redraw() 503 drawnTextRect.h = dstrect.h; in _Redraw() 508 dstrect.x += advance; in _Redraw() 573 SDL_Rect dstrect; in _Redraw() 575 dstrect.x = drawnTextRect.x; in _Redraw() 579 drawnTextRect.y = dstrect.y; in _Redraw() 580 drawnTextRect.h = dstrect.h; in _Redraw() [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/ |
A D | SDL_gfxBlitFunc.c | 356 … _SDL_gfxBlitRGBACall(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect) in _SDL_gfxBlitRGBACall() argument 376 …ixels = (Uint8 *) dst->pixels + (Uint16) dstrect->y * dst->pitch + (Uint16) dstrect-… in _SDL_gfxBlitRGBACall() 378 …ixels = (Uint8 *) dst->pixels + dst->offset + (Uint16) dstrect->y * dst->pitch + (Uint16) dstrect-… in _SDL_gfxBlitRGBACall() 380 info.d_width = dstrect->w; in _SDL_gfxBlitRGBACall() 381 info.d_height = dstrect->h; in _SDL_gfxBlitRGBACall() 411 int SDL_gfxBlitRGBA(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect) in SDL_gfxBlitRGBA() argument 431 if (dstrect == NULL) { in SDL_gfxBlitRGBA() 436 dr = *dstrect; in SDL_gfxBlitRGBA()
|
A D | SDL_gfxBlitFunc.h | 63 … int SDL_gfxBlitRGBA(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect);
|
/AliOS-Things-master/components/SDL2/src/render/software/ |
A D | SDL_render_sw.c | 288 verts->x = (int)dstrect->x; in SW_QueueCopy() 291 verts->w = (int)dstrect->w; in SW_QueueCopy() 292 verts->h = (int)dstrect->h; in SW_QueueCopy() 300 SDL_Rect dstrect; member 322 verts->dstrect.x = (int)(renderer->viewport.x + dstrect->x); in SW_QueueCopyEx() 323 verts->dstrect.y = (int)(renderer->viewport.y + dstrect->y); in SW_QueueCopyEx() 325 verts->dstrect.x = (int)dstrect->x; in SW_QueueCopyEx() 326 verts->dstrect.y = (int)dstrect->y; in SW_QueueCopyEx() 328 verts->dstrect.w = (int)dstrect->w; in SW_QueueCopyEx() 329 verts->dstrect.h = (int)dstrect->h; in SW_QueueCopyEx() [all …]
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_surface.h | 99 struct SDL_Surface * dst, SDL_Rect * dstrect); 492 SDL_Surface * dst, SDL_Rect * dstrect); 500 SDL_Surface * dst, SDL_Rect * dstrect); 511 const SDL_Rect * dstrect); 521 SDL_Surface * dst, SDL_Rect * dstrect); 529 SDL_Surface * dst, SDL_Rect * dstrect);
|
A D | SDL_render.h | 873 const SDL_Rect * dstrect); 893 const SDL_Rect * dstrect, 1015 const SDL_FRect * dstrect); 1035 const SDL_FRect * dstrect,
|
/AliOS-Things-master/components/SDL2/src/render/opengles/ |
A D | SDL_render_gles.c | 610 minx = dstrect->x; in GLES_QueueCopy() 611 miny = dstrect->y; in GLES_QueueCopy() 612 maxx = dstrect->x + dstrect->w; in GLES_QueueCopy() 613 maxy = dstrect->y + dstrect->h; in GLES_QueueCopy() 647 const SDL_Rect * srcquad, const SDL_FRect * dstrect, in GLES_QueueCopyEx() argument 664 minx = dstrect->w - centerx; in GLES_QueueCopyEx() 669 maxx = dstrect->w - centerx; in GLES_QueueCopyEx() 673 miny = dstrect->h - centery; in GLES_QueueCopyEx() 678 maxy = dstrect->h - centery; in GLES_QueueCopyEx() 710 *(verts++) = (GLfloat) dstrect->x + centerx; in GLES_QueueCopyEx() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/psp/ |
A D | SDL_render_psp.c | 499 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in PSP_QueueCopy() argument 502 const float x = dstrect->x; in PSP_QueueCopy() 503 const float y = dstrect->y; in PSP_QueueCopy() 504 const float width = dstrect->w; in PSP_QueueCopy() 505 const float height = dstrect->h; in PSP_QueueCopy() 586 const SDL_Rect * srcrect, const SDL_FRect * dstrect, in PSP_QueueCopyEx() argument 592 const float x = dstrect->x + centerx; in PSP_QueueCopyEx() 593 const float y = dstrect->y + centery; in PSP_QueueCopyEx() 594 const float width = dstrect->w - centerx; in PSP_QueueCopyEx() 595 const float height = dstrect->h - centery; in PSP_QueueCopyEx()
|
/AliOS-Things-master/components/SDL2/src/render/opengles2/ |
A D | SDL_render_gles2.c | 831 minx = dstrect->x; in GLES2_QueueCopy() 832 miny = dstrect->y; in GLES2_QueueCopy() 833 maxx = dstrect->x + dstrect->w; in GLES2_QueueCopy() 834 maxy = dstrect->y + dstrect->h; in GLES2_QueueCopy() 882 minx = dstrect->x + dstrect->w; in GLES2_QueueCopyEx() 883 maxx = dstrect->x; in GLES2_QueueCopyEx() 885 minx = dstrect->x; in GLES2_QueueCopyEx() 886 maxx = dstrect->x + dstrect->w; in GLES2_QueueCopyEx() 890 miny = dstrect->y + dstrect->h; in GLES2_QueueCopyEx() 891 maxy = dstrect->y; in GLES2_QueueCopyEx() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/ |
A D | SDL_render.c | 2937 if (dstrect) { in SDL_RenderCopy() 2938 dstfrect.x = (float) dstrect->x; in SDL_RenderCopy() 2939 dstfrect.y = (float) dstrect->y; in SDL_RenderCopy() 2940 dstfrect.w = (float) dstrect->w; in SDL_RenderCopy() 2941 dstfrect.h = (float) dstrect->h; in SDL_RenderCopy() 2984 if (dstrect) { in SDL_RenderCopyF() 2988 real_dstrect = *dstrect; in SDL_RenderCopyF() 3016 if (dstrect) { in SDL_RenderCopyEx() 3017 dstfrect.x = (float) dstrect->x; in SDL_RenderCopyEx() 3073 if (dstrect) { in SDL_RenderCopyExF() [all …]
|
A D | SDL_sysrender.h | 126 const SDL_Rect * srcrect, const SDL_FRect * dstrect); 128 const SDL_Rect * srcquad, const SDL_FRect * dstrect,
|
/AliOS-Things-master/components/SDL2/src/render/direct3d11/ |
A D | SDL_render_d3d11.c | 1684 verts->pos.x = dstrect->x; in D3D11_QueueCopy() 1685 verts->pos.y = dstrect->y; in D3D11_QueueCopy() 1695 verts->pos.x = dstrect->x; in D3D11_QueueCopy() 1696 verts->pos.y = dstrect->y + dstrect->h; in D3D11_QueueCopy() 1706 verts->pos.x = dstrect->x + dstrect->w; in D3D11_QueueCopy() 1707 verts->pos.y = dstrect->y; in D3D11_QueueCopy() 1717 verts->pos.x = dstrect->x + dstrect->w; in D3D11_QueueCopy() 1718 verts->pos.y = dstrect->y + dstrect->h; in D3D11_QueueCopy() 1751 maxx = dstrect->w - center->x; in D3D11_QueueCopyEx() 1753 maxy = dstrect->h - center->y; in D3D11_QueueCopyEx() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/opengl/ |
A D | SDL_render_gl.c | 875 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in GL_QueueCopy() argument 888 minx = dstrect->x; in GL_QueueCopy() 889 miny = dstrect->y; in GL_QueueCopy() 890 maxx = dstrect->x + dstrect->w; in GL_QueueCopy() 891 maxy = dstrect->y + dstrect->h; in GL_QueueCopy() 933 minx = dstrect->w - centerx; in GL_QueueCopyEx() 938 maxx = dstrect->w - centerx; in GL_QueueCopyEx() 942 miny = dstrect->h - centery; in GL_QueueCopyEx() 947 maxy = dstrect->h - centery; in GL_QueueCopyEx() 968 *(verts++) = (GLfloat) dstrect->x + centerx; in GL_QueueCopyEx() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/metal/ |
A D | SDL_render_metal.m | 1101 *(verts++) = dstrect->x; 1102 *(verts++) = dstrect->y + dstrect->h; 1106 *(verts++) = dstrect->x; 1107 *(verts++) = dstrect->y; 1111 *(verts++) = dstrect->x + dstrect->w; 1112 *(verts++) = dstrect->y + dstrect->h; 1116 *(verts++) = dstrect->x + dstrect->w; 1117 *(verts++) = dstrect->y; 1153 verts[12] = dstrect->x + center->x; 1154 verts[13] = dstrect->y + center->y; [all …]
|
/AliOS-Things-master/components/SDL2/src/render/direct3d/ |
A D | SDL_render_d3d.c | 882 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in D3D_QueueCopy() argument 896 minx = dstrect->x - 0.5f; in D3D_QueueCopy() 897 miny = dstrect->y - 0.5f; in D3D_QueueCopy() 898 maxx = dstrect->x + dstrect->w - 0.5f; in D3D_QueueCopy() 899 maxy = dstrect->y + dstrect->h - 0.5f; in D3D_QueueCopy() 943 const SDL_Rect * srcquad, const SDL_FRect * dstrect, in D3D_QueueCopyEx() argument 959 maxx = dstrect->w - center->x; in D3D_QueueCopyEx() 961 maxy = dstrect->h - center->y; in D3D_QueueCopyEx() 1011 verts->x = dstrect->x + center->x - 0.5f; /* X translation */ in D3D_QueueCopyEx() 1012 verts->y = dstrect->y + center->y - 0.5f; /* Y translation */ in D3D_QueueCopyEx()
|
/AliOS-Things-master/components/SDL2/src/video/directfb/ |
A D | SDL_DirectFB_render.c | 635 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in DirectFB_QueueCopy() argument 646 SDLtoDFBRect_Float(dstrect, verts); in DirectFB_QueueCopy() 653 const SDL_Rect * srcrect, const SDL_FRect * dstrect, in DirectFB_QueueCopyEx() argument
|