Home
last modified time | relevance | path

Searched refs:srcPitch (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/SDL2/src/render/opengles/
A DSDL_render_gles.c416 int srcPitch; in GLES_UpdateTexture() local
427 srcPitch = rect->w * SDL_BYTESPERPIXEL(texture->format); in GLES_UpdateTexture()
429 if (pitch != srcPitch) { in GLES_UpdateTexture()
430 blob = (Uint8 *)SDL_malloc(srcPitch * rect->h); in GLES_UpdateTexture()
436 SDL_memcpy(src, pixels, srcPitch); in GLES_UpdateTexture()
437 src += srcPitch; in GLES_UpdateTexture()
/AliOS-Things-master/components/SDL2/src/render/direct3d11/
A DSDL_render_d3d11.c1334 int srcPitch) in D3D11_UpdateTexture() argument
1344 …SDL_BYTESPERPIXEL(texture->format), rect->x, rect->y, rect->w, rect->h, srcPixels, srcPitch) < 0) { in D3D11_UpdateTexture()
1350 srcPixels = (const void*)((const Uint8*)srcPixels + rect->h * srcPitch); in D3D11_UpdateTexture()
1352 …ct->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, srcPixels, (srcPitch + 1) / 2) < 0) { in D3D11_UpdateTexture()
1357 … srcPixels = (const void*)((const Uint8*)srcPixels + ((rect->h + 1) / 2) * ((srcPitch + 1) / 2)); in D3D11_UpdateTexture()
1358 …ct->x / 2, rect->y / 2, (rect->w + 1) / 2, (rect->h + 1) / 2, srcPixels, (srcPitch + 1) / 2) < 0) { in D3D11_UpdateTexture()
1365 srcPixels = (const void*)((const Uint8*)srcPixels + rect->h * srcPitch); in D3D11_UpdateTexture()
1367 …/ 2, rect->y / 2, ((rect->w + 1) / 2), (rect->h + 1) / 2, srcPixels, 2*((srcPitch + 1) / 2)) < 0) { in D3D11_UpdateTexture()

Completed in 10 milliseconds