/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
H A D | vktTextureCompressedFormatTests.cpp | 198 static void computeScaleAndBias (const tcu::ConstPixelBufferAccess& reference, const tcu::ConstPixelBufferAccess& result, tcu::Vec4& scale, tcu::Vec4& bias) in computeScaleAndBias() argument 234 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); in computeScaleAndBias() 235 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); in computeScaleAndBias() 239 scale[c] = 1.0f / (maxVal[c] - minVal[c]); in computeScaleAndBias() 240 bias[c] = 0.0f - minVal[c]*scale[c]; in computeScaleAndBias()
|
/third_party/skia/src/core/ |
H A D | SkMipmap.cpp | 724 // Use the smallest scale to match the GPU impl. in ComputeLevel() 725 const SkScalar scale = std::min(scaleSize.width(), scaleSize.height()); in ComputeLevel() local 727 // Ideally we'd pick the smaller scale, to match Ganesh. But ignoring one of the in ComputeLevel() 730 const SkScalar scale = SkScalarSqrt(scaleSize.width() * scaleSize.height()); in ComputeLevel() local 733 if (scale >= SK_Scalar1 || scale <= 0 || !SkScalarIsFinite(scale)) { in ComputeLevel() 737 SkScalar L = -SkScalarLog2(scale); in ComputeLevel()
|
H A D | SkStrikeCache.h | 69 void findIntercepts(const SkScalar bounds[2], SkScalar scale, SkScalar xPos, in findIntercepts() argument 71 fScalerCache.findIntercepts(bounds, scale, xPos, glyph, array, count); in findIntercepts()
|
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
H A D | numberformatter.h | 929 * Note: In ICU4J, this functionality is accomplished via the scale of the BigDecimal rounding increment. 1524 Scale scale; // = Scale(); (benign value) member 1553 symbols.copyErrorTo(status) || scale.copyErrorTo(status) || usage.copyErrorTo(status) || in copyErrorTo() 2131 * Sets a scale (multiplier) to be used to scale the number by an arbitrary amount before formatting. 2143 * NumberFormatter::with().scale(Scale::powerOfTen(2)) 2149 * @param scale 2150 * The scale to apply when rendering numbers. 2154 Derived scale(const Scale &scale) cons [all...] |
/third_party/skia/tests/ |
H A D | CanvasTest.cpp | 256 c->scale(SkIntToScalar(1), SkIntToScalar(2)); 337 testCanvas->scale(SkIntToScalar(2), SkIntToScalar(1)); 367 c->scale(SkIntToScalar(3), SkIntToScalar(3)); 384 c->scale(SkIntToScalar(3), SkIntToScalar(3)); 478 canvas.scale(0.5f, 0.75f); in DEF_TEST() 485 filterCanvas.scale(0.75f, 0.5f); in DEF_TEST()
|
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftcalc.c | 772 * we also check that no value becomes zero if we have to scale. in FT_BASE_DEF() 792 FT_Fixed scale = FT_DivFix( maxval, 23170 ); in FT_BASE_DEF() local 795 if ( !FT_DivFix( nonzero_minval, scale ) ) in FT_BASE_DEF() 798 m.xx = FT_DivFix( matrix->xx, scale ); in FT_BASE_DEF() 799 m.xy = FT_DivFix( matrix->xy, scale ); in FT_BASE_DEF() 800 m.yx = FT_DivFix( matrix->yx, scale ); in FT_BASE_DEF() 801 m.yy = FT_DivFix( matrix->yy, scale ); in FT_BASE_DEF()
|
/third_party/skia/third_party/externals/freetype/src/truetype/ |
H A D | ttobjs.c | 930 tt_metrics->scale = 0; in FT_LOCAL_DEF() 996 FT_Fixed scale = size->ttmetrics.scale >> 6; in FT_LOCAL_DEF() local 1004 size->cvt[i] = FT_MulFix( face->cvt[i], scale ); in FT_LOCAL_DEF() 1423 size->ttmetrics.scale = size_metrics->x_scale; in FT_LOCAL_DEF() 1431 size->ttmetrics.scale = size_metrics->y_scale; in FT_LOCAL_DEF()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | ScaledNumber.h | 11 // another represents a scale. The functions are helpers and live in the 35 /// Maximum scale; same as APFloat for easy debug printing. 38 /// Maximum scale; same as APFloat for easy debug printing. 239 /// Compare two 64-bit numbers with different scales. Given that the scale of 260 // Check for the scale. Use getLgFloor to be sure that the scale difference in compare() 282 /// As a convenience, returns the matching scale. If the output value of one 283 /// number is zero, returns the scale of the other. If both are zero, which 284 /// scale is returned is unspecified. 338 assert(LScale < INT16_MAX && "scale to in getSum() 659 int64_t scale(int64_t N) const { scale() function in llvm::ScaledNumber 770 uint64_t ScaledNumber<DigitsT>::scale(uint64_t N) const { scale() function in llvm::ScaledNumber [all...] |
/third_party/vk-gl-cts/modules/gles3/performance/ |
H A D | es3pShaderOptimizationTests.cpp | 364 float scale = 0.0f; in generateProgramData() local 366 scale += 3.2f*(float)i + 4.6f; in generateProgramData() 367 scale = 1.0f / scale; in generateProgramData() 377 " value *= " + toString(scale) + ";\n" in generateProgramData() 386 " value *= " + toString(scale) + ";\n"; in generateProgramData()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktTextureCompressedFormatTests.cpp | 198 static void computeScaleAndBias (const tcu::ConstPixelBufferAccess& reference, const tcu::ConstPixelBufferAccess& result, tcu::Vec4& scale, tcu::Vec4& bias) in computeScaleAndBias() argument 234 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); in computeScaleAndBias() 235 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); in computeScaleAndBias() 239 scale[c] = 1.0f / (maxVal[c] - minVal[c]); in computeScaleAndBias() 240 bias[c] = 0.0f - minVal[c]*scale[c]; in computeScaleAndBias()
|
/third_party/vk-gl-cts/modules/gles2/performance/ |
H A D | es2pShaderOptimizationTests.cpp | 361 float scale = 0.0f; in generateProgramData() local 363 scale += 3.2f*(float)i + 4.6f; in generateProgramData() 364 scale = 1.0f / scale; in generateProgramData() 374 " value *= " + toString(scale) + ";\n" in generateProgramData() 383 " value *= " + toString(scale) + ";\n"; in generateProgramData()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_uni_render_composer_adapter.cpp | 391 // If the scaling mode is SCALING_MODE_SCALE_TO_WINDOW, the scale should use smaller one. in GetComposerInfoSrcRect() 397 float scale = std::min(xScale, yScale); in GetComposerInfoSrcRect() local 398 info.srcRect.x = info.srcRect.x * scale; in GetComposerInfoSrcRect() 399 info.srcRect.y = info.srcRect.y * scale; in GetComposerInfoSrcRect() 400 if (ROSEN_EQ(scale, 0.f)) { in GetComposerInfoSrcRect() 404 info.srcRect.w = (bufferWidth / scale - (boundsWidth - info.srcRect.w)) * scale; in GetComposerInfoSrcRect() 405 info.srcRect.h = (bufferHeight / scale - (boundsHeight - info.srcRect.h)) * scale; in GetComposerInfoSrcRect() 467 // If the scaling mode is SCALING_MODE_SCALE_TO_WINDOW, the scale shoul in GetComposerInfoSrcRect() 473 float scale = std::min(xScale, yScale); GetComposerInfoSrcRect() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | render_list_item.h | 46 void ShowFocusAnimation(bool focus, const Rect& listRect, double scale = TV_ITEM_SCALE); 47 void UpdateItemFocusRect(double scale);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/ |
H A D | svg_fit_convertor.cpp | 88 auto scale = std::min(layoutSize.Width() / svgSize.Width(), layoutSize.Height() / svgSize.Height()); 89 AdjustContentFit(canvas, layoutSize, svgSize, std::min(scale, SCALE_BASE), Alignment::CENTER);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | select_overlay_content_modifier.h | 194 void SetScale(const VectorF& scale) in SetScale() argument 196 scale_ = scale; in SetScale()
|
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | gesture_event.h | 63 void SetScale(double scale) in SetScale() argument 65 scale_ = scale; in SetScale()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | pixel_yuv_ext_test.cpp | 48 pixelYuvExt.scale(xAxis, yAxis); in HWTEST_F() 68 pixelYuvExt.scale(xAxis, yAxis); in HWTEST_F()
|
/foundation/multimedia/image_framework/frameworks/kits/cj/src/ |
H A D | pixel_map_impl.cpp | 162 real_->scale(xAxis, yAxis); in Scale() 171 real_->scale(xAxis, yAxis, option); in Scale()
|
/third_party/skia/samplecode/ |
H A D | SampleCusp.cpp | 53 // Scale the animation counter to a value that oscillates from -scale to +scale. 54 static SkScalar linearToLoop(int speed, SkScalar phase, SkScalar scale) { in linearToLoop() argument 68 return loop * scale; in linearToLoop()
|
/third_party/skia/gm/ |
H A D | textblob.cpp | 40 SkScalar scale; member 150 font.setSize(kFontSize * cfg->scale); in makeBlob()
|
H A D | overstroke.cpp | 95 tan.scale(radius); in ribs_path() 121 // canvas->scale(8, 8); in draw_small_quad() 249 canvas->scale(0.2f, 0.2f); in DEF_SIMPLE_GM()
|
H A D | mandoline.cpp | 172 canvas->scale(100, 81); 185 canvas->scale(75, 75);
|
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/ |
H A D | Canvas.java | 70 public void scale(float sx, float sy, float sz) { in scale() method in Canvas 74 public void scale(float sx, float sy) { in scale() method in Canvas
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuTextureUtil.hpp | 131 void scale (const PixelBufferAccess& dst, const ConstPixelBufferAccess& src, Sampler::FilterMode filter); 134 void computePixelScaleBias (const ConstPixelBufferAccess& access, Vec4& scale, Vec4& bias);
|
/third_party/ffmpeg/libavcodec/ |
H A D | vc1_block.c | 180 * @brief Get macroblock-level quantizer scale 343 int a, b, c, wrap, pred, scale; in vc1_i_pred_dc() local 353 if (n < 4) scale = s->y_dc_scale; in vc1_i_pred_dc() 354 else scale = s->c_dc_scale; in vc1_i_pred_dc() 369 b = a = dcpred[scale]; in vc1_i_pred_dc() 371 b = c = dcpred[scale]; in vc1_i_pred_dc() 415 /* scale predictors if needed */ in ff_vc1_pred_dc() 588 int dcdiff, scale; in vc1_decode_i_block() local 614 scale = s->y_dc_scale; in vc1_decode_i_block() 616 scale in vc1_decode_i_block() 729 int scale; vc1_decode_i_block_adv() local 921 int scale; vc1_decode_intra_block() local 1124 int scale, off, idx, last, skip, value; vc1_decode_p_block() local [all...] |