Home
last modified time | relevance | path

Searched refs:srcrect (Results 1 – 22 of 22) sorted by relevance

/AliOS-Things-master/components/SDL2/src/video/
A DSDL_stretch.c203 SDL_SoftStretch(SDL_Surface * src, const SDL_Rect * srcrect, in SDL_SoftStretch() argument
228 if (srcrect) { in SDL_SoftStretch()
229 if ((srcrect->x < 0) || (srcrect->y < 0) || in SDL_SoftStretch()
230 ((srcrect->x + srcrect->w) > src->w) || in SDL_SoftStretch()
231 ((srcrect->y + srcrect->h) > src->h)) { in SDL_SoftStretch()
239 srcrect = &full_src; in SDL_SoftStretch()
277 inc = (srcrect->h << 16) / dstrect->h; in SDL_SoftStretch()
278 src_row = srcrect->y; in SDL_SoftStretch()
294 + (srcrect->x * bpp); in SDL_SoftStretch()
329 copy_row2((Uint16 *) srcp, srcrect->w, in SDL_SoftStretch()
[all …]
A DSDL_blit.c34 SDL_SoftBlit(SDL_Surface * src, SDL_Rect * srcrect, in SDL_SoftBlit() argument
64 if (okay && !SDL_RectEmpty(srcrect)) { in SDL_SoftBlit()
70 (Uint16) srcrect->y * src->pitch + in SDL_SoftBlit()
71 (Uint16) srcrect->x * info->src_fmt->BytesPerPixel; in SDL_SoftBlit()
72 info->src_w = srcrect->w; in SDL_SoftBlit()
73 info->src_h = srcrect->h; in SDL_SoftBlit()
A DSDL_surface.c656 if (srcrect) { in SDL_UpperBlit()
659 srcx = srcrect->x; in SDL_UpperBlit()
660 w = srcrect->w; in SDL_UpperBlit()
670 srcy = srcrect->y; in SDL_UpperBlit()
671 h = srcrect->h; in SDL_UpperBlit()
750 if (NULL == srcrect) { in SDL_UpperBlitScaled()
754 src_w = srcrect->w; in SDL_UpperBlitScaled()
755 src_h = srcrect->h; in SDL_UpperBlitScaled()
786 if (NULL == srcrect) { in SDL_UpperBlitScaled()
792 src_x0 = srcrect->x; in SDL_UpperBlitScaled()
[all …]
A DSDL_RLEaccel.c451 SDL_RLEBlit(SDL_Surface * surf_src, SDL_Rect * srcrect, in SDL_RLEBlit() argument
476 int vskip = srcrect->y; in SDL_RLEBlit()
520 if (srcrect->x || srcrect->w != surf_src->w) { in SDL_RLEBlit()
527 int linecount = srcrect->h; \ in SDL_RLEBlit()
638 Uint8 * dstbuf, SDL_Rect * srcrect) in RLEAlphaClipBlit() argument
648 int linecount = srcrect->h; \ in RLEAlphaClipBlit()
649 int left = srcrect->x; \ in RLEAlphaClipBlit()
650 int right = left + srcrect->w; \ in RLEAlphaClipBlit()
751 int vskip = srcrect->y; in SDL_RLEAlphaBlit()
806 if (srcrect->x || srcrect->w != surf_src->w) { in SDL_RLEAlphaBlit()
[all …]
/AliOS-Things-master/components/SDL2/src/gfx/
A DSDL_gfxBlitFunc.c361 if (srcrect->w && srcrect->h) { in _SDL_gfxBlitRGBACall()
368 …ixels = (Uint8 *) src->pixels + (Uint16) srcrect->y * src->pitch + (Uint16) srcrect-… in _SDL_gfxBlitRGBACall()
370 …ixels = (Uint8 *) src->pixels + src->offset + (Uint16) srcrect->y * src->pitch + (Uint16) srcrect-… in _SDL_gfxBlitRGBACall()
372 info.s_width = srcrect->w; in _SDL_gfxBlitRGBACall()
373 info.s_height = srcrect->h; in _SDL_gfxBlitRGBACall()
411 int SDL_gfxBlitRGBA(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect) in SDL_gfxBlitRGBA() argument
442 if (srcrect) { in SDL_gfxBlitRGBA()
445 srcx = srcrect->x; in SDL_gfxBlitRGBA()
446 w = srcrect->w; in SDL_gfxBlitRGBA()
456 srcy = srcrect->y; in SDL_gfxBlitRGBA()
[all …]
A DSDL_gfxBlitFunc.h63 …SDL_GFXBLITFUNC_SCOPE int SDL_gfxBlitRGBA(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst…
/AliOS-Things-master/components/SDL2/src/render/software/
A DSDL_render_sw.c271 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in SW_QueueCopy() argument
281 SDL_memcpy(verts, srcrect, sizeof (SDL_Rect)); in SW_QueueCopy()
299 SDL_Rect srcrect; member
308 const SDL_Rect * srcrect, const SDL_FRect * dstrect, in SW_QueueCopyEx() argument
319 SDL_memcpy(&verts->srcrect, srcrect, sizeof (SDL_Rect)); in SW_QueueCopyEx()
393 …if (!(srcrect->w == final_rect->w && srcrect->h == final_rect->h && srcrect->x == 0 && srcrect->y … in SW_RenderCopyEx()
398 if (!(srcrect->w == src->w && srcrect->h == src->h && srcrect->x == 0 && srcrect->y == 0)) { in SW_RenderCopyEx()
708 const SDL_Rect *srcrect = verts; in SW_RunCommandQueue() local
717 if ( srcrect->w == dstrect->w && srcrect->h == dstrect->h ) { in SW_RunCommandQueue()
718 SDL_BlitSurface(src, srcrect, surface, dstrect); in SW_RunCommandQueue()
[all …]
/AliOS-Things-master/components/SDL2/include/
A DSDL_surface.h98 typedef int (SDLCALL *SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
491 (SDL_Surface * src, const SDL_Rect * srcrect,
499 (SDL_Surface * src, SDL_Rect * srcrect,
509 const SDL_Rect * srcrect,
520 (SDL_Surface * src, const SDL_Rect * srcrect,
528 (SDL_Surface * src, SDL_Rect * srcrect,
A DSDL_render.h872 const SDL_Rect * srcrect,
892 const SDL_Rect * srcrect,
1014 const SDL_Rect * srcrect,
1034 const SDL_Rect * srcrect,
/AliOS-Things-master/components/SDL2/src/render/
A DSDL_yuv_sw.c336 SDL_SW_CopyYUVToRGB(SDL_SW_YUVTexture * swdata, const SDL_Rect * srcrect, in SDL_SW_CopyYUVToRGB() argument
349 if (srcrect->x || srcrect->y || srcrect->w < swdata->w || srcrect->h < swdata->h) { in SDL_SW_CopyYUVToRGB()
356 } else if ((srcrect->w != w) || (srcrect->h != h)) { in SDL_SW_CopyYUVToRGB()
399 SDL_Rect rect = *srcrect; in SDL_SW_CopyYUVToRGB()
A DSDL_yuv_sw_c.h61 int SDL_SW_CopyYUVToRGB(SDL_SW_YUVTexture * swdata, const SDL_Rect * srcrect,
A DSDL_render.c524 retval = renderer->QueueCopy(renderer, cmd, texture, srcrect, dstrect); in QueueCmdCopy()
2933 const SDL_Rect * srcrect, const SDL_Rect * dstrect) in SDL_RenderCopy() argument
2944 return SDL_RenderCopyF(renderer, texture, srcrect, pdstfrect); in SDL_RenderCopy()
2949 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in SDL_RenderCopyF() argument
2972 if (srcrect) { in SDL_RenderCopyF()
2973 if (!SDL_IntersectRect(srcrect, &real_srcrect, &real_srcrect)) { in SDL_RenderCopyF()
3008 const SDL_Rect * srcrect, const SDL_Rect * dstrect, in SDL_RenderCopyEx() argument
3035 const SDL_Rect * srcrect, const SDL_FRect * dstrect, in SDL_RenderCopyExF() argument
3044 return SDL_RenderCopyF(renderer, texture, srcrect, dstrect); in SDL_RenderCopyExF()
3066 if (srcrect) { in SDL_RenderCopyExF()
[all …]
A DSDL_sysrender.h126 const SDL_Rect * srcrect, const SDL_FRect * dstrect);
/AliOS-Things-master/components/SDL2/src/render/psp/
A DSDL_render_psp.c499 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in PSP_QueueCopy() argument
507 const float u0 = srcrect->x; in PSP_QueueCopy()
508 const float v0 = srcrect->y; in PSP_QueueCopy()
509 const float u1 = srcrect->x + srcrect->w; in PSP_QueueCopy()
510 const float v1 = srcrect->y + srcrect->h; in PSP_QueueCopy()
586 const SDL_Rect * srcrect, const SDL_FRect * dstrect, in PSP_QueueCopyEx() argument
598 float u0 = srcrect->x; in PSP_QueueCopyEx()
599 float v0 = srcrect->y; in PSP_QueueCopyEx()
600 float u1 = srcrect->x + srcrect->w; in PSP_QueueCopyEx()
601 float v1 = srcrect->y + srcrect->h; in PSP_QueueCopyEx()
/AliOS-Things-master/components/SDL2/test/
A Dtestime.c324 SDL_Rect srcrect; in unifont_draw_glyph() local
325 srcrect.w = srcrect.h = 16; in unifont_draw_glyph()
338 srcrect.x = cInTex % UNIFONT_GLYPHS_IN_ROW * 16; in unifont_draw_glyph()
339 srcrect.y = cInTex / UNIFONT_GLYPHS_IN_ROW * 16; in unifont_draw_glyph()
340 SDL_RenderCopy(state->renderers[rendererID], texture, &srcrect, dstrect); in unifont_draw_glyph()
/AliOS-Things-master/components/SDL2/src/render/direct3d11/
A DSDL_render_d3d11.c1673 const float minu = (float) srcrect->x / texture->w; in D3D11_QueueCopy()
1674 const float maxu = (float) (srcrect->x + srcrect->w) / texture->w; in D3D11_QueueCopy()
1676 const float maxv = (float) (srcrect->y + srcrect->h) / texture->h; in D3D11_QueueCopy()
1756 minu = (float) (srcrect->x + srcrect->w) / texture->w; in D3D11_QueueCopyEx()
1757 maxu = (float) srcrect->x / texture->w; in D3D11_QueueCopyEx()
1759 minu = (float) srcrect->x / texture->w; in D3D11_QueueCopyEx()
1760 maxu = (float) (srcrect->x + srcrect->w) / texture->w; in D3D11_QueueCopyEx()
1764 minv = (float) (srcrect->y + srcrect->h) / texture->h; in D3D11_QueueCopyEx()
1765 maxv = (float) srcrect->y / texture->h; in D3D11_QueueCopyEx()
1767 minv = (float) srcrect->y / texture->h; in D3D11_QueueCopyEx()
[all …]
/AliOS-Things-master/components/SDL2/src/render/opengl/
A DSDL_render_gl.c875 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in GL_QueueCopy() argument
893 minu = (GLfloat) srcrect->x / texture->w; in GL_QueueCopy()
895 maxu = (GLfloat) (srcrect->x + srcrect->w) / texture->w; in GL_QueueCopy()
897 minv = (GLfloat) srcrect->y / texture->h; in GL_QueueCopy()
899 maxv = (GLfloat) (srcrect->y + srcrect->h) / texture->h; in GL_QueueCopy()
916 const SDL_Rect * srcrect, const SDL_FRect * dstrect, in GL_QueueCopyEx() argument
950 minu = (GLfloat) srcrect->x / texture->w; in GL_QueueCopyEx()
952 maxu = (GLfloat) (srcrect->x + srcrect->w) / texture->w; in GL_QueueCopyEx()
954 minv = (GLfloat) srcrect->y / texture->h; in GL_QueueCopyEx()
956 maxv = (GLfloat) (srcrect->y + srcrect->h) / texture->h; in GL_QueueCopyEx()
/AliOS-Things-master/components/SDL2/src/render/opengles/
A DSDL_render_gles.c597 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in GLES_QueueCopy() argument
615 minu = (GLfloat) srcrect->x / texture->w; in GLES_QueueCopy()
617 maxu = (GLfloat) (srcrect->x + srcrect->w) / texture->w; in GLES_QueueCopy()
619 minv = (GLfloat) srcrect->y / texture->h; in GLES_QueueCopy()
621 maxv = (GLfloat) (srcrect->y + srcrect->h) / texture->h; in GLES_QueueCopy()
/AliOS-Things-master/components/SDL2/src/render/metal/
A DSDL_render_metal.m1087 const SDL_Rect * srcrect, const SDL_FRect * dstrect)
1103 *(verts++) = normtex(srcrect->x, texw);
1104 *(verts++) = normtex(srcrect->y + srcrect->h, texh);
1108 *(verts++) = normtex(srcrect->x, texw);
1109 *(verts++) = normtex(srcrect->y, texh);
1113 *(verts++) = normtex(srcrect->x + srcrect->w, texw);
1114 *(verts++) = normtex(srcrect->y + srcrect->h, texh);
1118 *(verts++) = normtex(srcrect->x + srcrect->w, texw);
1119 *(verts++) = normtex(srcrect->y, texh);
/AliOS-Things-master/components/SDL2/src/render/direct3d/
A DSDL_render_d3d.c882 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in D3D_QueueCopy() argument
901 minu = (float) srcrect->x / texture->w; in D3D_QueueCopy()
902 maxu = (float) (srcrect->x + srcrect->w) / texture->w; in D3D_QueueCopy()
903 minv = (float) srcrect->y / texture->h; in D3D_QueueCopy()
904 maxv = (float) (srcrect->y + srcrect->h) / texture->h; in D3D_QueueCopy()
/AliOS-Things-master/components/SDL2/src/render/opengles2/
A DSDL_render_gles2.c819 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in GLES2_QueueCopy() argument
836 minu = (GLfloat) srcrect->x / texture->w; in GLES2_QueueCopy()
837 maxu = (GLfloat) (srcrect->x + srcrect->w) / texture->w; in GLES2_QueueCopy()
838 minv = (GLfloat) srcrect->y / texture->h; in GLES2_QueueCopy()
839 maxv = (GLfloat) (srcrect->y + srcrect->h) / texture->h; in GLES2_QueueCopy()
/AliOS-Things-master/components/SDL2/src/video/directfb/
A DSDL_DirectFB_render.c635 const SDL_Rect * srcrect, const SDL_FRect * dstrect) in DirectFB_QueueCopy() argument
645 SDLtoDFBRect(srcrect, verts++); in DirectFB_QueueCopy()
653 const SDL_Rect * srcrect, const SDL_FRect * dstrect, in DirectFB_QueueCopyEx() argument

Completed in 52 milliseconds