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

/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dblock.cpp82 int16 *coef = video->block; local
91 coef += ((blkidx & 0x3) << 2) + ((blkidx >> 2) << 6); /* point to the 4x4 block */
109 coef[0] = r0 + r1;
110 coef[2] = r0 - r1;
111 coef[1] = (r3 << 1) + r2;
112 coef[3] = r3 - (r2 << 1);
114 coef += 16;
120 coef -= 64;
125 r0 = coef[0] + coef[4
262 int16 *coef, *coef8 = video->block; local
366 int16 *coef = video->block; local
729 int16 *coef = video->block + 256; local
[all...]
/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/lvm/lib/Eq/src/
H A DLVEQNB_CalcCoef.c109 LVM_INT16 coef; local
138 * CosErr += coef(n) * t0^n For n = 0 to 4
146 coef = LVEQNB_DPCosCoef[i]; /* Get the nth coefficient */
147 CosErr += (factor * coef) >> 5; /* The nth partial sum */
240 LVM_INT16 coef; local
269 * Cos += coef(n) * t0^n For n = 0 to 6
277 coef = LVEQNB_CosCoef[i]; /* Get the nth coefficient */
278 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */
/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/services/audioflinger/
H A DAudioResamplerFirGen.h420 static inline double firTransfer(const T* coef, int L, int halfNumCoef, double w) { argument
421 double accum = static_cast<double>(coef[0])*0.5; // "center coefficient" from first bank
422 coef += halfNumCoef; // skip first filterbank (picked up by the last filterbank).
427 accum += cos(ix*w)*static_cast<double>(*coef++);
472 sc = static_cast<double>(*coef++) + dcos*sc - sp;
500 * @param coef is the designed polyphase filter banks
521 static void testFir(const T* coef, int L, int halfNumCoef, argument
527 double trf = firTransfer(coef, L, halfNumCoef, wstart);
534 trf = firTransfer(coef, L, halfNumCoef, wstart);
561 * @param coef i
593 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
640 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.cpp388 Word16 *coef;
436 coef = f1;
439 ylow = Chebps (xlow, coef, NC);
449 ylow = Chebps (xlow, coef, NC);
460 ymid = Chebps (xmid, coef, NC);
512 coef = f2;
517 coef = f1;
519 ylow = Chebps (xlow, coef, NC);
582 Word16 *coef; local
630 coef
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ResampleInputStream.cpp39 #define FIR_COEF(coef) (short)(0x10000 * coef)
/frameworks/base/core/java/android/speech/srec/
H A DUlawEncoderInputStream.java78 int coef = MAX_ULAW * (1 << SCALE_BITS) / max;
82 pcm = (pcm * coef) >> SCALE_BITS;
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dtns.h105 Word16 coef[TRANS_FAC*TNS_MAX_ORDER_SHORT]; member in struct:__anon345
/frameworks/base/core/java/android/widget/
H A DScroller.java122 float x, tx, coef;
125 coef = 3.0f * x * (1.0f - x);
126 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
131 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
137 coef = 3.0f * y * (1.0f - y);
138 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
143 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
H A DOverScroller.java612 float x, tx, coef;
615 coef = 3.0f * x * (1.0f - x);
616 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
621 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
627 coef = 3.0f * y * (1.0f - y);
628 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
633 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
H A DEditor.java4038 final float coef = 1.0f - (float) duration / FADE_OUT_DURATION;
4041 ((int) (highlightColorAlpha * coef) << 24);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java290 float[] coef = mTempCoef;
291 coef[0] = 1;
292 coef[1] = 1;
293 mRotateMatrix.mapPoints(coef);
308 if (coef[dim] > 0) adjustment[dim] = FloatMath.ceil(adjustment[dim]);
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
H A DLVPSA_Control.c484 LVM_INT16 coef; local
516 * Cos += coef(n) * t0^n For n = 0 to 6
524 coef = LVPSA_CosCoef[i]; /* Get the nth coefficient */
525 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */
607 LVM_INT16 coef; local
638 * CosErr += coef(n) * t0^n For n = 0 to 4
646 coef = LVPSA_DPCosCoef[i]; /* Get the nth coefficient */
647 CosErr += (factor * coef) >> 5; /* The nth partial sum */
/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.c81 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.cpp204 void (*mOptKernel)(void *dst, const void *src, const short *coef, uint32_t count);
460 const short *coef, uint32_t count);
462 const short *coef, uint32_t count);
464 const short *coef, uint32_t count);
H A DrsCpuIntrinsicConvolve3x3.cpp88 const void *y2, const short *coef, uint32_t count);
H A DrsCpuIntrinsicConvolve5x5.cpp347 const short *coef, uint32_t count);
/frameworks/base/core/java/android/hardware/
H A DSensorManager.java1307 final float coef = 1.0f / 5.255f;
1308 return 44330.0f * (1.0f - (float)Math.pow(p/p0, coef));

Completed in 3789 milliseconds