/third_party/skia/gm/ |
H A D | croppedrects.cpp | 97 canvas->scale(300 / kSrcImageClip.width(), 100 / kSrcImageClip.height());
|
H A D | fontcache.cpp | 100 canvas->scale(10, 10); in drawText()
|
H A D | strokerect.cpp | 137 canvas->scale(10, 1); in DEF_SIMPLE_GM()
|
H A D | rsxtext.cpp | 60 canvas->scale(kScale, kScale);
|
H A D | resizeimagefilter.cpp | 49 canvas->scale(deviceScaleX, deviceScaleY); in draw()
|
H A D | imagefiltersstroked.cpp | 90 canvas->scale(SkScalarInvert(RESIZE_FACTOR_X),
|
H A D | shadertext3.cpp | 98 canvas->scale(2.f, 2.f);
|
/third_party/skia/modules/particles/include/ |
H A D | SkParticleEffect.h | 62 // float scale = 1; // Size, normalized relative to the drawable's native size 78 // float scale; 133 void start(double now, bool looping, SkPoint position, SkVector heading, float scale, 141 1.0f, // scale in start()
|
/third_party/skia/bench/ |
H A D | TileBench.cpp | 87 canvas->scale(SK_ScalarHalf, SK_ScalarHalf);
|
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-pxa2xx.c | 829 unsigned long scale; in quark_x1000_get_clk_div() local 845 scale = fls_long(q1 - 1); in quark_x1000_get_clk_div() 846 if (scale > 9) { in quark_x1000_get_clk_div() 847 q1 >>= scale - 9; in quark_x1000_get_clk_div() 848 mul >>= scale - 9; in quark_x1000_get_clk_div() 856 scale = __ffs(q1); in quark_x1000_get_clk_div() 857 q1 >>= scale; in quark_x1000_get_clk_div() local 858 mul >>= scale; in quark_x1000_get_clk_div() local
|
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/ |
H A D | ti-sn65dsi86.c | 1412 unsigned int scale; in ti_sn_pwm_apply() local 1465 * possible PWM_PRE_DIV is used. Finally the scale is in ti_sn_pwm_apply() 1492 scale = div64_u64(period * pdata->pwm_refclk_freq, (u64)NSEC_PER_SEC * pre_div) - 1; in ti_sn_pwm_apply() 1507 if (backlight > scale) in ti_sn_pwm_apply() 1508 backlight = scale; in ti_sn_pwm_apply() 1516 ti_sn65dsi86_write_u16(pdata, SN_BACKLIGHT_SCALE_REG, scale); in ti_sn_pwm_apply() 1544 u16 scale; in ti_sn_pwm_get_state() local 1551 ret = ti_sn65dsi86_read_u16(pdata, SN_BACKLIGHT_SCALE_REG, &scale); in ti_sn_pwm_get_state() 1569 state->period = DIV_ROUND_UP_ULL((u64)NSEC_PER_SEC * pre_div * (scale + 1), in ti_sn_pwm_get_state()
|
/third_party/ffmpeg/libavcodec/ |
H A D | dca_lbr.c | 369 av_log(s->avctx, AV_LOG_ERROR, "Tonal scale factor chunk too short\n"); in parse_tonal_chunk() 421 // Truncated scale factors remain zero in parse_scale_factors() 425 // Initial scale factor in parse_scale_factors() 437 av_log(s->avctx, AV_LOG_ERROR, "Invalid scale factor distance\n"); in parse_scale_factors() 612 // Flag scale factors for this subband parsed in parse_grid_3() 722 // Third grid scale factors in parse_ts() 947 double scale = (-1.0 / (1 << 17)) * sqrt(1 << (2 - s->limited_range)); in init_sample_rate() local 953 ret = ff_mdct_init(&s->imdct, s->freq_range + 6, 1, scale); in init_sample_rate() 961 scale = 0.85; in init_sample_rate() 963 scale in init_sample_rate() [all...] |
H A D | proresenc_kostya.c | 409 int blocks_per_slice, int scale) in encode_dcs() 414 prev_dc = (blocks[0] - 0x4000) / scale; in encode_dcs() 421 dc = (blocks[0] - 0x4000) / scale; in encode_dcs() 650 int scale) in estimate_dcs() 656 prev_dc = (blocks[0] - 0x4000) / scale; in estimate_dcs() 661 *error += FFABS(blocks[0] - 0x4000) % scale; in estimate_dcs() 664 dc = (blocks[0] - 0x4000) / scale; in estimate_dcs() 665 *error += FFABS(blocks[0] - 0x4000) % scale; in estimate_dcs() 408 encode_dcs(PutBitContext *pb, int16_t *blocks, int blocks_per_slice, int scale) encode_dcs() argument 649 estimate_dcs(int *error, int16_t *blocks, int blocks_per_slice, int scale) estimate_dcs() argument
|
H A D | speexdec.c | 665 static void signal_mul(const float *x, float *y, float scale, int len) in signal_mul() argument 668 y[i] = scale * x[i]; in signal_mul() 1114 /* If the last packet was lost, re-scale the excitation to obtain the same in nb_decode() 1319 float gc, scale; in sb_decode() local 1327 scale = (gc * el) / filter_ratio; in sb_decode() 1332 signal_mul(exc, exc, scale, st->subframe_size); in sb_decode() 1338 signal_mul(innov2, innov2, 0.4f * scale, st->subframe_size); in sb_decode() 1540 const float scale = 1.f / 32768.f; in speex_decode_frame() local 1564 s->fdsp->vector_fmul_scalar(dst, dst, scale, frame->nb_samples * frame->ch_layout.nb_channels); in speex_decode_frame()
|
/third_party/astc-encoder/Source/ |
H A D | astcenc_color_quantize.cpp | 728 * @brief Quantize an LDR RGB color using scale encoding. 730 * @param color The input unquantized color endpoint and scale factor. 739 float scale = 1.0f / 257.0f; in quantize_rgbs() local 741 float r = astc::clamp255f(color.lane<0>() * scale); in quantize_rgbs() 742 float g = astc::clamp255f(color.lane<1>() * scale); in quantize_rgbs() 743 float b = astc::clamp255f(color.lane<2>() * scale); in quantize_rgbs() 749 float oldcolorsum = hadd_rgb_s(color) * scale; in quantize_rgbs() 763 * @brief Quantize an LDR RGBA color using scale encoding. 767 * @param color The input unquantized color endpoint and scale factor. 1137 // Recompute the scale valu in quantize_hdr_rgbo() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/ |
H A D | vktProtectedMemYCbCrConversionTests.cpp | 488 const tcu::Vec4 scale (1.0f); in logBoundImages() 491 log << tcu::TestLog::Image("MinBoundImage", "MinBoundImage", minImage.getAccess(), scale, bias); in logBoundImages() 492 log << tcu::TestLog::Image("MaxBoundImage", "MaxBoundImage", maxImage.getAccess(), scale, bias); in logBoundImages() 1111 const tcu::Vec4 scale (1.0f); in generateYCbCrImage() 1114 log << tcu::TestLog::Image("SourceImageR", "SourceImageR", rImage.getAccess(), scale, bias); in generateYCbCrImage() 1115 log << tcu::TestLog::Image("SourceImageG", "SourceImageG", gImage.getAccess(), scale, bias); in generateYCbCrImage() 1116 log << tcu::TestLog::Image("SourceImageB", "SourceImageB", bImage.getAccess(), scale, bias); in generateYCbCrImage() 1117 log << tcu::TestLog::Image("SourceImageA", "SourceImageA", aImage.getAccess(), scale, bias); in generateYCbCrImage()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/ |
H A D | vktProtectedMemYCbCrConversionTests.cpp | 488 const tcu::Vec4 scale (1.0f); in logBoundImages() 491 log << tcu::TestLog::Image("MinBoundImage", "MinBoundImage", minImage.getAccess(), scale, bias); in logBoundImages() 492 log << tcu::TestLog::Image("MaxBoundImage", "MaxBoundImage", maxImage.getAccess(), scale, bias); in logBoundImages() 1111 const tcu::Vec4 scale (1.0f); in generateYCbCrImage() 1114 log << tcu::TestLog::Image("SourceImageR", "SourceImageR", rImage.getAccess(), scale, bias); in generateYCbCrImage() 1115 log << tcu::TestLog::Image("SourceImageG", "SourceImageG", gImage.getAccess(), scale, bias); in generateYCbCrImage() 1116 log << tcu::TestLog::Image("SourceImageB", "SourceImageB", bImage.getAccess(), scale, bias); in generateYCbCrImage() 1117 log << tcu::TestLog::Image("SourceImageA", "SourceImageA", aImage.getAccess(), scale, bias); in generateYCbCrImage()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | BlitGL.cpp | 634 Vector2 scale(sourceArea.width, sourceArea.height); in copySubTexture() 638 scale.x() /= static_cast<float>(sourceSize.width); in copySubTexture() 639 scale.y() /= static_cast<float>(sourceSize.height); in copySubTexture() 645 offset.y() += scale.y(); in copySubTexture() 646 scale.y() = -scale.y(); in copySubTexture() 651 ANGLE_GL_TRY(context, mFunctions->uniform2f(blitProgram->scaleLocation, scale.x(), scale.y())); in copySubTexture()
|
/kernel/linux/linux-5.10/drivers/media/usb/s2255/ |
H A D | s2255drv.c | 20 * -full or half size Grey scale: all 4 channels at once 135 u32 scale; /* output video scale */ member 843 mode.scale = SCALE_4CIFSI; in vidioc_s_fmt_vid_cap() 845 mode.scale = SCALE_4CIFS; in vidioc_s_fmt_vid_cap() 847 mode.scale = SCALE_2CIFS; in vidioc_s_fmt_vid_cap() 850 mode.scale = SCALE_1CIFS; in vidioc_s_fmt_vid_cap() 877 else if (mode.scale != vc->mode.scale) in vidioc_s_fmt_vid_cap() 913 switch (mode->scale) { in get_transfer_size() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/s2255/ |
H A D | s2255drv.c | 20 * -full or half size Grey scale: all 4 channels at once 135 u32 scale; /* output video scale */ member 841 mode.scale = SCALE_4CIFSI; in vidioc_s_fmt_vid_cap() 843 mode.scale = SCALE_4CIFS; in vidioc_s_fmt_vid_cap() 845 mode.scale = SCALE_2CIFS; in vidioc_s_fmt_vid_cap() 848 mode.scale = SCALE_1CIFS; in vidioc_s_fmt_vid_cap() 875 else if (mode.scale != vc->mode.scale) in vidioc_s_fmt_vid_cap() 911 switch (mode->scale) { in get_transfer_size() [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fVertexTextureTests.cpp | 111 static inline float safeCoord (float raw, int scale, float fraction) in safeCoord() argument 113 const float scaleFloat = (float)scale; in safeCoord() 118 static inline tcu::Vector<float, Size> safeCoords (const tcu::Vector<float, Size>& raw, const tcu::Vector<int, Size>& scale, const tcu::Vector<float, Size>& fraction) in safeCoords() argument 122 result[i] = safeCoord(raw[i], scale[i], fraction[i]); in safeCoords() 182 Vec2 scale; member 185 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams() 191 Vec2 scale; member 195 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), bias(bias_), face(face_) {} in TexTypeCoordParams() 330 Vec2 rawCoord = Vec2((float)x / gridSizeFloat, (float)y / gridSizeFloat) * texCoordParams.scale + texCoordParams.bias; in initializeTexCoords() 354 const Vec2 rawFaceCoord = texCoordParams.scale * Vec in initializeTexCoords() [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuTextureUtil.cpp | 468 const float scale = 1.0f / (cRange[1] - cRange[0]); 469 const float bias = -cRange[0] * scale; 473 select(scale, 1.0f, chnMask), 1223 void scale (const PixelBufferAccess& dst, const ConstPixelBufferAccess& src, Sampler::FilterMode filter) 1296 void computePixelScaleBias (const ConstPixelBufferAccess& access, Vec4& scale, Vec4& bias) 1307 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); 1308 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); 1312 scale[c] = 1.0f / (maxVal[c] - minVal[c]); 1313 bias[c] = 0.0f - minVal[c]*scale[ [all...] |
/third_party/node/deps/v8/src/compiler/backend/ia32/ |
H A D | instruction-selector-ia32.cc | 131 Node* index, int scale, Node* base, int32_t displacement, in GenerateMemoryOperandInputs() 148 DCHECK(scale >= 0 && scale <= 3); in GenerateMemoryOperandInputs() 154 mode = kMRnI_modes[scale]; in GenerateMemoryOperandInputs() 158 mode = kMRn_modes[scale]; in GenerateMemoryOperandInputs() 169 DCHECK(scale >= 0 && scale <= 3); in GenerateMemoryOperandInputs() 176 mode = kMnI_modes[scale]; in GenerateMemoryOperandInputs() 180 mode = kMn_modes[scale]; in GenerateMemoryOperandInputs() 191 Node* index, int scale, Nod in GenerateMemoryOperandInputs() 130 GenerateMemoryOperandInputs( Node* index, int scale, Node* base, int32_t displacement, DisplacementMode displacement_mode, InstructionOperand inputs[], size_t* input_count, RegisterMode register_mode = kRegister) GenerateMemoryOperandInputs() argument 190 GenerateMemoryOperandInputs( Node* index, int scale, Node* base, Node* displacement_node, DisplacementMode displacement_mode, InstructionOperand inputs[], size_t* input_count, RegisterMode register_mode = kRegister) GenerateMemoryOperandInputs() argument 976 EmitLea(InstructionSelector* selector, Node* result, Node* index, int scale, Node* base, Node* displacement, DisplacementMode displacement_mode) EmitLea() argument 2156 int scale = 0; VisitWord32AtomicPairLoad() local [all...] |
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/ |
H A D | fpsp.S | 9573 # fp0 = scale(X,Y) # 10166 # Entry point for scale w/ extended denorm. The function does 10269 # - t_ovfl_sc() is provided for scale() which only sets # 11528 # scale_to_zero_src() - scale src exponent to zero # 11529 # scale_to_zero_dst() - scale dst exponent to zero # 11547 # For norms/denorms, scale the exponents such that a multiply # 11551 # and return the EXOP if exceptions are enabled. Else, scale the # 11596 bsr.l scale_to_zero_src # scale src exponent 11597 mov.l %d0,-(%sp) # save scale factor 1 11599 bsr.l scale_to_zero_dst # scale ds [all...] |
/kernel/linux/linux-6.6/arch/m68k/ifpsp060/src/ |
H A D | fpsp.S | 9573 # fp0 = scale(X,Y) # 10166 # Entry point for scale w/ extended denorm. The function does 10269 # - t_ovfl_sc() is provided for scale() which only sets # 11528 # scale_to_zero_src() - scale src exponent to zero # 11529 # scale_to_zero_dst() - scale dst exponent to zero # 11547 # For norms/denorms, scale the exponents such that a multiply # 11551 # and return the EXOP if exceptions are enabled. Else, scale the # 11596 bsr.l scale_to_zero_src # scale src exponent 11597 mov.l %d0,-(%sp) # save scale factor 1 11599 bsr.l scale_to_zero_dst # scale ds [all...] |