Home
last modified time | relevance | path

Searched refs:coef (Results 1 – 16 of 16) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Daz_isp.c69 Word16 *coef; in Az_isp() local
110 coef = f1; in Az_isp()
113 ylow = Chebps2(xlow, coef, order); in Az_isp()
121 ylow = Chebps2(xlow, coef, order); in Az_isp()
128 ymid = Chebps2(xmid, coef, order); in Az_isp()
170 coef = f2; in Az_isp()
175 coef = f1; in Az_isp()
178 ylow = Chebps2(xlow, coef, order); in Az_isp()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirProcess.h27 void mac(int32_t& l, int32_t& r, TC coef, const int16_t* samples) in mac() argument
30 l = mulAddRL(1, rl, coef, l); in mac()
31 r = mulAddRL(0, rl, coef, r); in mac()
36 void mac(int32_t& l, TC coef, const int16_t* samples) in mac() argument
38 l = mulAdd(samples[0], coef, l); in mac()
44 void mac(float& l, float& r, TC coef, const float* samples) in mac() argument
46 l += *samples++ * coef; in mac()
47 r += *samples * coef; in mac()
52 void mac(float& l, TC coef, const float* samples) in mac() argument
54 l += *samples * coef; in mac()
[all …]
DAudioResamplerFirGen.h423 static inline double firTransfer(const T* coef, int L, int halfNumCoef, double w) {
424 double accum = static_cast<double>(coef[0])*0.5; // "center coefficient" from first bank
425 coef += halfNumCoef; // skip first filterbank (picked up by the last filterbank).
430 accum += cos(ix*w)*static_cast<double>(*coef++);
475 sc = static_cast<double>(*coef++) + dcos*sc - sp;
524 static void testFir(const T* coef, int L, int halfNumCoef,
530 double trf = firTransfer(coef, L, halfNumCoef, wstart);
537 trf = firTransfer(coef, L, halfNumCoef, wstart);
600 static void testFir(const T* coef, int L, int halfNumCoef,
605 testFir(coef, L, halfNumCoef, 0., fp, passSteps, fmin, fmax);
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Daz_lsp.cpp584 Word16 *coef; in Az_lsp() local
632 coef = f1; in Az_lsp()
635 ylow = Chebps(xlow, coef, NC, pOverflow); in Az_lsp()
645 ylow = Chebps(xlow, coef, NC, pOverflow); in Az_lsp()
657 ymid = Chebps(xmid, coef, NC, pOverflow); in Az_lsp()
709 coef = f2; in Az_lsp()
714 coef = f1; in Az_lsp()
717 ylow = Chebps(xlow, coef, NC, pOverflow); in Az_lsp()
/frameworks/av/media/libeffects/testlibs/
DEffectsMath.h116 #define MULT_AUDIO_COEF(audio,coef) /*lint -e704 <avoid divide for performance>*/ \ argument
119 ((int32_t)(audio)) * ((int32_t)(coef)) \
134 #define MULT_AUDIO_WET_DRY_COEF(audio,coef) /*lint -e(702) <avoid divide for performance>*/ \ argument
137 ((int32_t)(audio)) * ((int32_t)(coef)) \
274 #define MULT_DENTS_COEF(dents,coef) /*lint -e704 <avoid divide for performance>*/ \ argument
277 ((int32_t)(dents)) * ((int32_t)(coef)) \
/frameworks/base/core/java/android/widget/
DScroller.java128 float x, tx, coef;
131 coef = 3.0f * x * (1.0f - x);
132 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
137 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
143 coef = 3.0f * y * (1.0f - y);
144 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
149 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
DOverScroller.java619 float x, tx, coef;
622 coef = 3.0f * x * (1.0f - x);
623 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
628 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
634 coef = 3.0f * y * (1.0f - y);
635 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
640 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
DEditor.java6331 final float coef = 1.0f - (float) duration / FADE_OUT_DURATION;
6334 + ((int) (highlightColorAlpha * coef) << 24);
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Control.cpp466 LVM_FLOAT coef; in LVPSA_BPSinglePrecCoefs() local
504 coef = LVPSA_Float_CosCoef[i]; /* Get the nth coefficient */ in LVPSA_BPSinglePrecCoefs()
505 COS_T0 += (factor * coef); /* The nth partial sum */ in LVPSA_BPSinglePrecCoefs()
584 LVM_FLOAT coef; in LVPSA_BPDoublePrecCoefs() local
622 coef = LVPSA_Float_DPCosCoef[i]; /* Get the nth coefficient */ in LVPSA_BPDoublePrecCoefs()
623 CosErr += factor * coef; /* The nth partial sum */ in LVPSA_BPDoublePrecCoefs()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsics_x86.cpp81 const short *coef, uint32_t count) { in rsdIntrinsicConvolve3x3_K() argument
89 x = _mm_loadl_epi64((const __m128i *)(coef+0)); in rsdIntrinsicConvolve3x3_K()
92 x = _mm_loadl_epi64((const __m128i *)(coef+4)); in rsdIntrinsicConvolve3x3_K()
95 x = _mm_loadl_epi64((const __m128i *)(coef+8)); in rsdIntrinsicConvolve3x3_K()
143 const short *coef, uint32_t count) { in rsdIntrinsicColorMatrix4x4_K() argument
157 c0 = _mm_loadl_epi64((const __m128i *)(coef+0)); in rsdIntrinsicColorMatrix4x4_K()
158 c1 = _mm_loadl_epi64((const __m128i *)(coef+4)); in rsdIntrinsicColorMatrix4x4_K()
161 c2 = _mm_loadl_epi64((const __m128i *)(coef+8)); in rsdIntrinsicColorMatrix4x4_K()
162 c3 = _mm_loadl_epi64((const __m128i *)(coef+12)); in rsdIntrinsicColorMatrix4x4_K()
198 const short *coef, uint32_t count) { in rsdIntrinsicColorMatrix3x3_K() argument
[all …]
DrsCpuIntrinsicColorMatrix.cpp198 void (*mOptKernel)(void *dst, const void *src, const int16_t *coef, uint32_t count);
454 const int16_t *coef, uint32_t count);
456 const int16_t *coef, uint32_t count);
458 const int16_t *coef, uint32_t count);
DrsCpuIntrinsicConvolve3x3.cpp81 const void *y2, const int16_t *coef, uint32_t count);
DrsCpuIntrinsicConvolve5x5.cpp341 const int16_t *coef, uint32_t count);
/frameworks/base/media/jni/
Dandroid_media_ResampleInputStream.cpp39 #define FIR_COEF(coef) (short)(0x10000 * (coef)) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java289 float[] coef = mTempCoef; in onTouchEvent() local
290 coef[0] = 1; in onTouchEvent()
291 coef[1] = 1; in onTouchEvent()
292 mRotateMatrix.mapPoints(coef); in onTouchEvent()
307 if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]); in onTouchEvent()
/frameworks/base/core/java/android/hardware/
DSensorManager.java1532 final float coef = 1.0f / 5.255f; in getAltitude() local
1533 return 44330.0f * (1.0f - (float) Math.pow(p / p0, coef)); in getAltitude()