Home
last modified time | relevance | path

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

12

/external/skia/bench/
DMorphologyBench.cpp69 mf = SkDilateImageFilter::Create(SkScalarFloorToInt(fRadius), in onDraw()
70 SkScalarFloorToInt(fRadius)); in onDraw()
73 mf = SkErodeImageFilter::Create(SkScalarFloorToInt(fRadius), in onDraw()
74 SkScalarFloorToInt(fRadius)); in onDraw()
/external/skia/src/core/
DSkBitmapProcState.cpp552 int iy2 = SkClampMax(SkScalarFloorToInt(pt.fY), maxY); in Clamp_S32_D32_nofilter_trans_shaderproc()
553 int ix2 = SkScalarFloorToInt(pt.fX); in Clamp_S32_D32_nofilter_trans_shaderproc()
626 int iy2 = sk_int_mod(SkScalarFloorToInt(pt.fY), stopY); in Repeat_S32_D32_nofilter_trans_shaderproc()
627 int ix2 = SkScalarFloorToInt(pt.fX); in Repeat_S32_D32_nofilter_trans_shaderproc()
685 yTemp = SkScalarFloorToInt(pt.fY * s.fBitmap->height()); in S32_D32_constX_shaderproc()
687 yTemp = SkScalarFloorToInt(pt.fY); in S32_D32_constX_shaderproc()
723 iY2 = SkClampMax(SkScalarFloorToInt(pt.fY), stopY-1); in S32_D32_constX_shaderproc()
726 iY2 = sk_int_mod(SkScalarFloorToInt(pt.fY), stopY); in S32_D32_constX_shaderproc()
730 iY2 = sk_int_mirror(SkScalarFloorToInt(pt.fY), stopY); in S32_D32_constX_shaderproc()
784 fFilterOneX = SkScalarFloorToInt(pt.fX); in setupForTranslate()
[all …]
DSkScalerContext.h45 fDeviceGamma = SkScalarFloorToInt(dg * (1 << 6)); in setDeviceGamma()
53 fPaintGamma = SkScalarFloorToInt(pg * (1 << 6)); in setPaintGamma()
DSkBitmapScaler.cpp139 …for (int destSubsetI = SkScalarFloorToInt(destSubsetLo); destSubsetI < SkScalarCeilToInt(destSubse… in computeFilters()
155 int srcBegin = SkTMax(0, SkScalarFloorToInt(srcPixel - srcSupport)); in computeFilters()
DSkDraw.cpp320 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_hair_proc()
321 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_hair_proc()
341 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_16_hair_proc()
342 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_16_hair_proc()
362 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_rect_32_hair_proc()
363 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_rect_32_hair_proc()
373 int x = SkScalarFloorToInt(devPts[i].fX); in bw_pt_hair_proc()
374 int y = SkScalarFloorToInt(devPts[i].fY); in bw_pt_hair_proc()
DSkMipMap.cpp338 int level = SkScalarFloorToInt(L); in extractLevel()
/external/skia/gm/
Dtextblobcolortrans.cpp78 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight; in onDraw()
79 y += SkScalarFloorToInt(bounds.height())) { in onDraw()
Danisotropic.cpp68 int height = SkScalarFloorToInt(fBM.height() * gScales[i]); in onDraw()
83 int width = SkScalarFloorToInt(fBM.width() * gScales[i]); in onDraw()
Dtextbloblooper.cpp244 y += SkScalarFloorToInt(bounds.height()); in onDraw()
/external/skia/include/core/
DSkSize.h105 s.set(SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)); in toFloor()
DSkScalar.h42 #define SkScalarFloorToInt(x) sk_float_floor2int(x) macro
85 #define SkScalarFloorToInt(x) (int)floor(x) macro
DSkRect.h851 dst->set(SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop), in roundOut()
877 SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBottom)); in roundIn()
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp191 ? SkClampMax(SkScalarFloorToInt(SkScalarMul(sumA, fGain) + fBias), 255) in filterPixels()
193 int r = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumR, fGain) + fBias), a); in filterPixels()
194 int g = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumG, fGain) + fBias), a); in filterPixels()
195 int b = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumB, fGain) + fBias), a); in filterPixels()
DSkMorphologyImageFilter.cpp165 int width = SkScalarFloorToInt(radius.fX); in filterImageGeneric()
166 int height = SkScalarFloorToInt(radius.fY); in filterImageGeneric()
722 int width = SkScalarFloorToInt(radius.fX); in filterImageGPUGeneric()
723 int height = SkScalarFloorToInt(radius.fY); in filterImageGPUGeneric()
DSkGpuBlurUtils.cpp175 desc.fWidth = SkScalarFloorToInt(srcRect.width()); in GaussianBlur()
176 desc.fHeight = SkScalarFloorToInt(srcRect.height()); in GaussianBlur()
DSkMagnifierImageFilter.cpp376 int x_val = SkPin32(SkScalarFloorToInt(x_interp), 0, width - 1); in onFilterImage()
377 int y_val = SkPin32(SkScalarFloorToInt(y_interp), 0, height - 1); in onFilterImage()
DSkBlurMask.cpp759 int sw = SkScalarFloorToInt(src.width()); in BlurRect()
760 int sh = SkScalarFloorToInt(src.height()); in BlurRect()
/external/skia/src/utils/
DSkCullPoints.cpp195 iTarget.fLeft = SkScalarFloorToInt(devTarget.fLeft); in SkHitTestPath()
196 iTarget.fTop = SkScalarFloorToInt(devTarget.fTop); in SkHitTestPath()
DSkInterpolator.cpp79 endTime = SkScalarFloorToInt(fRepeat * totalTime); in timeToT()
83 (SkMSec) SkScalarFloorToInt(fraction * totalTime); in timeToT()
/external/skia/src/animator/
DSkSnapshot.cpp67 encoder->encodeFile(name.c_str(), pixels, SkScalarFloorToInt(quality)); in draw()
DSkDrawColor.cpp72 int sextant = SkScalarFloorToInt(hue / 60); in HSV_to_RGB()
DSkScript.cpp1160 int index = indexType == kScalar ? SkScalarFloorToInt(indexOperand.fScalar) : in logicalOp()
1327 operand1.fS32 = SkScalarFloorToInt(operand1.fScalar); in processOp()
1342 operand2.fS32 = SkScalarFloorToInt(operand2.fScalar); in processOp()
1506 operand.fS32 = SkScalarFloorToInt(operand.fScalar); in ConvertTo()
DSkScriptRuntime.cpp213 operand[0].fS32 = SkScalarFloorToInt(operand[0].fScalar); in executeTokens()
/external/skia/samplecode/
DSampleDegenerateTwoPtRadials.cpp58 int intPart = SkScalarFloorToInt(delta); in onDrawContent()
/external/skia/src/gpu/
DGrAARectRenderer.cpp277 scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf)); in generateAAFillRectGeometry()
740 scale = SkScalarFloorToInt(512.0f * inset / (inset + SK_ScalarHalf)); in generateAAStrokeRectGeometry()

12