/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftlcdfil.c | 34 /* add padding according to filter weights */ 79 FT_LcdFiveTapFilter weights ) in ft_lcd_filter_fir() 99 /* the values in `weights' can exceed 0xFF */ in ft_lcd_filter_fir() 108 fir[2] = weights[2] * val; in ft_lcd_filter_fir() 109 fir[3] = weights[3] * val; in ft_lcd_filter_fir() 110 fir[4] = weights[4] * val; in ft_lcd_filter_fir() 113 fir[1] = fir[2] + weights[1] * val; in ft_lcd_filter_fir() 114 fir[2] = fir[3] + weights[2] * val; in ft_lcd_filter_fir() 115 fir[3] = fir[4] + weights[3] * val; in ft_lcd_filter_fir() 116 fir[4] = weights[ in ft_lcd_filter_fir() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
H A D | discrete_distribution_test.cc | 157 std::vector<double> weights(kBuckets, 0); in TEST() 158 std::iota(std::begin(weights), std::end(weights), 1); in TEST() 159 absl::discrete_distribution<int> dist(std::begin(weights), std::end(weights)); in TEST() 172 // Scale weights. in TEST() 174 for (double x : weights) { in TEST() 177 for (double& x : weights) { in TEST() 183 std::begin(weights), std::end(weights)); in TEST() [all...] |
H A D | discrete_distribution.h | 68 explicit param_type(std::initializer_list<double> weights) : p_(weights) { in param_type() argument 119 explicit discrete_distribution(std::initializer_list<double> weights) in discrete_distribution() argument 120 : param_(weights) {} in discrete_distribution() 172 // Using the vector `*probabilities`, whose values are the weights or
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_atadenoise.c | 60 float weights[4][SIZE]; member 145 int thra, int thrb, const float *weights) \ 167 sum += srcjx * weights[j]; \ 168 wsum += weights[j]; \ 177 sum += srcix * weights[i]; \ 178 wsum += weights[i]; \ 193 const float *weights) \ 215 sum += srcjx * weights[j]; \ 216 wsum += weights[j]; \ 227 sum += srcix * weights[ 346 const float *weights = s->weights[p]; filter_slice() local [all...] |
H A D | af_amix.c | 166 char *weights_str; /**< string for custom weights for every input */ 175 float *weights; /**< custom weights for every input */ member 176 float weight_sum; /**< sum of custom weights for every input */ 197 { "weights", "Set weight for each input.", 220 weight_sum += FFABS(s->weights[i]); in calculate_scales() 224 if (s->scale_norm[i] > weight_sum / FFABS(s->weights[i])) { in calculate_scales() 225 s->scale_norm[i] -= ((s->weight_sum / FFABS(s->weights[i])) / s->nb_inputs) * in calculate_scales() 227 s->scale_norm[i] = FFMAX(s->scale_norm[i], weight_sum / FFABS(s->weights[i])); in calculate_scales() 235 s->input_scale[i] = FFABS(s->weights[ in calculate_scales() [all...] |
H A D | vf_mix.c | 42 float *weights; member 91 if (av_sscanf(arg, "%f", &s->weights[i]) != 1) { in parse_weights() 92 av_log(ctx, AV_LOG_ERROR, "Invalid syntax for weights[%d].\n", i); in parse_weights() 95 s->wfactor += s->weights[i]; in parse_weights() 100 s->weights[i] = s->weights[last]; in parse_weights() 101 s->wfactor += s->weights[i]; in parse_weights() 123 s->weights = av_calloc(s->nb_inputs, sizeof(*s->weights)); in init() 124 if (!s->weights) in init() 200 const float *weights = s->weights; mix_frames() local [all...] |
/third_party/skia/third_party/externals/freetype/src/type1/ |
H A D | t1load.c | 241 * Given a vector of weights, one for each design, figure out the 242 * normalized axis coordinates which gave rise to those weights. 245 mm_weights_unmap( FT_Fixed* weights, in mm_weights_unmap() argument 252 axiscoords[0] = weights[1]; in mm_weights_unmap() 256 axiscoords[0] = weights[3] + weights[1]; in mm_weights_unmap() 257 axiscoords[1] = weights[3] + weights[2]; in mm_weights_unmap() 262 axiscoords[0] = weights[7] + weights[ in mm_weights_unmap() [all...] |
/third_party/astc-encoder/Source/ |
H A D | astcenc_symbolic_physical.cpp | 150 // Compress the weights. in symbolic_to_physical() 165 uint8_t weights[64]; in symbolic_to_physical() local 168 float uqw = static_cast<float>(scb.weights[i]); in symbolic_to_physical() 171 weights[i] = qat.scramble_map[qwi]; in symbolic_to_physical() 173 encode_ise(QUANT_6, HIGH_SPEED_PROFILE_WEIGHT_BYTES, weights, weightbuf, 0); in symbolic_to_physical() 195 uint8_t weights[64]; in symbolic_to_physical() local 200 float uqw = static_cast<float>(scb.weights[i]); in symbolic_to_physical() 203 weights[2 * i] = qat.scramble_map[qwi]; in symbolic_to_physical() 205 uqw = static_cast<float>(scb.weights[i + WEIGHTS_PLANE2_OFFSET]); in symbolic_to_physical() 208 weights[ in symbolic_to_physical() [all...] |
H A D | astcenc_ideal_endpoints_and_weights.cpp | 21 * @brief Functions for computing color endpoints and texel weights. 33 * @param weights The decimated weight values to use. 40 const float* weights, in bilinear_infill_vla() 49 // Load the bilinear filter weights from the decimated grid in bilinear_infill_vla() 50 vfloat weight_val0 = gatherf(weights, weight_idx0); in bilinear_infill_vla() 51 vfloat weight_val1 = gatherf(weights, weight_idx1); in bilinear_infill_vla() 52 vfloat weight_val2 = gatherf(weights, weight_idx2); in bilinear_infill_vla() 53 vfloat weight_val3 = gatherf(weights, weight_idx3); in bilinear_infill_vla() 69 * This is specialized version which computes only two weights per texel for 73 * @param weights Th 38 bilinear_infill_vla( const decimation_info& di, const float* weights, unsigned int index ) bilinear_infill_vla() argument 78 bilinear_infill_vla_2( const decimation_info& di, const float* weights, unsigned int index ) bilinear_infill_vla_2() argument [all...] |
H A D | astcenc_decompress_symbolic.cpp | 33 * @param weights The interpolation weight (between 0 and 64). 41 vint4 weights in lerp_color_int() 43 vint4 weight1 = weights; in lerp_color_int() 101 vint4 tab0 = vint4::load(scb.weights + 0); in unpack_weights() 102 vint4 tab1 = vint4::load(scb.weights + 16); in unpack_weights() 103 vint4 tab2 = vint4::load(scb.weights + 32); in unpack_weights() 104 vint4 tab3 = vint4::load(scb.weights + 48); in unpack_weights() 131 vint4 tab0_plane1 = vint4::load(scb.weights + 0); in unpack_weights() 132 vint4 tab1_plane1 = vint4::load(scb.weights + 16); in unpack_weights() 137 vint4 tab0_plane2 = vint4::load(scb.weights in unpack_weights() [all...] |
/third_party/astc-encoder/Utils/ |
H A D | astcenc_u8_test_bench.cpp | 46 vint4 weights(wt1); in main() 61 vint4 colorv0 = lerp_color_int(decode_u8_v0, ep0v0, ep1v0, weights); in main() 62 vint4 colorv1 = lerp_color_int(decode_u8_v1, ep0v1, ep1v1, weights); in main() 80 vint4 weights(wt1); in main() 97 vint4 colorv0 = lerp_color_int(decode_u8_v0, ep0v0, ep1v0, weights); in main() 98 vint4 colorv1 = lerp_color_int(decode_u8_v1, ep0v1, ep1v1, weights); in main()
|
/third_party/python/Lib/ |
H A D | statistics.py | 436 def fmean(data, weights=None): 455 if weights is None: 461 num_weights = len(weights) 463 weights = list(weights) 464 num_weights = len(weights) 465 num = fsum(map(mul, data, weights)) 467 raise StatisticsError('data and weights must be the same length') 468 den = fsum(weights) 470 raise StatisticsError('sum of weights mus [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | mss3.c | 47 int weights[16], freqs[16]; member 54 int weights[256], freqs[256]; member 168 m->weights[val]++; in model_update() 177 m->weights[i] = (m->weights[i] + 1) >> 1; in model_update() 178 m->tot_weight += m->weights[i]; in model_update() 184 sum += m->weights[i]; in model_update() 199 m->weights[i] = 1; in model_reset() 200 m->weights[m->num_syms - 1] = 0; in model_reset() 223 m->weights[va in model256_update() [all...] |
H A D | mss12.c | 52 thr = 2 * m->weights[m->num_syms] - 1; in model_calc_threshold() 63 m->weights[i] = 1; in model_reset() 66 m->weights[0] = 0; in model_reset() 89 m->weights[i] = (m->weights[i] + 1) >> 1; in model_rescale_weights() 90 cum_prob += m->weights[i]; in model_rescale_weights() 99 if (m->weights[val] == m->weights[val - 1]) { in ff_mss12_model_update() 100 for (i = val; m->weights[i - 1] == m->weights[va in ff_mss12_model_update() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
H A D | vktSampleVerifier.cpp | 323 const Vec2& weights, in getFilteredSample2D() 346 const Interval iWeightInterval = m_filteringPrecision[compNdx]->roundOut(Interval(i == 0 ? 1.0f - weights[1] : weights[1]), false); in getFilteredSample2D() 350 const Interval jWeightInterval = m_filteringPrecision[compNdx]->roundOut(iWeightInterval * Interval(j == 0 ? 1.0f - weights[0] : weights[0]), false); in getFilteredSample2D() 363 const Vec3& weights, in getFilteredSample3D() 389 const Interval iWeightInterval = m_filteringPrecision[compNdx]->roundOut(Interval(i == 0 ? 1.0f - weights[2] : weights[2]), false); in getFilteredSample3D() 393 const Interval jWeightInterval = m_filteringPrecision[compNdx]->roundOut(iWeightInterval * Interval(j == 0 ? 1.0f - weights[1] : weights[ in getFilteredSample3D() 322 getFilteredSample2D(const IVec3& texelBase, const Vec2& weights, int layer, int level, Vec4& resultMin, Vec4& resultMax) const getFilteredSample2D() argument 362 getFilteredSample3D(const IVec3& texelBase, const Vec3& weights, int layer, int level, Vec4& resultMin, Vec4& resultMax) const getFilteredSample3D() argument 411 getFilteredSample(const IVec3& texelBase, const Vec3& weights, int layer, int level, Vec4& resultMin, Vec4& resultMax) const getFilteredSample() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktSampleVerifier.cpp | 323 const Vec2& weights, in getFilteredSample2D() 346 const Interval iWeightInterval = m_filteringPrecision[compNdx]->roundOut(Interval(i == 0 ? 1.0f - weights[1] : weights[1]), false); in getFilteredSample2D() 350 const Interval jWeightInterval = m_filteringPrecision[compNdx]->roundOut(iWeightInterval * Interval(j == 0 ? 1.0f - weights[0] : weights[0]), false); in getFilteredSample2D() 363 const Vec3& weights, in getFilteredSample3D() 389 const Interval iWeightInterval = m_filteringPrecision[compNdx]->roundOut(Interval(i == 0 ? 1.0f - weights[2] : weights[2]), false); in getFilteredSample3D() 393 const Interval jWeightInterval = m_filteringPrecision[compNdx]->roundOut(iWeightInterval * Interval(j == 0 ? 1.0f - weights[1] : weights[ in getFilteredSample3D() 322 getFilteredSample2D(const IVec3& texelBase, const Vec2& weights, int layer, int level, Vec4& resultMin, Vec4& resultMax) const getFilteredSample2D() argument 362 getFilteredSample3D(const IVec3& texelBase, const Vec3& weights, int layer, int level, Vec4& resultMin, Vec4& resultMax) const getFilteredSample3D() argument 411 getFilteredSample(const IVec3& texelBase, const Vec3& weights, int layer, int level, Vec4& resultMin, Vec4& resultMax) const getFilteredSample() argument [all...] |
/third_party/vk-gl-cts/modules/gles2/stress/ |
H A D | es2sDrawTests.cpp | 200 float weights[SIZE]; member 205 weights[i] = 1.0f; in UniformWeightArray() 312 spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); in init() 314 spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); in init() 315 spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); in init() 317 spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init() 332 attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); in init() 333 attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); in init() 334 attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init() 335 attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); in init() [all...] |
/third_party/skia/include/private/ |
H A D | SkPathRef.h | 44 int points, weights; member 67 SkPathRef(SkTDArray<SkPoint> points, SkTDArray<uint8_t> verbs, SkTDArray<SkScalar> weights, in SkPathRef() argument 71 , fConicWeights(std::move(weights)) in SkPathRef() 119 * requisite points & weights. 121 * If 'verb' is kConic_Verb, 'weights' will return a pointer to the 122 * space for the conic weights (indexed normally). 126 SkScalar** weights = nullptr) { in growForRepeatedVerb() 127 return fPathRef->growForRepeatedVerb(verb, numVbs, weights); in growForRepeatedVerb() 135 * Returns pointers to the uninitialized points and conic weights data. 443 * verb. If 'verb' is kConic_Verb, 'weights' wil [all...] |
/third_party/ffmpeg/libavfilter/x86/ |
H A D | vf_atadenoise_init.c | 30 int thra, int thrb, const float *weights); 35 int thra, int thrb, const float *weights);
|
/third_party/ffmpeg/libavcodec/arm/ |
H A D | h264dsp_init_arm.c | 48 int weights, int offset); 51 int weights, int offset); 54 int weights, int offset);
|
/third_party/ffmpeg/libavcodec/mips/ |
H A D | simple_idct_msa.c | 27 v8i16 weights = { 0, 22725, 21407, 19266, 16383, 12873, 8867, 4520 }; in simple_idct_msa() local 53 w2 = (v4i32) __msa_splati_h(weights, 2); in simple_idct_msa() 55 w4 = (v4i32) __msa_splati_h(weights, 4); in simple_idct_msa() 57 w6 = (v4i32) __msa_splati_h(weights, 6); in simple_idct_msa() 80 SPLATI_H4_SH(weights, 1, 3, 5, 7, w1, w3, w5, w7); in simple_idct_msa() 126 w2 = (v4i32) __msa_splati_h(weights, 2); in simple_idct_msa() 128 w4 = (v4i32) __msa_splati_h(weights, 4); in simple_idct_msa() 130 w6 = (v4i32) __msa_splati_h(weights, 6); in simple_idct_msa() 153 SPLATI_H4_SH(weights, 1, 3, 5, 7, w1, w3, w5, w7); in simple_idct_msa() 190 v8i16 weights in simple_idct_put_msa() local 366 v8i16 weights = { 0, 22725, 21407, 19266, 16383, 12873, 8867, 4520 }; simple_idct_add_msa() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/astc-encoder/Source/ |
H A D | astc_decompress_symbolic.cpp | 27 const int* weights in compute_value_of_texel_int() 34 summed_value += weights[it->texel_weights[texel_to_get][i]] * it->texel_weights_int[texel_to_get][i]; in compute_value_of_texel_int() 233 // first unquantize the weights in decompress_symbolic_block() 252 int weights[MAX_TEXELS_PER_BLOCK]; in decompress_symbolic_block() local 256 weights[i] = compute_value_of_texel_int(i, it, uq_plane1_weights); in decompress_symbolic_block() 264 // now that we have endpoint colors and weights, we can unpack actual colors for in decompress_symbolic_block() 273 weights[i], in decompress_symbolic_block()
|
/third_party/mesa3d/src/mesa/main/ |
H A D | texcompress_astc.cpp | 587 uint8_t weights[64 + 18]; /* max 64 values, plus padding for the infill interpolation */ member 1164 assert(num_weights <= (int)ARRAY_SIZE(weights)); in unquantise_weights() 1166 memset(weights, 0, sizeof(weights)); in unquantise_weights() 1237 weights[i] = w; in unquantise_weights() 1253 weights[i] = w; in unquantise_weights() 1293 p00 = weights[(v0) * 2]; in compute_infill_weights() 1294 p01 = weights[(v0 + 1) * 2]; in compute_infill_weights() 1295 p10 = weights[(v0 + wt_w) * 2]; in compute_infill_weights() 1296 p11 = weights[(v in compute_infill_weights() [all...] |
/third_party/vk-gl-cts/modules/gles31/stress/ |
H A D | es31sDrawTests.cpp | 313 float weights[SIZE]; 318 weights[i] = 1.0f; 447 spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); 449 spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); 461 spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); 480 attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); 481 attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); 483 attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights);
|
/third_party/vk-gl-cts/modules/gles3/stress/ |
H A D | es3sDrawTests.cpp | 389 float weights[SIZE]; member 394 weights[i] = 1.0f; in UniformWeightArray() 526 spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); in init() 528 spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); in init() 529 spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); in init() 531 spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init() 546 attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); in init() 547 attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); in init() 548 attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init() 549 attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); in init() [all...] |