Searched defs:scale (Results 176 - 200 of 429) sorted by relevance

1234567891011>>

/external/skia/src/effects/
H A DSkColorFilters.cpp447 unsigned scale = SkAlpha255To256(SkColorGetR(fMul)); local
451 *result++ = SkAlphaMulRGB16(*shader++, scale);
H A DSkColorMatrixFilter.cpp256 SkUnPreMultiply::Scale scale = table[a]; local
257 r = SkUnPreMultiply::ApplyScale(scale, r);
258 g = SkUnPreMultiply::ApplyScale(scale, g);
259 b = SkUnPreMultiply::ApplyScale(scale, b);
H A DSkTableColorFilter.cpp131 SkUnPreMultiply::Scale scale = scaleTable[a]; local
132 r = SkUnPreMultiply::ApplyScale(scale, r);
133 g = SkUnPreMultiply::ApplyScale(scale, g);
134 b = SkUnPreMultiply::ApplyScale(scale, b);
H A DSkTestImageFilters.cpp341 SkScalar scale = fScale; local
342 if (scale > SK_Scalar1 || scale <= 0) {
346 int dstW = SkScalarRoundToInt(src.width() * scale);
347 int dstH = SkScalarRoundToInt(src.height() * scale);
367 canvas.scale(scale, scale);
/external/skia/tests/
H A DMatrixTest.cpp65 SkMatrix scale; local
66 scale.setScale(SK_Scalar1 * 2, SK_Scalar1 * 4);
67 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxStretch());
92 SkMatrix baseMats[] = {scale, rot90Scale, rotate,
/external/speex/libspeex/
H A Dscal.c227 float scale = 1./N; local
/external/webkit/Source/WebCore/html/
H A DImageDocument.cpp229 float ImageDocument::scale() const function in class:WebCore::ImageDocument
254 float scale = this->scale(); local
255 m_imageElement->setWidth(static_cast<int>(imageSize.width() * scale));
256 m_imageElement->setHeight(static_cast<int>(imageSize.height() * scale));
276 float scale = this->scale(); local
278 int scrollX = static_cast<int>(x / scale - (float)frame()->view()->width() / 2);
279 int scrollY = static_cast<int>(y / scale - (float)frame()->view()->height() / 2);
/external/webkit/Source/WebCore/page/animation/
H A DKeyframeAnimation.cpp120 double scale = 1; local
136 scale = 1.0 / (nextKeyframe.key() - prevKeyframe.key());
144 prog = progress(scale, offset, timingFunction);
/external/webkit/Source/WebCore/platform/audio/
H A DAudioBus.cpp183 scale(1.0f / max);
186 void AudioBus::scale(double scale) argument
189 channel(i)->scale(scale);
/external/webkit/Source/WebCore/platform/audio/fftw/
H A DFFTFrameFFTW.cpp133 // FIXME: if we change the scaling on the Mac then this scale
135 float scale = 0.5f; local
138 realP1[0] *= scale * realP2[0];
139 imagP1[0] *= scale * imagP2[0];
149 realP1[i] = scale * realResult;
150 imagP1[i] = scale * imagResult;
158 // Scale the frequency domain data to match vecLib's scale factor
160 // eliminate this scale factor then this code will need to change.
193 // scale factor then this code will need to change. Also, if this
/external/webkit/Source/WebCore/platform/graphics/
H A DContextShadow.cpp194 // Calculate X axis scale factor.
199 // Calculate Y axis scale factor.
205 const float scale = sqrtf(xAxisScale * yAxisScale); local
206 m_blurDistance = roundf(static_cast<float>(m_blurDistance) / scale);
H A DFloatPoint3D.h80 void scale(float sx, float sy, float sz) function in class:WebCore::FloatPoint3D
H A DFloatRect.cpp118 void FloatRect::scale(float sx, float sy) function in class:WebCore::FloatRect
H A DFloatRect.h132 void scale(float s) { scale(s, s); } function in class:WebCore::FloatRect
133 void scale(float sx, float sy);
H A DSimpleFontData.cpp80 float scale = size; local
82 scale /= unitsPerEm;
84 float xHeight = svgFontFaceElement->xHeight() * scale;
85 float ascent = svgFontFaceElement->ascent() * scale;
86 float descent = svgFontFaceElement->descent() * scale;
94 xHeight = letterXGlyphs.isEmpty() ? 2 * ascent / 3 : letterXGlyphs.first().horizontalAdvanceX * scale;
106 m_spaceWidth = spaceGlyphs.isEmpty() ? xHeight : spaceGlyphs.first().horizontalAdvanceX * scale;
110 m_avgCharWidth = numeralZeroGlyphs.isEmpty() ? m_spaceWidth : numeralZeroGlyphs.first().horizontalAdvanceX * scale;
114 m_maxCharWidth = letterWGlyphs.isEmpty() ? ascent : letterWGlyphs.first().horizontalAdvanceX * scale;
H A DTextRun.h95 void setHorizontalGlyphStretch(float scale) { m_horizontalGlyphStretch = scale; } argument
/external/webkit/Source/WebCore/platform/graphics/android/layers/
H A DAndroidAnimation.cpp129 double scale = 1.0 / (to - from); local
131 if (scale != 1 || offset)
132 fractionalTime = (fractionalTime - offset) * scale;
H A DBaseLayerAndroid.cpp96 float scale = 1.0f; local
103 scale = webViewState->scale();
107 updateGLPositionsAndScale(ident, clip, 1, scale, forcePositionCalculation,
224 // into the shader to scale the texture coordinates.
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
H A DTile.cpp83 void Tile::setContents(int x, int y, float scale, bool isExpandedPrefetchTile) argument
88 || (m_scale != scale)) {
96 m_scale = scale;
222 bool Tile::drawGL(float opacity, const SkRect& rect, float scale, argument
227 if (m_x < 0 || m_y < 0 || m_scale != scale)
269 float scale, const SkRect& dirtyRect,
278 // scale the dirtyRect for intersect computation.
279 SkRect realDirtyRect = SkRect::MakeWH(dirtyRect.width() * scale,
280 dirtyRect.height() * scale);
281 realDirtyRect.offset(dirtyRect.fLeft * scale, dirtyRec
268 intersectWithRect(int x, int y, int tileWidth, int tileHeight, float scale, const SkRect& dirtyRect, SkRect& realTileRect) argument
306 float scale = m_scale; local
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DComplexTextControllerLinux.cpp214 int scale = devicePixelFraction * size * multiplyFor16Dot16 / platformData.emSizeInFontUnits(); local
215 m_item.font->x_scale = scale;
216 m_item.font->y_scale = scale;
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DSkiaUtils.cpp129 static U8CPU InvScaleByte(U8CPU component, uint32_t scale) argument
132 return (component * scale + 0x8000) >> 16;
149 uint32_t scale = (255 << 16) / a; local
152 InvScaleByte(SkGetPackedR32(pm), scale),
153 InvScaleByte(SkGetPackedG32(pm), scale),
154 InvScaleByte(SkGetPackedB32(pm), scale));
212 int scale = 1; local
228 // If we have those, we need to scale.
236 scale = SkScalarCeil(SkScalarDiv(biggestCoord, kMaxCoordinate));
239 m.setScale(SkScalarInvert(SkIntToScalar(scale)), SkScalarInver
[all...]
/external/webkit/Source/WebCore/rendering/svg/
H A DRenderSVGResourceFilter.cpp124 bool RenderSVGResourceFilter::fitsInMaximumImageSize(const FloatSize& size, FloatSize& scale) argument
128 scale.setWidth(scale.width() * kMaxFilterSize / size.width());
132 scale.setHeight(scale.height() * kMaxFilterSize / size.height());
191 // Calculate the scale factor for the use of filterRes.
193 FloatSize scale(1, 1);
195 scale.setWidth(filterElement->filterResX() / absoluteFilterBoundaries.width());
196 scale.setHeight(filterElement->filterResY() / absoluteFilterBoundaries.height());
199 if (scale
[all...]
H A DRenderSVGRoot.cpp246 float scale = svg->currentScale(); local
248 AffineTransform ctm(scale, 0, 0, scale, borderAndPadding.width() + translate.x(), borderAndPadding.height() + translate.y());
249 return ctm * svg->viewBoxToViewTransform(width() / scale, height() / scale);
/external/webkit/Source/WebCore/tests/
H A DTreeManager_test.cpp59 bool drawGL(WebCore::IntRect& viewRect, SkRect& visibleRect, float scale) { argument
99 bool drawGL(WebCore::IntRect& viewRect, SkRect& visibleRect, float scale) { argument
/external/webkit/Tools/WebKitTestRunner/InjectedBundle/
H A DEventSendingController.cpp195 void EventSendingController::scalePageBy(double scale, double x, double y) argument
198 WKBundlePageSetScaleAtOrigin(InjectedBundle::shared().page()->page(), scale, origin);

Completed in 351 milliseconds

1234567891011>>