Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dblock.cpp82 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/
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/libstagefright/codecs/amrnb/common/src/
Daz_lsp.cpp582 Word16 *coef; in Az_lsp() local
630 coef = f1; in Az_lsp()
633 ylow = Chebps(xlow, coef, NC, pOverflow); in Az_lsp()
643 ylow = Chebps(xlow, coef, NC, pOverflow); in Az_lsp()
655 ymid = Chebps(xmid, coef, NC, pOverflow); in Az_lsp()
707 coef = f2; in Az_lsp()
712 coef = f1; in Az_lsp()
715 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/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_CalcCoef.c109 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/
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;
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;
DEditor.java3710 final float coef = 1.0f - (float) duration / FADE_OUT_DURATION; in updatePaint() local
3713 ((int) (highlightColorAlpha * coef) << 24); in updatePaint()
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Control.c484 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/base/media/jni/
Dandroid_media_ResampleInputStream.cpp39 #define FIR_COEF(coef) (short)(0x10000 * coef) argument
/frameworks/rs/driver/
DrsdIntrinsicColorMatrix.cpp57 extern "C" void rsdIntrinsicColorMatrix4x4_K(void *dst, const void *src, const short *coef, uint32_…
58 extern "C" void rsdIntrinsicColorMatrix3x3_K(void *dst, const void *src, const short *coef, uint32_…
59 extern "C" void rsdIntrinsicColorMatrixDot_K(void *dst, const void *src, const short *coef, uint32_…
DrsdIntrinsicConvolve3x3.cpp51 …x3_K(void *dst, const void *y0, const void *y1, const void *y2, const short *coef, uint32_t count);
DrsdIntrinsicConvolve5x5.cpp99 const short *coef, uint32_t count);
/frameworks/support/renderscript/v8/rs_support/driver/
DrsdIntrinsicColorMatrix.cpp57 extern "C" void rsdIntrinsicColorMatrix4x4_K(void *dst, const void *src, const short *coef, uint32_…
58 extern "C" void rsdIntrinsicColorMatrix3x3_K(void *dst, const void *src, const short *coef, uint32_…
59 extern "C" void rsdIntrinsicColorMatrixDot_K(void *dst, const void *src, const short *coef, uint32_…
DrsdIntrinsicConvolve3x3.cpp51 …x3_K(void *dst, const void *y0, const void *y1, const void *y2, const short *coef, uint32_t count);
DrsdIntrinsicConvolve5x5.cpp99 const short *coef, uint32_t count);
/frameworks/base/core/java/android/speech/srec/
DUlawEncoderInputStream.java78 int coef = MAX_ULAW * (1 << SCALE_BITS) / max; in encode() local
82 pcm = (pcm * coef) >> SCALE_BITS; in encode()
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dstat_bits.c130 ptcoef = tnsInfo->coef + i*TNS_MAX_ORDER_SHORT; in tnsCount()
142 ptcoef = tnsInfo->coef + i*TNS_MAX_ORDER_SHORT; in tnsCount()
Dbitenc.c317 if (tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] > 3 || in encodeTnsData()
318 tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] < -4) { in encodeTnsData()
328 if (tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] > 1 || in encodeTnsData()
329 tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] < -2) { in encodeTnsData()
339 WriteBits(hBitStream,tnsInfo.coef[i*TNS_MAX_ORDER_SHORT+k] & rmask[coefBits],coefBits); in encodeTnsData()
Dtns.c415 tnsInfo->coef, in TnsEncode()
419 Index2Parcor(tnsInfo->coef, in TnsEncode()
460 &tnsInfo->coef[subBlockNumber*TNS_MAX_ORDER_SHORT], in TnsEncode()
464 Index2Parcor(&tnsInfo->coef[subBlockNumber*TNS_MAX_ORDER_SHORT], in TnsEncode()
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
Dtns.h105 Word16 coef[TRANS_FAC*TNS_MAX_ORDER_SHORT]; member
/frameworks/base/core/java/android/hardware/
DSensorManager.java1119 final float coef = 1.0f / 5.255f; in getAltitude() local
1120 return 44330.0f * (1.0f - (float)Math.pow(p/p0, coef)); in getAltitude()