Home
last modified time | relevance | path

Searched refs:mag (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/third_party/gstreamer/gstplugins_base/tests/check/libs/
Dfft.c63 gdouble mag; in GST_START_TEST() local
65 mag = (gdouble) out[i].r * (gdouble) out[i].r; in GST_START_TEST()
66 mag += (gdouble) out[i].i * (gdouble) out[i].i; in GST_START_TEST()
67 mag /= 32767.0 * 32767.0; in GST_START_TEST()
68 mag = 10.0 * log10 (mag); in GST_START_TEST()
70 fail_unless (mag > -15.0); in GST_START_TEST()
72 fail_unless (mag < -55.0); in GST_START_TEST()
104 gdouble mag; in GST_START_TEST() local
106 mag = (gdouble) out[i].r * (gdouble) out[i].r; in GST_START_TEST()
107 mag += (gdouble) out[i].i * (gdouble) out[i].i; in GST_START_TEST()
[all …]
/third_party/ffmpeg/libavcodec/
Dvp9_superframe_bsf.c54 unsigned max, sum, mag, marker, n, sz; in merge_superframe() local
59 mag = av_log2(max) >> 3; in merge_superframe()
60 marker = 0xC0 + (mag << 3) + (n_in - 1); in merge_superframe()
61 sz = sum + 2 + (mag + 1) * n_in; in merge_superframe()
71 #define wloop(mag, wr) \ in merge_superframe() argument
75 ptr += mag + 1; \ in merge_superframe()
81 switch (mag) { in merge_superframe()
83 wloop(mag, *ptr = in[n]->size); in merge_superframe()
86 wloop(mag, AV_WL16(ptr, in[n]->size)); in merge_superframe()
89 wloop(mag, AV_WL24(ptr, in[n]->size)); in merge_superframe()
[all …]
Ddcadct.c176 int i, k, mag, shift, round; in imdct_half_32() local
178 mag = 0; in imdct_half_32()
180 mag += abs(input[i]); in imdct_half_32()
182 shift = mag > 0x400000 ? 2 : 0; in imdct_half_32()
295 int i, k, mag, shift, round; in imdct_half_64() local
297 mag = 0; in imdct_half_64()
299 mag += abs(input[i]); in imdct_half_64()
301 shift = mag > 0x400000 ? 2 : 0; in imdct_half_64()
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Dmpg123audiodec.c77 gdouble mag = (gdouble) c->r * (gdouble) c->r; \
78 mag += (gdouble) c->i * (gdouble) c->i; \
79 mag /= scale * scale; \
80 mag = 10.0 * log10 (mag); \
81 return mag; \
90 gdouble mag = magnitude##ffttag (v+i); \
91 if (mag > maxmag) { \
92 maxmag = mag; \
104 gdouble mag = magnitude##ffttag (v+i); \
106 if (mag > -35.0) { \
[all …]
/third_party/flutter/skia/src/core/
DSkPoint.cpp56 float mag = 0; in set_point_length() local
58 mag = sk_double_to_float(dmag); in set_point_length()
62 *orig_length = mag; in set_point_length()
68 float mag; in Normalize() local
69 if (set_point_length<false>(pt, pt->fX, pt->fY, 1.0f, &mag)) { in Normalize()
70 return mag; in Normalize()
/third_party/skia/src/core/
DSkPoint.cpp56 float mag = 0; in set_point_length() local
58 mag = sk_double_to_float(dmag); in set_point_length()
62 *orig_length = mag; in set_point_length()
68 float mag; in Normalize() local
69 if (set_point_length<false>(pt, pt->fX, pt->fY, 1.0f, &mag)) { in Normalize()
70 return mag; in Normalize()
/third_party/alsa-utils/bat/
Danalyze.c75 10.0 * log10f(a->mag[peak] / mean)); in check_peak()
113 mean += a->mag[i]; in check()
118 t = a->mag[i] - mean; in check()
127 if (a->mag[i] > mean + bat->sigma_k * sigma) { in check()
134 if (a->mag[i] > a->mag[peak]) in check()
138 p += a->mag[i]; in check()
172 a->mag[i] = sqrtf(r2 + i2); in calc_magnitude()
174 a->mag[0] = 0.0; in calc_magnitude()
192 a->mag = (float *) fftwf_malloc(sizeof(float) * bat->frames); in find_and_check_harmonics()
193 if (a->mag == NULL) in find_and_check_harmonics()
[all …]
/third_party/glib/glib/
Dgslice.c924 Magazine *mag = mags[j]; in private_thread_memory_cleanup() local
925 if (mag->count >= MIN_MAGAZINE_SIZE) in private_thread_memory_cleanup()
931 magazine_cache_push_magazine (ix, mag->chunks, mag->count, TRUE); in private_thread_memory_cleanup()
933 magazine_cache_push_magazine (ix, mag->chunks, mag->count); in private_thread_memory_cleanup()
939 while (mag->chunks) in private_thread_memory_cleanup()
941 ChunkLink *chunk = magazine_chain_pop_head (&mag->chunks); in private_thread_memory_cleanup()
955 Magazine *mag = &tmem->magazine1[ix]; in thread_memory_magazine1_reload() local
956 mem_assert (mag->chunks == NULL); /* ensure that we may reset mag->count */ in thread_memory_magazine1_reload()
957 mag->count = 0; in thread_memory_magazine1_reload()
958 mag->chunks = magazine_cache_pop_magazine (ix, &mag->count); in thread_memory_magazine1_reload()
[all …]
/third_party/gstreamer/gstplugins_good/tests/examples/spectrum/
Dspectrum-example.c42 const GValue *mag, *phase; in message_handler() local
57 mag = gst_value_list_get_value (magnitudes, i); in message_handler()
60 if (mag != NULL && phase != NULL) { in message_handler()
62 g_value_get_float (mag), g_value_get_float (phase)); in message_handler()
/third_party/libsnd/src/G72x/
Dg72x.c418 short mag, expon ; /* Adaptive predictor, FLOAT A */ in update() local
430 mag = dq & 0x7FFF ; /* prediction difference magnitude */ in update()
439 else if (mag <= dqthr) /* supposed data, but small mag */ in update()
544 if (mag == 0) in update()
547 { expon = quan (mag, power2, 15) ; in update()
549 (expon << 6) + ((mag << 6) >> expon) : in update()
550 (expon << 6) + ((mag << 6) >> expon) - 0x400 ; in update()
562 { mag = -sr ; in update()
563 expon = quan (mag, power2, 15) ; in update()
564 state_ptr->sr [0] = (expon << 6) + ((mag << 6) >> expon) - 0x400 ; in update()
/third_party/ffmpeg/libavcodec/ppc/
Dvorbisdsp_altivec.c31 static void vorbis_inverse_coupling_altivec(float *mag, float *ang, in vorbis_inverse_coupling_altivec() argument
40 m = vec_ld(0, mag+i); in vorbis_inverse_coupling_altivec()
50 vec_stl(m, 0, mag+i); in vorbis_inverse_coupling_altivec()
/third_party/e2fsprogs/lib/support/
Dplausible.c267 magic_t mag; in check_plausibility() local
270 mag = dl_magic_open(MAGIC_RAW | MAGIC_SYMLINK | MAGIC_DEVICES | in check_plausibility()
273 dl_magic_load(mag, NULL); in check_plausibility()
275 msg = dl_magic_file(mag, device); in check_plausibility()
281 dl_magic_close(mag); in check_plausibility()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java534 int mag = 0; in BigDecimal() local
727 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
728 if ((mag < MinExp) | (mag > MaxExp)) in BigDecimal()
2150 int mag = 0; in format() local
2212 mag = num.exp + num.mant.length; in format()
2213 if (mag > exdigits) in format()
2215 else if (mag < (-5)) in format()
2967 int mag; in layout() local
3040 mag = exp + cmant.length; in layout()
3042 if (mag < 1) {/* 0.00xxxx form */ in layout()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/
DBigDecimal.java518 int mag = 0; in BigDecimal() local
711 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
712 if ((mag < MinExp) | (mag > MaxExp)) in BigDecimal()
2096 int mag = 0; in format() local
2158 mag = num.exp + num.mant.length; in format()
2159 if (mag > exdigits) in format()
2161 else if (mag < (-5)) in format()
2892 int mag; in layout() local
2965 mag = exp + cmant.length; in layout()
2967 if (mag < 1) {/* 0.00xxxx form */ in layout()
[all …]
/third_party/boost/libs/geometry/test/algorithms/equals/
Dequals.cpp268 T mag = sqrt(dx * dx + dy * dy); in verify() local
269 dxn1 = dx / mag; in verify()
270 dyn1 = dy / mag; in verify()
276 T mag = sqrt(dx * dx + dy * dy); in verify() local
277 dxn2 = dx / mag; in verify()
278 dyn2 = dy / mag; in verify()
/third_party/flutter/skia/src/shaders/gradients/
DSkLinearGradient.cpp16 SkScalar mag = vec.length(); in pts_to_unit_matrix() local
17 SkScalar inv = mag ? SkScalarInvert(mag) : 0; in pts_to_unit_matrix()
/third_party/ffmpeg/libavcodec/x86/
Dvorbisdsp_init.c27 void ff_vorbis_inverse_coupling_3dnow(float *mag, float *ang,
29 void ff_vorbis_inverse_coupling_sse(float *mag, float *ang,
/third_party/skia/src/shaders/gradients/
DSkLinearGradient.cpp16 SkScalar mag = vec.length(); in pts_to_unit_matrix() local
17 SkScalar inv = mag ? SkScalarInvert(mag) : 0; in pts_to_unit_matrix()
/third_party/boost/libs/qvm/test/
Dmag_q_test.cpp18 float m1=mag(x); in test()
19 float m2=mag(qref(x)); in test()
Dmag_v_test.cpp19 float m1=mag(x); in test()
20 float m2=mag(vref(x)); in test()
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Daudioresample.c1069 gdouble mag = (gdouble) c->r * (gdouble) c->r; \
1070 mag += (gdouble) c->i * (gdouble) c->i; \
1071 mag /= scale * scale; \
1072 mag = 10.0 * log10 (mag); \
1073 return mag; \
1082 gdouble mag = magnitude##ffttag (v+i); \
1083 if (mag > maxmag) { \
1084 maxmag = mag; \
1096 gdouble mag = magnitude##ffttag (v+i); \
1098 if (mag > -55.0) { \
/third_party/mindspore/tests/ut/python/dataset/
Dtest_magphase.py53 mag = np.array([78.54934755, 34., 73.05477397, 97.20082304]).reshape((2, 2)).astype("double")
57 assert (abs(data1 - mag) < 0.00001).all()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_state_inlines.h262 static inline uint32_t r300_translate_tex_filters(int min, int mag, int mip, in r300_translate_tex_filters() argument
280 switch (mag) { in r300_translate_tex_filters()
289 fprintf(stderr, "r300: Unknown texture filter %d\n", mag); in r300_translate_tex_filters()
/third_party/flutter/skia/src/effects/
DSkEmbossMaskFilter.cpp18 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3() local
19 SkScalar scale = SkScalarInvert(SkScalarSqrt(mag)); in normalize3()
/third_party/skia/src/effects/
DSkEmbossMaskFilter.cpp19 SkScalar mag = SkScalarSquare(src[0]) + SkScalarSquare(src[1]) + SkScalarSquare(src[2]); in normalize3() local
20 SkScalar scale = SkScalarInvert(SkScalarSqrt(mag)); in normalize3()

12345678910>>...18