/third_party/skia/third_party/externals/freetype/src/base/ |
D | ftlcdfil.c | 79 FT_LcdFiveTapFilter weights ) in ft_lcd_filter_fir() argument 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[4] * val; in ft_lcd_filter_fir() 121 fir[0] = fir[1] + weights[0] * val; in ft_lcd_filter_fir() 122 fir[1] = fir[2] + weights[1] * val; in ft_lcd_filter_fir() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
D | discrete_distribution_test.cc | 157 std::vector<double> weights(kBuckets, 0); in TEST() local 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() 174 for (double x : weights) { in TEST() 177 for (double& x : weights) { in TEST() 183 std::begin(weights), std::end(weights)); in TEST() 192 absl::StrAppend(&msg, i, ": ", counts[i], " vs ", weights[i], "\n"); in TEST()
|
/third_party/astc-encoder/Docs/ |
D | Terminology.md | 27 Variables that are quantized, such as endpoint colors and weights, have 32 any quantization is applied. For example, integer weights in the 0-64 range can 38 `QUANT_3` weights in the 0-64 range can only take one of `[0, 32, 64]`. 42 ordering is scrambled to simplify hardware. For example, `QUANT_3` weights 51 ## Full vs Decimated interpolation weights 58 weights and which are bilinear interpolated to generate the full weight grid. 60 Full weights have no variable prefix,but decimated weights are stored with 71 interpolation weights. This gets very confusing in functions using all three! 74 interpolation weights. The error weighting factors used for other purposes are
|
/third_party/ffmpeg/libavfilter/ |
D | vf_atadenoise.c | 59 float weights[4][SIZE]; member 151 int thra, int thrb, const float *weights) \ 175 sum += srcjx * weights[j]; \ 176 wsum += weights[j]; \ 186 sum += srcix * weights[i]; \ 187 wsum += weights[i]; \ 202 const float *weights) \ 226 sum += srcjx * weights[j]; \ 227 wsum += weights[j]; \ 239 sum += srcix * weights[i]; \ [all …]
|
D | af_amix.c | 175 float *weights; /**< custom weights for every input */ member 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[i]); in calculate_scales() 237 s->input_scale[i] = 1.0f / s->scale_norm[i] * FFSIGN(s->weights[i]); in calculate_scales() 282 s->scale_norm[i] = s->weight_sum / FFABS(s->weights[i]); in config_output() 527 s->weights[i] = last_weight; in parse_weights() 538 s->weights[i] = last_weight; in parse_weights() [all …]
|
D | vf_mix.c | 39 float *weights; member 83 if (av_sscanf(arg, "%f", &s->weights[i]) != 1) { in parse_weights() 87 s->wfactor += s->weights[i]; in parse_weights() 92 s->weights[i] = s->weights[last]; in parse_weights() 93 s->wfactor += s->weights[i]; in parse_weights() 115 s->weights = av_calloc(s->nb_inputs, sizeof(*s->weights)); in init() 116 if (!s->weights) in init() 163 val += src * s->weights[i]; in mix_frames() 185 val += src * s->weights[i]; in mix_frames() 304 av_freep(&s->weights); in uninit()
|
/third_party/skia/third_party/externals/freetype/src/type1/ |
D | t1load.c | 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[5] + weights[3] + weights[1]; in mm_weights_unmap() 263 axiscoords[1] = weights[7] + weights[6] + weights[3] + weights[2]; in mm_weights_unmap() 264 axiscoords[2] = weights[7] + weights[6] + weights[5] + weights[4]; in mm_weights_unmap() 269 axiscoords[0] = weights[15] + weights[13] + weights[11] + weights[9] + in mm_weights_unmap() 270 weights[7] + weights[5] + weights[3] + weights[1]; in mm_weights_unmap() 271 axiscoords[1] = weights[15] + weights[14] + weights[11] + weights[10] + in mm_weights_unmap() [all …]
|
/third_party/astc-encoder/Source/ |
D | astcenc_symbolic_physical.cpp | 110 encode_ise(QUANT_6, HIGH_SPEED_PROFILE_WEIGHT_BYTES, scb.weights, weightbuf, 0); in symbolic_to_physical() 184 uint8_t weights[64]; in symbolic_to_physical() local 187 weights[2 * i] = scb.weights[i]; in symbolic_to_physical() 188 weights[2 * i + 1] = scb.weights[i + WEIGHTS_PLANE2_OFFSET]; in symbolic_to_physical() 190 encode_ise(weight_quant_method, real_weight_count, weights, weightbuf, 0); in symbolic_to_physical() 194 encode_ise(weight_quant_method, weight_count, scb.weights, weightbuf, 0); in symbolic_to_physical() 402 scb.weights[i] = indices[2 * i]; in physical_to_symbolic() 403 scb.weights[i + WEIGHTS_PLANE2_OFFSET] = indices[2 * i + 1]; in physical_to_symbolic() 408 decode_ise(weight_quant_method, weight_count, bswapped, scb.weights, 0); in physical_to_symbolic()
|
D | astcenc_internal.h | 1055 alignas(ASTCENC_VECALIGN) float weights[BLOCK_MAX_TEXELS]; member 1278 uint8_t weights[BLOCK_MAX_WEIGHTS]; member 1940 const float* weights, in bilinear_infill() argument 1943 return (weights[di.texel_weights_4t[0][index]] * di.texel_weights_float_4t[0][index] + in bilinear_infill() 1944 weights[di.texel_weights_4t[1][index]] * di.texel_weights_float_4t[1][index]) + in bilinear_infill() 1945 (weights[di.texel_weights_4t[2][index]] * di.texel_weights_float_4t[2][index] + in bilinear_infill() 1946 weights[di.texel_weights_4t[3][index]] * di.texel_weights_float_4t[3][index]); in bilinear_infill() 1963 const float* weights, in bilinear_infill_2() argument 1966 return (weights[di.texel_weights_4t[0][index]] * di.texel_weights_float_4t[0][index] + in bilinear_infill_2() 1967 weights[di.texel_weights_4t[1][index]] * di.texel_weights_float_4t[1][index]); in bilinear_infill_2() [all …]
|
D | astcenc_ideal_endpoints_and_weights.cpp | 118 ei.weights[tix] = value; in compute_ideal_colors_and_weights_1_comp() 131 ei.weights[i] = 0.0f; in compute_ideal_colors_and_weights_1_comp() 217 ei.weights[tix] = param; in compute_ideal_colors_and_weights_2_comp() 247 float idx = (ei.weights[tix] - lowparam) * scale; in compute_ideal_colors_and_weights_2_comp() 250 ei.weights[tix] = idx; in compute_ideal_colors_and_weights_2_comp() 269 ei.weights[i] = 0.0f; in compute_ideal_colors_and_weights_2_comp() 366 ei.weights[tix] = param; in compute_ideal_colors_and_weights_3_comp() 396 float idx = (ei.weights[tix] - lowparam) * scale; in compute_ideal_colors_and_weights_3_comp() 399 ei.weights[tix] = idx; in compute_ideal_colors_and_weights_3_comp() 436 ei.weights[i] = 0.0f; in compute_ideal_colors_and_weights_3_comp() [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/SGI/ |
D | GLU_SGI_filter4_parameters.txt | 27 weights themselves are typically a set of equidistant samples along a 63 const GLfloat *parms, GLint n, GLfloat *weights) 84 or equal to 1025 and weights must point to n GLfloat's worth of memory. 86 After the coefficients are successfully generated and saved in weights, 100 GLfloat *weights, control[2]; 104 weights = (GLfloat *)malloc(n*sizeof(GLfloat)); 106 n, weights); 110 * (const float *)weights); 126 (const GLfloat *)control, n, weights); 130 * (const float *)weights);
|
/third_party/openGLES/extensions/SGI/ |
D | GLU_SGI_filter4_parameters.txt | 27 weights themselves are typically a set of equidistant samples along a 63 const GLfloat *parms, GLint n, GLfloat *weights) 84 or equal to 1025 and weights must point to n GLfloat's worth of memory. 86 After the coefficients are successfully generated and saved in weights, 100 GLfloat *weights, control[2]; 104 weights = (GLfloat *)malloc(n*sizeof(GLfloat)); 106 n, weights); 110 * (const float *)weights); 126 (const GLfloat *)control, n, weights); 130 * (const float *)weights);
|
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/ |
D | ARB_vertex_blend.txt | 46 these results are scaled by the weights for the respective 67 Should integer blending weights be allowed? 74 Should the blending weights be forced to sum to 1? 78 be noted that even if the weights do not sum to one, 82 had the weights been scaled to sum to one. 119 the sum of the square of the weights is equal to one. 121 Should weights be specified as vectors rather than independent 130 void Weight{bsifd ubusui}vARB(int size, T* weights) 217 coordinates, current color, and a set of current weights 230 weights (Vertex, Color, Index, Normal, TexCoord, [all …]
|
/third_party/openGLES/extensions/ARB/ |
D | ARB_vertex_blend.txt | 56 these results are scaled by the weights for the respective 77 Should integer blending weights be allowed? 84 Should the blending weights be forced to sum to 1? 88 be noted that even if the weights do not sum to one, 92 had the weights been scaled to sum to one. 129 the sum of the square of the weights is equal to one. 131 Should weights be specified as vectors rather than independent 140 void Weight{bsifd ubusui}vARB(int size, T* weights) 227 coordinates, current color, and a set of current weights 240 weights (Vertex, Color, Index, Normal, TexCoord, [all …]
|
D | ARB_matrix_palette.txt | 53 indices into the palette, and a corresponding set of n weights. 60 weights of the respective units and then summed to create the 181 current weights may be used in processing each vertex. Normals 200 indices, and weights (Vertex, Color, Index, Normal, TexCoord, 215 "The current weights are set using 217 void Weight{bsifd ubusui}vARB(int size, T *weights); 220 weight vector. The first <size> current weights are 221 replaced with <weights> such that: 223 CURRENT_WEIGHT_ARB[i] = <weights>[i] 228 CURRENT_WEIGHT_ARB[<size>] = 1 - SUM <weights>[i] [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
D | vktSampleVerifier.cpp | 323 const Vec2& weights, in getFilteredSample2D() argument 346 … m_filteringPrecision[compNdx]->roundOut(Interval(i == 0 ? 1.0f - weights[1] : weights[1]), false); in getFilteredSample2D() 350 …ion[compNdx]->roundOut(iWeightInterval * Interval(j == 0 ? 1.0f - weights[0] : weights[0]), false); in getFilteredSample2D() 363 const Vec3& weights, in getFilteredSample3D() argument 389 … m_filteringPrecision[compNdx]->roundOut(Interval(i == 0 ? 1.0f - weights[2] : weights[2]), false); in getFilteredSample3D() 393 …ion[compNdx]->roundOut(iWeightInterval * Interval(j == 0 ? 1.0f - weights[1] : weights[1]), false); in getFilteredSample3D() 397 …ion[compNdx]->roundOut(jWeightInterval * Interval(k == 0 ? 1.0f - weights[0] : weights[0]), false); in getFilteredSample3D() 412 const Vec3& weights, in getFilteredSample() argument 423 getFilteredSample1D(texelBase, weights.x(), layer, level, resultMin, resultMax); in getFilteredSample() 427 getFilteredSample2D(texelBase, weights.swizzle(0, 1), layer, level, resultMin, resultMax); in getFilteredSample() [all …]
|
/third_party/vk-gl-cts/modules/gles2/stress/ |
D | es2sDrawTests.cpp | 200 float weights[SIZE]; member 205 weights[i] = 1.0f; in UniformWeightArray() 312 …pec::Primitive> (DE_ARRAY_BEGIN(primitives), DE_ARRAY_END(primitives), primitiveWeights.weights); in init() 314 …:DrawMethod> (DE_ARRAY_BEGIN(drawMethods), DE_ARRAY_END(drawMethods), drawMethodWeights.weights); in init() 315 …pec::IndexType> (DE_ARRAY_BEGIN(indexTypes), DE_ARRAY_END(indexTypes), indexTypeWeights.weights); in init() 317 …TestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init() 332 …pec::InputType> (DE_ARRAY_BEGIN(inputTypes), DE_ARRAY_END(inputTypes), inputTypeWeights.weights); in init() 333 …:OutputType> (DE_ARRAY_BEGIN(outputTypes), DE_ARRAY_END(outputTypes), outputTypeWeights.weights); in init() 334 …TestSpec::Storage> (DE_ARRAY_BEGIN(storages), DE_ARRAY_END(storages), storageWeights.weights); in init() 335 …ls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), DE_ARRAY_END(usages), usageWeights.weights); in init()
|
/third_party/ffmpeg/libavcodec/ |
D | mss3.c | 46 int weights[16], freqs[16]; member 53 int weights[256], freqs[256]; member 167 m->weights[val]++; in model_update() 176 m->weights[i] = (m->weights[i] + 1) >> 1; in model_update() 177 m->tot_weight += m->weights[i]; in model_update() 183 sum += m->weights[i]; in model_update() 198 m->weights[i] = 1; in model_reset() 199 m->weights[m->num_syms - 1] = 0; in model_reset() 222 m->weights[val]++; in model256_update() 231 m->weights[i] = (m->weights[i] + 1) >> 1; in model256_update() [all …]
|
/third_party/cmsis/CMSIS/DSP/Source/SupportFunctions/ |
D | arm_barycenter_f32.c | 55 const float32_t *weights, in arm_barycenter_f32() argument 71 pW = weights; in arm_barycenter_f32() 200 void arm_barycenter_f32(const float32_t *in, const float32_t *weights, float32_t *out, uint32_t nbV… in arm_barycenter_f32() argument 215 pW = weights; in arm_barycenter_f32() 353 void arm_barycenter_f32(const float32_t *in, const float32_t *weights, float32_t *out, uint32_t nbV… in arm_barycenter_f32() argument 366 pW = weights; in arm_barycenter_f32()
|
D | arm_barycenter_f16.c | 68 const float16_t *weights, in arm_barycenter_f16() argument 84 pW = weights; in arm_barycenter_f16() 210 void arm_barycenter_f16(const float16_t *in, const float16_t *weights, float16_t *out, uint32_t nbV… in arm_barycenter_f16() argument 223 pW = weights; in arm_barycenter_f16()
|
/third_party/gstreamer/gstplugins_bad/ext/opencv/ |
D | gstretinex.cpp | 250 g_free (filter->weights); in gst_retinex_finalize() 251 filter->weights = NULL; in gst_retinex_finalize() 375 retinex->weights = in gst_retinex_transform_ip() 376 (double *) g_realloc (retinex->weights, in gst_retinex_transform_ip() 382 retinex->weights[i] = 1.0 / (double) retinex->scales; in gst_retinex_transform_ip() 403 retinex->cvC.convertTo (retinex->cvC, -1, retinex->weights[i], 0.0); in gst_retinex_transform_ip()
|
/third_party/skia/include/private/ |
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() 126 SkScalar** weights = nullptr) { 127 return fPathRef->growForRepeatedVerb(verb, numVbs, weights); 446 SkPoint* growForRepeatedVerb(int /*SkPath::Verb*/ verb, int numVbs, SkScalar** weights);
|
/third_party/ffmpeg/libavcodec/mips/ |
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 = { 0, 22725, 21407, 19266, 16383, 12873, 8867, 4520 }; in simple_idct_put_msa() local [all …]
|
/third_party/python/Lib/ |
D | statistics.py | 380 def harmonic_mean(data, weights=None): argument 409 elif n == 1 and weights is None: 417 if weights is None: 418 weights = repeat(1, n) 421 if iter(weights) is weights: 422 weights = list(weights) 423 if len(weights) != n: 425 _, sum_weights, _ = _sum(w for w in _fail_neg(weights, errmsg)) 428 T, total, count = _sum(w / x if w else 0 for w, x in zip(weights, data))
|
/third_party/icu/docs/userguide/collation/customization/ |
D | ignorepunct.md | 32 characters are those with low (but non-zero) primary weights up to a threshold, 80 The implementation “blanks” out all weights of the variable characters’ 115 level, because normal collation elements get low secondary & tertiary weights 116 but high quaternary weights. Adding an accent difference anywhere makes a string 139 high-quaternary weights (from regular characters) are removed (trimmed). 149 building sort keys, trailing high/common quaternary weights are trimmed (backed 175 2](http://www.unicode.org/reports/tr10/#WF2) to apply to quaternary weights. 176 (UCA versions before UCA 6.2 did not limit WF2 to secondary & tertiary weights, 178 ill-formed quaternary weights.)
|