/third_party/skia/src/codec/ |
H A D | SkSampledCodec.cpp | 31 // See if libjpeg supports this scale directly in accountForNativeScaling() 50 float scale = get_scale_from_sample_size(supportedSampleSize); in accountForNativeScaling() local 52 // this->codec() will scale to this size. in accountForNativeScaling() 53 preSampledSize = this->codec()->getScaledDimensions(scale); in accountForNativeScaling() 82 // If the native codec does not support the requested scale, scale by sampling. in onGetAndroidPixels() 90 // If the native codec does not support the requested scale, scale by sampling. in onGetAndroidPixels() 144 // At this point, we are only concerned with subsetting. Either no scale was in onGetAndroidPixels() 145 // requested, or the this->codec() is handling the scale in onGetAndroidPixels() [all...] |
/third_party/skia/src/core/ |
H A D | SkScalerCache.cpp | 245 void SkScalerCache::findIntercepts(const SkScalar bounds[2], SkScalar scale, SkScalar xPos, in findIntercepts() argument 248 glyph->ensureIntercepts(bounds, scale, xPos, array, count, &fAlloc); in findIntercepts()
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | Matrix.hpp | 99 static Matrix scale(const Vector &v); 100 static Matrix scale(float x, float y, float z);
|
H A D | TextureStage.cpp | 121 short scale = iround(4095 * value); in setLuminanceScale() local 123 uniforms.luminanceScale4[0] = uniforms.luminanceScale4[1] = uniforms.luminanceScale4[2] = uniforms.luminanceScale4[3] = scale; in setLuminanceScale()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | number_skeletons.h | 344 static bool scale(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 366 bool scale = false; member
|
/third_party/skia/third_party/externals/dawn/src/tests/perf_tests/ |
H A D | DawnPerfTest.cpp | 200 double scale = kCalibrationRunTimeSeconds / mTimer->GetElapsedTime(); in RunTest() local 201 mStepsToRun = static_cast<unsigned int>(static_cast<double>(mNumStepsPerformed) * scale); in RunTest()
|
/third_party/skia/gm/ |
H A D | convexpolyclip.cpp | 132 point.scale(kRadius); 214 canvas->scale(1.f, 1.8f);
|
H A D | addarc.cpp | 125 canvas->scale(20, 20); 175 canvas->scale(20, 20);
|
H A D | ovals.cpp | 288 canvas->scale(1, -1); 289 canvas->scale(1, 0.66f);
|
H A D | trickycubicstrokes.cpp | 125 auto [originalPts, numPts, fillMode, scale] = kTrickyCubics[i]; in draw_test() 131 p[j] *= scale; in draw_test()
|
/third_party/skia/bench/ |
H A D | MatrixBench.cpp | 67 ScaleMatrixBench() : INHERITED("scale") { in ScaleMatrixBench() 160 SkPoint rotation1, scale, rotation2; variable 162 (void) SkDecomposeUpper2x2(fMatrix[i], &rotation1, &scale, &rotation2);
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fFboTestCase.cpp | 127 void FboTestCase::readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias) in readPixels() argument 129 FboTestUtil::readPixels(*getCurrentContext(), dst, x, y, width, height, format, scale, bias); in readPixels() local
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fFboTestCase.cpp | 131 void FboTestCase::readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias) in readPixels() argument 133 FboTestUtil::readPixels(*getCurrentContext(), dst, x, y, width, height, format, scale, bias); in readPixels() local
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | custom_paint_paint_method.cpp | 1232 std::optional<double> scale = CalcTextScale(paragraph_->GetMaxIntrinsicWidth(), maxWidth); in PaintText() local 1240 PaintStrokeTextShadow(width, dx, dy, scale, &slo); in PaintText() 1242 if (scale.has_value()) { in PaintText() 1243 if (!NearZero(scale.value())) { in PaintText() 1244 dx /= scale.value(); in PaintText() 1247 rsCanvas_->Scale(scale.value(), 1.0); in PaintText() 1259 const float width, const double dx, const double dy, const std::optional<double> scale, RSSaveLayerOps* slo) in PaintStrokeTextShadow() 1278 if (scale.has_value()) { in PaintStrokeTextShadow() 1279 if (!NearZero(scale.value())) { in PaintStrokeTextShadow() 1280 finalDx /= scale in PaintStrokeTextShadow() 1258 PaintStrokeTextShadow( const float width, const double dx, const double dy, const std::optional<double> scale, RSSaveLayerOps* slo) PaintStrokeTextShadow() argument 1846 std::optional<double> scale; CalcTextScale() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/ |
H A D | drag_event.cpp | 852 // linear decrease for menu scale from 100% to 95% within drag damping range in HandleDragDampingMove() 989 const RefPtr<FrameNode>& imageNode, const OffsetF& frameOffset, float scale) in UpdatePreviewPositionAndScale() 994 if (GreatNotEqual(scale, 0.0f)) { in UpdatePreviewPositionAndScale() 995 imageContext->UpdateTransformScale({ scale, scale }); in UpdatePreviewPositionAndScale() 1363 auto ratio = blurStyleOp->scale; in BrulStyleToEffection() 1720 float scale = 1.0f; in HideTextAnimation() local 1722 scale = gestureHub->GetPixelMapScale(pixelMap->GetHeight(), pixelMap->GetWidth()); in HideTextAnimation() 1729 [context, startDrag, globalX, globalY, frameWidth, frameHeight, scale]() { in HideTextAnimation() 1733 context->UpdateTransformScale(VectorF(scale, scal in HideTextAnimation() 988 UpdatePreviewPositionAndScale( const RefPtr<FrameNode>& imageNode, const OffsetF& frameOffset, float scale) UpdatePreviewPositionAndScale() argument 2272 PrepareShadowParametersForDragData(const RefPtr<FrameNode>& frameNode, std::unique_ptr<JsonValue>& arkExtraInfoJson, float scale) PrepareShadowParametersForDragData() argument 2495 float scale = windowScale * PIXELMAP_DRAG_SCALE_MULTIPLE; PrepareFinalPixelMapForDragThroughTouch() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/ |
H A D | web_pattern.cpp | 928 TAG_LOGD(AceLogTag::ACE_WEB, "InitPinchEvent actionUpdateTask event scale:%{public}f: ", event.GetScale()); in InitPinchEvent() 967 bool WebPattern::ZoomOutAndIn(const double& curScale, double& scale) in ZoomOutAndIn() argument 975 // start page scale > 1 in ZoomOutAndIn() 977 scale = curScale * startPageScale_; in ZoomOutAndIn() 979 TAG_LOGD(AceLogTag::ACE_WEB, "ZoomOutAndIn curScale * pageScale_= %{public}f", scale); in ZoomOutAndIn() 982 scale = pageScale_ + (curScale - startPinchScale_); in ZoomOutAndIn() 985 // The scale is from 0.4 to 0.5, the scale conversion should be from 1.0 to 1.1 in ZoomOutAndIn() 989 // must be page scale form 0.4 to 1 in ZoomOutAndIn() 990 scale in ZoomOutAndIn() 1043 double scale = 0.0; HandleScaleGestureChange() local [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | nct6683.c | 477 int scale = 16; in in_from_reg() local 481 scale <<= 1; in in_from_reg() 482 return reg * scale; in in_from_reg() 487 int scale = 16; in in_to_reg() local 491 scale <<= 1; in in_to_reg() 493 return clamp_val(DIV_ROUND_CLOSEST(val, scale), 0, 127); in in_to_reg()
|
H A D | lm87.c | 108 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192) 109 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ 110 (val) >= (scale) * 255 / 192 ? 255 : \ 111 ((val) * 192 + (scale) / 2) / (scale))
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
H A D | sca3000.c | 176 * @scale: scale * 10^-6 198 unsigned int scale; member 229 .scale = 7357, 240 .scale = 9810, 250 .scale = 19620, 263 .scale = 61313, 753 *val2 = st->info->scale; in sca3000_read_raw()
|
/kernel/linux/linux-5.10/drivers/iio/imu/ |
H A D | adis16480.c | 326 * product of the external clock frequency and the scale factor in the in adis16480_set_freq() 367 * product of the external clock frequency and the scale factor in the in adis16480_get_freq() 474 const struct iio_chan_spec *chan, int scale) in adis16480_set_calibscale() 479 if (scale < -0x8000 || scale >= 0x8000) in adis16480_set_calibscale() 482 return adis_write_reg_16(&st->adis, reg, scale); in adis16480_set_calibscale() 486 const struct iio_chan_spec *chan, int *scale) in adis16480_get_calibscale() 497 *scale = sign_extend32(val16, 15); in adis16480_get_calibscale() 633 * max scale is 1310 mbar in adis16480_read_raw() 473 adis16480_set_calibscale(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int scale) adis16480_set_calibscale() argument 485 adis16480_get_calibscale(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int *scale) adis16480_get_calibscale() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sti/ |
H A D | sti_hqvdp.c | 657 * @scale: scaling/zoom factor 665 static void sti_hqvdp_update_hvsrc(enum sti_hvsrc_orient orient, int scale, in sti_hqvdp_update_hvsrc() argument 672 if (scale < SCALE_MAX_FOR_LEG_LUT_F) { in sti_hqvdp_update_hvsrc() 677 } else if (scale < SCALE_MAX_FOR_LEG_LUT_E) { in sti_hqvdp_update_hvsrc() 682 } else if (scale < SCALE_MAX_FOR_LEG_LUT_D) { in sti_hqvdp_update_hvsrc() 687 } else if (scale < SCALE_MAX_FOR_LEG_LUT_C) { in sti_hqvdp_update_hvsrc() 692 } else if (scale == SCALE_MAX_FOR_LEG_LUT_C) { in sti_hqvdp_update_hvsrc() 730 * True if the HW can scale.
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
H A D | vc4_plane.c | 417 u32 scale, recip; in vc4_write_tpz() local 419 scale = (1 << 16) * src / dst; in vc4_write_tpz() 422 * as (1<<32)/scale, ~0 is close enough. in vc4_write_tpz() 424 recip = ~0 / scale; in vc4_write_tpz() 427 VC4_SET_FIELD(scale, SCALER_TPZ0_SCALE) | in vc4_write_tpz() 435 u32 scale = (1 << 16) * src / dst; in vc4_write_ppf() local 439 VC4_SET_FIELD(scale, SCALER_PPF_SCALE) | in vc4_write_ppf()
|
/kernel/linux/linux-5.10/drivers/message/fusion/ |
H A D | mptspi.c | 1360 int scale; in mptspi_probe() local 1469 scale = ioc->req_sz/ioc->SGE_size; in mptspi_probe() 1471 numSGE = (scale - 1) * in mptspi_probe() 1472 (ioc->facts.MaxChainDepth-1) + scale + in mptspi_probe() 1475 numSGE = 1 + (scale - 1) * in mptspi_probe() 1476 (ioc->facts.MaxChainDepth-1) + scale + in mptspi_probe()
|
H A D | mptfc.c | 1175 int scale; in mptfc_probe() local 1265 scale = ioc->req_sz/ioc->SGE_size; in mptfc_probe() 1267 numSGE = (scale - 1) * in mptfc_probe() 1268 (ioc->facts.MaxChainDepth-1) + scale + in mptfc_probe() 1271 numSGE = 1 + (scale - 1) * in mptfc_probe() 1272 (ioc->facts.MaxChainDepth-1) + scale + in mptfc_probe()
|
/kernel/linux/linux-6.6/drivers/message/fusion/ |
H A D | mptspi.c | 1360 int scale; in mptspi_probe() local 1469 scale = ioc->req_sz/ioc->SGE_size; in mptspi_probe() 1471 numSGE = (scale - 1) * in mptspi_probe() 1472 (ioc->facts.MaxChainDepth-1) + scale + in mptspi_probe() 1475 numSGE = 1 + (scale - 1) * in mptspi_probe() 1476 (ioc->facts.MaxChainDepth-1) + scale + in mptspi_probe()
|