Home
last modified time | relevance | path

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

/external/swiftshader/src/OpenGL/libGLESv2/
DDevice.cpp473 SliceRectF sRect; in stretchRect() local
478 sRect.x0 = sourceRect->x0; in stretchRect()
479 sRect.x1 = sourceRect->x1; in stretchRect()
480 sRect.y0 = sourceRect->y0; in stretchRect()
481 sRect.y1 = sourceRect->y1; in stretchRect()
482 sRect.slice = sourceRect->slice; in stretchRect()
484 if(sRect.x0 > sRect.x1) in stretchRect()
486 swap(sRect.x0, sRect.x1); in stretchRect()
489 if(sRect.y0 > sRect.y1) in stretchRect()
491 swap(sRect.y0, sRect.y1); in stretchRect()
[all …]
DContext.cpp3713 void Context::blit(sw::Surface *source, const sw::SliceRect &sRect, sw::Surface *dest, const sw::Sl… in blit() argument
3715 …sw::SliceRectF sRectF((float)sRect.x0, (float)sRect.y0, (float)sRect.x1, (float)sRect.y1, sRect.sl… in blit()
DContext.h669 …void blit(sw::Surface *source, const sw::SliceRect &sRect, sw::Surface *dest, const sw::SliceRect …
/external/swiftshader/src/OpenGL/libGLES_CM/
DDevice.cpp331 SliceRect sRect; in stretchRect() local
336 sRect = *sourceRect; in stretchRect()
340 sRect.y0 = 0; in stretchRect()
341 sRect.x0 = 0; in stretchRect()
342 sRect.y1 = sHeight; in stretchRect()
343 sRect.x1 = sWidth; in stretchRect()
358 …bool scaling = (sRect.x1 - sRect.x0 != dRect.x1 - dRect.x0) || (sRect.y1 - sRect.y0 != dRect.y1 - … in stretchRect()
374 …sw::byte *sourceBuffer = (sw::byte*)source->lockInternal(0, 0, sRect.slice, LOCK_READONLY, PUBLIC); in stretchRect()
416 …unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, sRect.slice,… in stretchRect()
446 …sw::SliceRectF sRectF((float)sRect.x0, (float)sRect.y0, (float)sRect.x1, (float)sRect.y1, sRect.sl… in stretchRect()
DContext.cpp2870 void Context::blit(sw::Surface *source, const sw::SliceRect &sRect, sw::Surface *dest, const sw::Sl… in blit() argument
2872 …sw::SliceRectF sRectF((float)sRect.x0, (float)sRect.y0, (float)sRect.x1, (float)sRect.y1, sRect.sl… in blit()
DContext.h494 …void blit(sw::Surface *source, const sw::SliceRect &sRect, sw::Surface *dest, const sw::SliceRect …
/external/swiftshader/src/D3D8/
DDirect3DSwapChain8.cpp90 sw::Rect sRect(0, 0, 0, 0); in Present() local
95 sRect.x0 = sourceRect->left; in Present()
96 sRect.y0 = sourceRect->top; in Present()
97 sRect.x1 = sourceRect->right; in Present()
98 sRect.y1 = sourceRect->bottom; in Present()
109 …frameBuffer->blit(destWindowOverride, backBuffer[0], sourceRect ? &sRect : nullptr, destRect ? &dR… in Present()
DDirect3DDevice8.cpp434 RECT sRect = {0, 0, sWidth, sHeight}; in CopyRects() local
439 sourceRectsArray = &sRect; in CopyRects()
449 const RECT &sRect = sourceRectsArray[i]; in CopyRects() local
452 int rWidth = sRect.right - sRect.left; in CopyRects()
453 int rHeight = sRect.bottom - sRect.top; in CopyRects()
465 sourceSurface->LockRect(&sourceLock, &sRect, D3DLOCK_READONLY); in CopyRects()
4156 RECT sRect; in updateSurface() local
4161 sRect.left = sourceRect->left; in updateSurface()
4162 sRect.top = sourceRect->top; in updateSurface()
4163 sRect.right = sourceRect->right; in updateSurface()
[all …]
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
DSubsamplingScaleImageView.java275 private RectF sRect; field in SubsamplingScaleImageView
502 sRect = null; in reset()
1049 sourceToViewRect(tile.sRect, tile.vRect); in onDraw()
1075 … + tile.sampleSize + " RECT " + tile.sRect.top + "," + tile.sRect.left + "," + tile.sRect.bottom +… in onDraw()
1104 if (sRect == null) { sRect = new RectF(); } in onDraw()
1105sRect.set(0f, 0f, bitmapIsPreview ? bitmap.getWidth() : sWidth, bitmapIsPreview ? bitmap.getHeight… in onDraw()
1106 matrix.mapRect(sRect); in onDraw()
1107 canvas.drawRect(sRect, tileBgPaint); in onDraw()
1331 …return !(sVisLeft > tile.sRect.right || tile.sRect.left > sVisRight || sVisTop > tile.sRect.bottom… in tileVisible()
1505 tile.sRect = new Rect( in initialiseTileMap()
[all …]
/external/swiftshader/src/D3D9/
DDirect3DSwapChain9.cpp165 sw::Rect sRect(0, 0, 0, 0); in Present() local
170 sRect.x0 = sourceRect->left; in Present()
171 sRect.y0 = sourceRect->top; in Present()
172 sRect.x1 = sourceRect->right; in Present()
173 sRect.y1 = sourceRect->bottom; in Present()
184 …frameBuffer->blit(window, backBuffer[0], sourceRect ? &sRect : nullptr, destRect ? &dRect : nullpt… in Present()
DDirect3DDevice9.cpp5403 RECT sRect; in UpdateSurface() local
5408 sRect.left = sourceRect->left; in UpdateSurface()
5409 sRect.top = sourceRect->top; in UpdateSurface()
5410 sRect.right = sourceRect->right; in UpdateSurface()
5411 sRect.bottom = sourceRect->bottom; in UpdateSurface()
5415 sRect.left = 0; in UpdateSurface()
5416 sRect.top = 0; in UpdateSurface()
5417 sRect.right = sourceDescription.Width; in UpdateSurface()
5418 sRect.bottom = sourceDescription.Height; in UpdateSurface()
5425 dRect.right = destPoint->x + sRect.right - sRect.left; in UpdateSurface()
[all …]
/external/swiftshader/src/Renderer/
DBlitter.cpp44 SliceRectF sRect(0.5f, 0.5f, 0.5f, 0.5f, 0); // Sample from the middle. in clear() local
45 blit(color, sRect, dest, dRect, {rgbaMask}); in clear()
151 SliceRectF sRect = sourceRect; in blit() local
160 swap(sRect.x0, sRect.x1); in blit()
165 swap(sRect.y0, sRect.y1); in blit()
168 source->lockInternal(0, 0, sRect.slice, sw::LOCK_READONLY, sw::PUBLIC); in blit()
171 float w = sRect.width() / dRect.width(); in blit()
172 float h = sRect.height() / dRect.height(); in blit()
174 float xStart = sRect.x0 + (0.5f - dRect.x0) * w; in blit()
175 float yStart = sRect.y0 + (0.5f - dRect.y0) * h; in blit()
[all …]
DBlitter.hpp98 …void blit(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRect, const O…
113 …bool blitReactor(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRect, …
DRenderer.hpp285 …void blit(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRect, bool fi…
DRenderer.cpp731 …void Renderer::blit(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRec… in blit() argument
733 blitter->blit(source, sRect, dest, dRect, {filter, isStencil, sRGBconversion}); in blit()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
DSkiaPooledImageRegionDecoder.java248 public Bitmap decodeRegion(Rect sRect, int sampleSize) { in decodeRegion() argument
249 debug("Decode region " + sRect + " on thread " + Thread.currentThread().getName()); in decodeRegion()
250 if (sRect.width() < imageDimensions.x || sRect.height() < imageDimensions.y) { in decodeRegion()
263 Bitmap bitmap = decoder.decodeRegion(sRect, options); in decodeRegion()
DSkiaImageRegionDecoder.java110 public Bitmap decodeRegion(Rect sRect, int sampleSize) { in decodeRegion() argument
117 Bitmap bitmap = decoder.decodeRegion(sRect, options); in decodeRegion()
DImageRegionDecoder.java47 Bitmap decodeRegion(Rect sRect, int sampleSize); in decodeRegion() argument
/external/swiftshader/src/Device/
DBlitter.cpp42 SliceRectF sRect(0.5f, 0.5f, 0.5f, 0.5f, 0); // Sample from the middle. in clear() local
43 blit(color, sRect, dest, dRect, {rgbaMask}); in clear()
151 SliceRectF sRect = sourceRect; in blit() local
160 swap(sRect.x0, sRect.x1); in blit()
165 swap(sRect.y0, sRect.y1); in blit()
168 source->lockInternal(0, 0, sRect.slice, sw::LOCK_READONLY, sw::PUBLIC); in blit()
171 float w = sRect.width() / dRect.width(); in blit()
172 float h = sRect.height() / dRect.height(); in blit()
174 float xStart = sRect.x0 + (0.5f - dRect.x0) * w; in blit()
175 float yStart = sRect.y0 + (0.5f - dRect.y0) * h; in blit()
[all …]
DBlitter.hpp98 …void blit(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRect, const O…
113 …bool blitReactor(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRect, …
DRenderer.hpp256 …void blit(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRect, bool fi…
DRenderer.cpp604 …void Renderer::blit(Surface *source, const SliceRectF &sRect, Surface *dest, const SliceRect &dRec… in blit() argument
606 blitter->blit(source, sRect, dest, dRect, {filter, isStencil, sRGBconversion}); in blit()
/external/swiftshader/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/
DOGLES2HelloAPI_Windows.cpp213 RECT sRect; in WinMain() local
214 SetRect(&sRect, 0, 0, nWidth, nHeight); in WinMain()
215 AdjustWindowRectEx(&sRect, WS_CAPTION | WS_SYSMENU, false, 0); in WinMain()
/external/swiftshader/src/OpenGL/libEGL/
DContext.hpp41 …virtual void blit(sw::Surface *source, const sw::SliceRect &sRect, sw::Surface *dest, const sw::Sl…
/external/swiftshader/src/Vulkan/
DVkImage.cpp467 …sw::SliceRectF sRect(static_cast<float>(region.srcOffsets[0].x), static_cast<float>(region.srcOffs… in blit()
476 blitter->blit(srcSurface, sRect, dstSurface, dRect, in blit()
478 sRect.slice++; in blit()