/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | block.cpp | 82 int16 *coef = video->block; in dct_luma() local 91 coef += ((blkidx & 0x3) << 2) + ((blkidx >> 2) << 6); /* point to the 4x4 block */ in dct_luma() 109 coef[0] = r0 + r1; in dct_luma() 110 coef[2] = r0 - r1; in dct_luma() 111 coef[1] = (r3 << 1) + r2; in dct_luma() 112 coef[3] = r3 - (r2 << 1); in dct_luma() 114 coef += 16; in dct_luma() 120 coef -= 64; in dct_luma() 125 r0 = coef[0] + coef[48]; in dct_luma() 126 r3 = coef[0] - coef[48]; in dct_luma() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | az_isp.c | 69 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/services/audioflinger/ |
D | AudioResamplerFirProcess.h | 27 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 …]
|
D | AudioResamplerFirGen.h | 423 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); 596 static void testFir(const T* coef, int L, int halfNumCoef, 601 testFir(coef, L, halfNumCoef, 0., fp, passSteps, fmin, fmax); [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | az_lsp.cpp | 584 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/ |
D | EffectsMath.h | 116 #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/av/media/libeffects/lvm/lib/Eq/src/ |
D | LVEQNB_CalcCoef.c | 109 LVM_INT16 coef; in LVEQNB_DoublePrecCoefs() local 146 coef = LVEQNB_DPCosCoef[i]; /* Get the nth coefficient */ in LVEQNB_DoublePrecCoefs() 147 CosErr += (factor * coef) >> 5; /* The nth partial sum */ in LVEQNB_DoublePrecCoefs() 240 LVM_INT16 coef; in LVEQNB_SinglePrecCoefs() local 277 coef = LVEQNB_CosCoef[i]; /* Get the nth coefficient */ in LVEQNB_SinglePrecCoefs() 278 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */ in LVEQNB_SinglePrecCoefs()
|
/frameworks/base/core/java/android/widget/ |
D | Scroller.java | 121 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;
|
D | OverScroller.java | 609 float x, tx, coef; 612 coef = 3.0f * x * (1.0f - x); 613 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x; 618 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x; 624 coef = 3.0f * y * (1.0f - y); 625 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y; 630 SPLINE_TIME[i] = coef * ((1.0f - y) * P1 + y * P2) + y * y * y;
|
D | Editor.java | 5563 final float coef = 1.0f - (float) duration / FADE_OUT_DURATION; 5566 ((int) (highlightColorAlpha * coef) << 24);
|
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/ |
D | LVPSA_Control.c | 484 LVM_INT16 coef; in LVPSA_BPSinglePrecCoefs() local 524 coef = LVPSA_CosCoef[i]; /* Get the nth coefficient */ in LVPSA_BPSinglePrecCoefs() 525 COS_T0 += (factor * coef) >> 5; /* The nth partial sum */ in LVPSA_BPSinglePrecCoefs() 607 LVM_INT16 coef; in LVPSA_BPDoublePrecCoefs() local 646 coef = LVPSA_DPCosCoef[i]; /* Get the nth coefficient */ in LVPSA_BPDoublePrecCoefs() 647 CosErr += (factor * coef) >> 5; /* The nth partial sum */ in LVPSA_BPDoublePrecCoefs()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsics_x86.cpp | 81 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 …]
|
D | rsCpuIntrinsicColorMatrix.cpp | 201 void (*mOptKernel)(void *dst, const void *src, const short *coef, uint32_t count); 457 const short *coef, uint32_t count); 459 const short *coef, uint32_t count); 461 const short *coef, uint32_t count);
|
D | rsCpuIntrinsicConvolve3x3.cpp | 88 const void *y2, const short *coef, uint32_t count);
|
D | rsCpuIntrinsicConvolve5x5.cpp | 347 const short *coef, uint32_t count);
|
/frameworks/base/media/jni/ |
D | android_media_ResampleInputStream.cpp | 39 #define FIR_COEF(coef) (short)(0x10000 * coef) argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | CropView.java | 289 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/av/media/libstagefright/codecs/aacenc/src/ |
D | stat_bits.c | 130 ptcoef = tnsInfo->coef + i*TNS_MAX_ORDER_SHORT; in tnsCount() 142 ptcoef = tnsInfo->coef + i*TNS_MAX_ORDER_SHORT; in tnsCount()
|
D | bitenc.c | 318 if (tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] > 3 || in encodeTnsData() 319 tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] < -4) { in encodeTnsData() 329 if (tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] > 1 || in encodeTnsData() 330 tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] < -2) { in encodeTnsData() 340 WriteBits(hBitStream,tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] & rmask[coefBits],coefBits); in encodeTnsData()
|
D | tns.c | 417 tnsInfo->coef, in TnsEncode() 421 Index2Parcor(tnsInfo->coef, in TnsEncode() 462 &tnsInfo->coef[subBlockNumber*TNS_MAX_ORDER_SHORT], in TnsEncode() 466 Index2Parcor(&tnsInfo->coef[subBlockNumber*TNS_MAX_ORDER_SHORT], in TnsEncode()
|
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
D | tns.h | 105 Word16 coef[TRANS_FAC*TNS_MAX_ORDER_SHORT]; member
|
/frameworks/base/core/java/android/hardware/ |
D | SensorManager.java | 1457 final float coef = 1.0f / 5.255f; in getAltitude() local 1458 return 44330.0f * (1.0f - (float)Math.pow(p/p0, coef)); in getAltitude()
|