/external/chromium_org/ui/gfx/ |
transform_util.h | 15 // Returns a scale transform at |anchor| point. 16 UI_EXPORT Transform GetScaleTransform(const Point& anchor, float scale); 26 double scale[3]; member in struct:gfx::DecomposedTransform 43 // Decomposes this transform into its translation, scale, skew, perspective, 49 // Composes a transform from the given translation, scale, skew, prespective,
|
box_f.h | 41 // Scales all three axes by the given scale. 42 void Scale(float scale) { 43 Scale(scale, scale, scale); 46 // Scales each axis by the corresponding given scale. 47 void Scale(float x_scale, float y_scale, float z_scale) { 48 origin_.Scale(x_scale, y_scale, z_scale) [all...] |
/external/skia/src/effects/ |
SkDiscretePathEffect.cpp | 15 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) { 18 normal.setLength(scale); 35 SkScalar scale = fPerterb; local 55 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale)); 61 Perterb(&p, v, SkScalarMul(rand.nextSScalar1(), scale));
|
SkTransparentShader.cpp | 43 unsigned scale = SkAlpha255To256(fAlpha); local 47 if (scale == 256) { 55 span[i] = SkAlphaMulQ(src[i], scale); 61 if (scale == 256) { 74 SkAlphaMul(r, scale), 75 SkAlphaMul(g, scale), 76 SkAlphaMul(b, scale)); 86 if (scale == 256) { 92 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
omxVCM4P10_TransformDequantChromaDCFromPair_s.s | 55 Scale RN 2 104 LDRSB Scale, [pQPModTable, QP] ;// Scale = pQPModTable[QP] 109 LSL Scale, Scale, Shift ;// Scale = Scale << Shift 111 SMULTB Temp2, c0w0, Scale ;// Temp2 = T(c0w0) * Scale 112 SMULTB Temp4, c1w0, Scale ;// Temp4 = T(c1w0) * Scal [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
VignetteFilter.java | 33 @GenerateFieldPort(name = "scale", hasDefault = true) 54 "uniform vec2 scale;\n" + 59 " float dist = length(coord * scale);\n" + 97 float scale[] = new float[2]; local 99 scale[0] = 1f; 100 scale[1] = ((float) mHeight) / mWidth; 102 scale[0] = ((float) mWidth) / mHeight; 103 scale[1] = 1f; 105 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f [all...] |
FisheyeFilter.java | 46 @GenerateFieldPort(name = "scale", hasDefault = true) 61 "uniform vec2 scale;\n" + 69 " float dist = length(coord * scale);\n" + 151 float scale[] = new float[2]; local 153 scale[0] = 1f; 154 scale[1] = ((float) mHeight) / mWidth; 156 scale[0] = ((float) mWidth) / mHeight; 157 scale[1] = 1f; 160 float bound2 = 0.25f * (scale[0] * scale[0] + scale[1] * scale[1]) [all...] |
DocumentaryFilter.java | 52 "uniform vec2 scale;\n" + 77 " float dist = length(coord * scale);\n" + 147 float scale[] = new float[2]; local 149 scale[0] = 1f; 150 scale[1] = ((float) mHeight) / mWidth; 152 scale[0] = ((float) mWidth) / mHeight; 153 scale[1] = 1f; 155 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f [all...] |
/libcore/harmony-tests/src/test/java/tests/api/java/math/ |
BigDecimalTest.java | 42 && big.scale() == 0); 52 && big.scale() == 5); 74 && big.scale() == 0); 87 big.scale() == 0); 97 && big.scale() == 14); 101 && big.scale() == 0); 105 && big.scale() == 0); 190 && sum.scale() == 3); 223 && divd3.scale() == divd1.scale()); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
RenderSVGResourceFilter.cpp | 111 bool RenderSVGResourceFilter::fitsInMaximumImageSize(const FloatSize& size, FloatSize& scale) 115 scale.setWidth(scale.width() * kMaxFilterSize / size.width()); 119 scale.setHeight(scale.height() * kMaxFilterSize / size.height()); 171 // Calculate the scale factor for the use of filterRes. 173 FloatSize scale(1, 1); 175 scale.setWidth(filterElement->filterResXCurrentValue() / absoluteFilterBoundaries.width()); 176 scale.setHeight(filterElement->filterResYCurrentValue() / absoluteFilterBoundaries.height()); 179 if (scale.isEmpty() [all...] |
/external/chromium-trace/trace-viewer/src/ui/ |
dom_helpers_test.js | 52 scale: 314 55 target, 'scale', 66 assertEquals(0.25, target.scale); 72 scale: 314 75 target, 'scale', 86 assertEquals(0.375, target.scale); 92 scale: 314 95 target, 'scale', 108 assertEquals(0.75, target.scale);
|
quad_view_viewport.js | 32 var scale; 34 scale = opt_quad_stack_scale; 36 scale = 0.125; 38 scale = scale * this.devicePixelRatio; 40 this.worldPixelsPerDevicePixel_ = scale; 51 // this 'scale' value. 52 set scale(scale) { 53 this.worldPixelsPerDevicePixel_ = scale; [all...] |
/external/chromium_org/ash/display/ |
event_transformation_handler.cc | 43 // Get the device scale factor and stack it on the final scale factor. 47 float scale = scale_at_target; local 54 scale *= kBoostForNonIntegrated; 56 event->Scale(scale); 60 // This is to scale the TouchEvent's radius when the touch display is in 63 // at a lower resolution. We scale down the radius using the ratio defined as 83 // area ratio of that touchscreen to scale the event's radius.
|
/external/chromium_org/third_party/WebKit/ManualTests/ |
svg-image-resampling-with-scale.html | 10 var scale = 0.5; 17 scale += 0.001; 18 image1.setAttribute('transform', 'scale(' + scale + ') translate(-50 -50)'); 19 image2.setAttribute('transform', 'rotate(360) scale(' + scale + ') translate(-50 -50)'); 20 if (scale > 1.3) 27 Test for crbug.com/151538. This test passes if both Chromium logos smoothly scale up and look identical as they scale.<br/>
|
/external/chromium_org/third_party/skia/src/effects/ |
SkTransparentShader.cpp | 43 unsigned scale = SkAlpha255To256(fAlpha); local 47 if (scale == 256) { 55 span[i] = SkAlphaMulQ(src[i], scale); 61 if (scale == 256) { 74 SkAlphaMul(r, scale), 75 SkAlphaMul(g, scale), 76 SkAlphaMul(b, scale)); 86 if (scale == 256) { 92 span[i] = SkPackARGB32(SkAlphaMul(src[i], scale), 0, 0, 0);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
IconFactory.java | 31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set 38 * @param scale if true, stretch sourceImage to fit the icon dimensions. 42 boolean scale) { 56 drawIcon(icon, sourceImage, scale); 61 * Draws an icon in the destination bitmap. If scale is set the source image 67 * @param scale if true, stretch sourceImage to fit the destination. 69 public static void drawIcon(Bitmap dest, Bitmap sourceImage, boolean scale) { 87 if (scale) { 88 // scale image to fit in icon (stretches if aspect isn't the same)
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/skia/ |
SkiaUtils.cpp | 103 static U8CPU InvScaleByte(U8CPU component, uint32_t scale) 106 return (component * scale + 0x8000) >> 16; 123 uint32_t scale = (255 << 16) / a; local 126 InvScaleByte(SkGetPackedR32(pm), scale), 127 InvScaleByte(SkGetPackedG32(pm), scale), 128 InvScaleByte(SkGetPackedB32(pm), scale)); 155 // Scale the path to a large size before hit testing for two reasons: 156 // 1) Skia has trouble with coordinates close to the max signed 16-bit values, so we scale larger paths down. 158 // 2) Skia does not support analytic hit testing, so we scale paths up to do raster hit testing with subpixel accuracy. 165 SkScalar scale = SkScalarDiv(kMaxCoordinate, biggestCoord) local [all...] |
/external/chromium_org/tools/perf/page_sets/tough_animation_cases/ |
keyframed_animations.html | 18 0% { -webkit-transform: scale(1); } 19 50% { -webkit-transform: scale(3); } 20 100% { -webkit-transform: scale(1); } 30 0% { -webkit-transform: translateX(0px) scale(8); opacity(1); } 31 50% { -webkit-transform: translateX(100px) scale(0); opacity(0); } 32 100% { -webkit-transform: translateX(0px) scale(8); opacity(1); } 42 0% { -webkit-transform: scale(1); opacity(1); } 43 50% { -webkit-transform: scale(13); opacity(0); } 44 100% { -webkit-transform: scale(1); opacity(1); } 66 0% { -webkit-transform: scale(1) rotate3d(0, 1, 0, 0deg); [all...] |
/external/skia/gm/ |
bitmapfilters.cpp | 63 const int scale = 32; local 67 canvas->drawText(name, strlen(name), x, SkIntToScalar(bm.height())*scale*5/8, 71 canvas->scale(SkIntToScalar(scale), SkIntToScalar(scale)); 77 return x * scale / 3;
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetUtils.java | 61 float scale; local 63 scale = Math.max((float) sStackPhotoWidth / w, 66 scale = Math.max((float) sStackPhotoWidth / h, 75 canvas.scale(scale, scale);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/ |
StatusPanel.java | 37 import org.eclipse.swt.widgets.Scale; 180 mScaleControl.scale.setMinimum(SCALE_MIN); 181 mScaleControl.scale.setMaximum(SCALE_MAX); 182 mScaleControl.scale.setSelection(2); 183 mScaleControl.scale.addSelectionListener(new SelectionAdapter() { 188 Scale scale = (Scale) event.widget; 189 mListener.scaleChanged(scale.getSelection()); 199 mZoomControl.scale.setMinimum(ZOOM_MIN) 308 Scale scale; field in class:StatusPanel.ZoomControl [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
Bone.java | 192 * Returns the local scale of the bone, relative to the parent bone. 194 * @return The local scale of the bone, relative to the parent bone. 219 * Returns the scale of the bone in model space. 221 * @return The scale of the bone in model space. 252 * Returns the inverse world bind pose scale. 257 * @return the inverse world bind pose scale. 288 * Returns the world bind pose scale. 293 * @return the world bind pose scale. 330 //scale 331 //For scale parent scale is not taken into account 420 Vector3f scale = worldScale.mult(worldBindInverseScale, tmp3); local [all...] |
/external/chromium_org/cc/debug/ |
debug_colors.cc | 11 static float Scale(float width, const LayerTreeImpl* tree_impl) { 22 return Scale(2, tree_impl); 30 return Scale(2, tree_impl); 38 return Scale(2, tree_impl); 46 return Scale(20, tree_impl); 54 return Scale(2, tree_impl); 62 return Scale(2, tree_impl); 70 return Scale(2, tree_impl); 80 return Scale(1, tree_impl); 88 return Scale(2, tree_impl) [all...] |
/external/chromium_org/ui/base/win/ |
dpi.cc | 33 // Gets the device scale factor. If support is enabled, this will return the 34 // best available scale based on the screen's pixel density. This can be 35 // affected (overridden) by --force-device-scale-factor=x 38 float scale = gfx::Display::HasForceDeviceScaleFactor() ? local 40 // Quantize to nearest supported scale factor. 41 scale = ui::GetScaleFactorScale(ui::GetScaleFactorFromScale(scale)); 42 return scale; 147 static double scale = -1.0; local 148 if (scale == -1.0) [all...] |
/external/aac/libAACdec/src/ |
ldfiltbank.cpp | 104 int i, scale; local 106 /* scale for FIXP_DBL -> INT_PCM conversion. */ 107 scale = (DFRACT_BITS - SAMPLE_BITS) - LDFB_HEADROOM; 121 FDK_ASSERT( (-WTS1-1 + scale) >= 0); 122 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp, -WTS1-1 + scale, SAMPLE_BITS); 124 FDK_ASSERT( (WTS1+1 - scale) >= 0); 125 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp, WTS1+1 - scale, SAMPLE_BITS); 145 FDK_ASSERT( (-WTS0-1 + scale) >= 0); 146 output[(i-N/4)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp0, -WTS0-1 + scale, SAMPLE_BITS); 147 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp1, -WTS1-1 + scale, SAMPLE_BITS) 176 int scale = mdctData_e + MDCT_OUT_HEADROOM - LDFB_HEADROOM; \/* The LDFB_HEADROOM is compensated inside multE2_DinvF_fdk() below *\/ local [all...] |