Searched refs:coef (Results 1 - 21 of 21) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Daz_isp.c69 Word16 *coef; local
110 coef = f1;
113 ylow = Chebps2(xlow, coef, order);
121 ylow = Chebps2(xlow, coef, order);
128 ymid = Chebps2(xmid, coef, order);
170 coef = f2;
175 coef = f1;
178 ylow = Chebps2(xlow, coef, order);
/frameworks/av/media/libeffects/testlibs/
H A DEffectsMath.h113 - b is the unsigned fraction (cast to signed int as long as coef
116 #define MULT_AUDIO_COEF(audio,coef) /*lint -e704 <avoid divide for performance>*/ \
119 ((int32_t)(audio)) * ((int32_t)(coef)) \
134 #define MULT_AUDIO_WET_DRY_COEF(audio,coef) /*lint -e(702) <avoid divide for performance>*/ \
137 ((int32_t)(audio)) * ((int32_t)(coef)) \
274 #define MULT_DENTS_COEF(dents,coef) /*lint -e704 <avoid divide for performance>*/ \
277 ((int32_t)(dents)) * ((int32_t)(coef)) \
291 /* drive coef is given as int.frac */
/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerFirGen.h423 static inline double firTransfer(const T* coef, int L, int halfNumCoef, double w) { argument
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;
503 * @param coef is the designed polyphase filter banks
524 static void testFir(const T* coef, int L, int halfNumCoef, argument
530 double trf = firTransfer(coef, L, halfNumCoef, wstart);
537 trf = firTransfer(coef, L, halfNumCoef, wstart);
564 * @param coef i
596 testFir(const T* coef, int L, int halfNumCoef, double fp, double fs, int passSteps, int stopSteps, double &passMin, double &passMax, double &passRipple, double &stopMax, double &stopRipple) argument
643 firKaiserGen(T* coef, int L, int halfNumCoef, double stopBandAtten, double fcr, double atten) argument
[all...]
H A DAudioResamplerFirProcess.h27 void mac(int32_t& l, int32_t& r, TC coef, const int16_t* samples) argument
30 l = mulAddRL(1, rl, coef, l);
31 r = mulAddRL(0, rl, coef, r);
36 void mac(int32_t& l, TC coef, const int16_t* samples) argument
38 l = mulAdd(samples[0], coef, l);
44 void mac(float& l, float& r, TC coef, const float* samples) argument
46 l += *samples++ * coef;
47 r += *samples * coef;
52 void mac(float& l, TC coef, const float* samples) argument
54 l += *samples * coef;
88 acc(TC coef, const TI*& data) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Daz_lsp.cpp390 Word16 *coef;
438 coef = f1;
441 ylow = Chebps (xlow, coef, NC);
451 ylow = Chebps (xlow, coef, NC);
462 ymid = Chebps (xmid, coef, NC);
514 coef = f2;
519 coef = f1;
521 ylow = Chebps (xlow, coef, NC);
584 Word16 *coef; local
632 coef
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ResampleInputStream.cpp39 #define FIR_COEF(coef) (short)(0x10000 * (coef))
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
H A DLVEQNB_CalcCoef.c112 LVM_INT16 coef; local
141 * CosErr += coef(n) * t0^n For n = 0 to 4
149 coef = LVEQNB_DPCosCoef[i]; /* Get the nth coefficient */
150 CosErr += (factor * coef) >> 5; /* The nth partial sum */
303 LVM_INT16 coef; local
332 * Cos += coef(n) * t0^n For n = 0 to 6
340 coef = LVEQNB_CosCoef[i]; /* Get the nth coefficient */
341 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
H A DLVPSA_Control.c547 LVM_FLOAT coef; local
578 * Cos += coef(n) * t0^n For n = 0 to 6
586 coef = LVPSA_Float_CosCoef[i]; /* Get the nth coefficient */
587 COS_T0 += (factor * coef); /* The nth partial sum */
627 LVM_INT16 coef; local
659 * Cos += coef(n) * t0^n For n = 0 to 6
667 coef = LVPSA_CosCoef[i]; /* Get the nth coefficient */
668 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */
751 LVM_FLOAT coef; local
782 * CosErr += coef(
834 LVM_INT16 coef; local
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dtns.h105 Word16 coef[TRANS_FAC*TNS_MAX_ORDER_SHORT]; member in struct:__anon498
/frameworks/base/core/java/android/widget/
H A DScroller.java121 float x, tx, coef;
124 coef = 3.0f * x * (1.0f - x);
125 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
130 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
136 coef = 3.0f * y * (1.0f - y);
137 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
142 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
H A DOverScroller.java611 float x, tx, coef;
614 coef = 3.0f * x * (1.0f - x);
615 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
620 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
626 coef = 3.0f * y * (1.0f - y);
627 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
632 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
H A DEditor.java5714 final float coef = 1.0f - (float) duration / FADE_OUT_DURATION;
5717 + ((int) (highlightColorAlpha * coef) << 24);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java289 float[] coef = mTempCoef;
290 coef[0] = 1;
291 coef[1] = 1;
292 mRotateMatrix.mapPoints(coef);
307 if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]);
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dstat_bits.c130 ptcoef = tnsInfo->coef + i*TNS_MAX_ORDER_SHORT;
142 ptcoef = tnsInfo->coef + i*TNS_MAX_ORDER_SHORT;
H A Dbitenc.c318 if (tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] > 3 ||
319 tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] < -4) {
329 if (tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] > 1 ||
330 tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] < -2) {
340 WriteBits(hBitStream,tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] & rmask[coefBits],coefBits);
H A Dtns.c417 tnsInfo->coef,
421 Index2Parcor(tnsInfo->coef,
462 &tnsInfo->coef[subBlockNumber*TNS_MAX_ORDER_SHORT],
466 Index2Parcor(&tnsInfo->coef[subBlockNumber*TNS_MAX_ORDER_SHORT],
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsics_x86.cpp81 const short *coef, uint32_t count) {
89 x = _mm_loadl_epi64((const __m128i *)(coef+0));
92 x = _mm_loadl_epi64((const __m128i *)(coef+4));
95 x = _mm_loadl_epi64((const __m128i *)(coef+8));
143 const short *coef, uint32_t count) {
157 c0 = _mm_loadl_epi64((const __m128i *)(coef+0));
158 c1 = _mm_loadl_epi64((const __m128i *)(coef+4));
161 c2 = _mm_loadl_epi64((const __m128i *)(coef+8));
162 c3 = _mm_loadl_epi64((const __m128i *)(coef+12));
198 const short *coef, uint32_
79 rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, const void *y1, const void *y2, const short *coef, uint32_t count) argument
142 rsdIntrinsicColorMatrix4x4_K(void *dst, const void *src, const short *coef, uint32_t count) argument
197 rsdIntrinsicColorMatrix3x3_K(void *dst, const void *src, const short *coef, uint32_t count) argument
251 rsdIntrinsicColorMatrixDot_K(void *dst, const void *src, const short *coef, uint32_t count) argument
596 rsdIntrinsicConvolve5x5_K(void *dst, const void *y0, const void *y1, const void *y2, const void *y3, const void *y4, const short *coef, uint32_t count) argument
[all...]
H A DrsCpuIntrinsicColorMatrix.cpp198 void (*mOptKernel)(void *dst, const void *src, const short *coef, uint32_t count);
454 const short *coef, uint32_t count);
456 const short *coef, uint32_t count);
458 const short *coef, uint32_t count);
H A DrsCpuIntrinsicConvolve3x3.cpp81 const void *y2, const short *coef, uint32_t count);
H A DrsCpuIntrinsicConvolve5x5.cpp341 const short *coef, uint32_t count);
/frameworks/base/core/java/android/hardware/
H A DSensorManager.java1526 final float coef = 1.0f / 5.255f;
1527 return 44330.0f * (1.0f - (float)Math.pow(p/p0, coef));

Completed in 1632 milliseconds