Home
last modified time | relevance | path

Searched refs:sWidth (Results 1 – 8 of 8) sorted by relevance

/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
DImageSource.java28 private int sWidth; field in ImageSource
38 this.sWidth = bitmap.getWidth(); in ImageSource()
196 public ImageSource dimensions(int sWidth, int sHeight) { in dimensions() argument
198 this.sWidth = sWidth; in dimensions()
208 this.sWidth = this.sRegion.width(); in setInvariants()
230 return sWidth; in getSWidth()
DSubsamplingScaleImageView.java208 private int sWidth; field in SubsamplingScaleImageView
436 this.sWidth = imageSource.getSWidth(); in setImage()
520 sWidth = 0; in reset()
635 if (sWidth > 0 && sHeight > 0) { in onMeasure()
637 width = sWidth(); in onMeasure()
640 height = (int)((((double)sHeight()/(double)sWidth()) * width)); in onMeasure()
642 width = (int)((((double)sWidth()/(double)sHeight()) * height)); in onMeasure()
763 …&& scale * sHeight() >= getHeight()) || (previousScale * sWidth() < getWidth() && scale * sWidth()… in onTouchEventInternal()
776 vTranslate.x = (getWidth()/2) - (scale * (sWidth()/2)); in onTouchEventInternal()
814 …&& scale * sHeight() >= getHeight()) || (previousScale * sWidth() < getWidth() && scale * sWidth()… in onTouchEventInternal()
[all …]
/external/swiftshader/src/OpenGL/libGLESv2/
DDevice.cpp450 int sWidth = source->getWidth(); in stretchRect() local
507 sRect.x1 = (float)sWidth; in stretchRect()
532 sw::Rect srcClipRect(0, 0, sWidth, sHeight); in stretchRect()
571 …bool isOutOfBounds = (sRect.x0 < 0.0f) || (sRect.y0 < 0.0f) || (sRect.x1 > (float)sWidth) || (sRec… in stretchRect()
576 …(sRect.x1 == (float)sWidth) && (sRect.y1 == (float)sHeight) && (dRect.x1 == dWidth) && (dRect.y1 =… in stretchRect()
660 int sWidth = source->getWidth(); in stretchCube() local
667 if((sWidth == 0) || (sHeight == 0) || (sDepth == 0) || in stretchCube()
673 bool scaling = (sWidth != dWidth) || (sHeight != dHeight) || (sDepth != dDepth); in stretchCube()
/external/swiftshader/src/Device/
DBlitter.hpp126 int sWidth; member
181 Int &sWidth, Int &sHeight, Int &sDepth,
DBlitter.cpp1429 Int &sWidth, Int &sHeight, Int &sDepth, in sample() argument
1446 X = Clamp(X, 0, sWidth - 1); in sample()
1486 X = Min(Max(x, 0.5f), Float(sWidth) - 0.5f); in sample()
1501 X1 = IfThenElse(X1 >= sWidth, X0, X1); in sample()
1617 Int sWidth = *Pointer<Int>(blit + OFFSET(BlitData, sWidth)); in generate() local
1688 X = Clamp(X, 0, sWidth - 1); in generate()
1706 Float4 color = sample(source, x, y, z, sWidth, sHeight, sDepth, sSliceB, sPitchB, state); in generate()
/external/swiftshader/src/Renderer/
DBlitter.hpp90 int sWidth; member
DBlitter.cpp1203 Int sWidth = *Pointer<Int>(blit + OFFSET(BlitData,sWidth)); in generate() local
1280 X = Clamp(X, 0, sWidth - 1); in generate()
1308 X = Clamp(X, 0, sWidth - 1); in generate()
1326 X = Min(Max(x, 0.5f), Float(sWidth) - 0.5f); in generate()
1338 X1 = IfThenElse(X1 >= sWidth, X0, X1); in generate()
1465 data.sWidth = source->getWidth(); in blitReactor()
/external/swiftshader/src/OpenGL/libGLES_CM/
DDevice.cpp326 int sWidth = source->getWidth(); in stretchRect() local
343 sRect.x1 = sWidth; in stretchRect()