/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | median5.cpp | 120 int16 x1, x2, x3, x4, x5; in median5() local 124 x2 = x[-1]; in median5() 131 if (x2 < x1) in median5() 134 x1 = x2; in median5() 135 x2 = tmp; in median5() 153 if (x3 < x2) in median5() 155 tmp = x2; in median5() 156 x2 = x3; in median5() 159 if (x4 < x2) in median5() 161 tmp = x2; in median5() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | idct_vca.cpp | 99 int32 x0, x1, x2, x4, x5; in idctrow2() local 123 x2 = (181 * (x4 + x5) + 128) >> 8; in idctrow2() 130 res2 = (x0 + x2) >> 14; in idctrow2() 147 res = (x0 - x2) >> 14; in idctrow2() 187 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idctrow3() local 200 x2 = blk[10]; in idctrow3() 210 x6 = (W6 * x2 + 4) >> 3; in idctrow3() 211 x2 = (W2 * x2 + 4) >> 3; in idctrow3() 212 x8 = x0 - x2; in idctrow3() 213 x0 += x2; in idctrow3() [all …]
|
D | block_idct.cpp | 516 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idctrow() local 541 x2 = blk[14]; in idctrow() 567 x1 = W6 * (x3 + x2) + 4; in idctrow() 568 x2 = (x1 - (W2 + W6) * x2) >> 3; in idctrow() 578 x3 = x0 + x2; in idctrow() 579 x0 -= x2; in idctrow() 580 x2 = (181 * (x4 + x5) + 128) >> 8; in idctrow() 588 res2 = (x3 + x2) >> 14; in idctrow() 606 res = (x3 - x2) >> 14; in idctrow() 628 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8, temp; in idctrow_intra() local [all …]
|
D | get_pred_adv_b_add.cpp | 867 uint32 x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvancedBy1x1() local 896 x2 = *((uint32*)(prev + width)); /* load b3 b2 b1 b0, another line */ in GetPredAdvancedBy1x1() 901 x2m = (x2 >> 2) & mask; in GetPredAdvancedBy1x1() 903 x2 = x2 ^(x2m << 2); in GetPredAdvancedBy1x1() 905 x1 += x2; in GetPredAdvancedBy1x1() 917 x2 = *((uint32*)(prev += 4)); /* a11 a10 a9 a8 */ in GetPredAdvancedBy1x1() 919 x2m = (x2 >> 2) & mask; in GetPredAdvancedBy1x1() 921 x2 = x2 ^(x2m << 2); in GetPredAdvancedBy1x1() 924 x2 += y2; in GetPredAdvancedBy1x1() 947 y2 |= (x2 << 24); in GetPredAdvancedBy1x1() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | fastidct.cpp | 107 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idct_col3() local 109 x2 = blk[16]; in idct_col3() 114 x6 = W6 * x2; in idct_col3() 115 x2 = W2 * x2; in idct_col3() 116 x8 = x0 - x2; in idct_col3() 117 x0 += x2; in idct_col3() 118 x2 = x8; in idct_col3() 132 blk[24] = (x2 + x3) >> 8; in idct_col3() 136 blk[32] = (x2 - x3) >> 8; in idct_col3() 142 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idct_col4() local [all …]
|
D | motion_comp.cpp | 1126 ULong x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvBy1x1() local 1152 x2 = *((ULong*)(prev + lx)); /* load b3 b2 b1 b0, another line */ in GetPredAdvBy1x1() 1157 x2m = (x2 >> 2) & mask; in GetPredAdvBy1x1() 1159 x2 = x2 ^(x2m << 2); in GetPredAdvBy1x1() 1161 x1 += x2; in GetPredAdvBy1x1() 1173 x2 = *((ULong*)(prev += 4)); /* a11 a10 a9 a8 */ in GetPredAdvBy1x1() 1175 x2m = (x2 >> 2) & mask; in GetPredAdvBy1x1() 1177 x2 = x2 ^(x2m << 2); in GetPredAdvBy1x1() 1180 x2 += y2; in GetPredAdvBy1x1() 1203 y2 |= (x2 << 24); in GetPredAdvBy1x1() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicBlend.cpp | 119 uint32_t x2 = xend; in kernel() local 123 if (rsdIntrinsicBlend_K(out, in, info->slot, x1, x2) >= 0) in kernel() 129 for (;x1 < x2; x1++, out++) { in kernel() 134 for (;x1 < x2; x1++, out++, in++) { in kernel() 144 if ((x1 + 8) < x2) { in kernel() 145 uint32_t len = (x2 - x1) >> 3; in kernel() 153 for (;x1 < x2; x1++, out++, in++) { in kernel() 163 if ((x1 + 8) < x2) { in kernel() 164 uint32_t len = (x2 - x1) >> 3; in kernel() 172 for (;x1 < x2; x1++, out++, in++) { in kernel() [all …]
|
D | rsCpuIntrinsicConvolve3x3.cpp | 89 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU4() local 93 convert_float4(py0[x2]) * coeff[2] + in ConvolveOneU4() 96 convert_float4(py1[x2]) * coeff[5] + in ConvolveOneU4() 99 convert_float4(py2[x2]) * coeff[8]; in ConvolveOneU4() 111 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU2() local 115 convert_float2(py0[x2]) * coeff[2] + in ConvolveOneU2() 118 convert_float2(py1[x2]) * coeff[5] + in ConvolveOneU2() 121 convert_float2(py2[x2]) * coeff[8]; in ConvolveOneU2() 132 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)info->dim.x-1); in ConvolveOneU1() local 136 ((float)py0[x2]) * coeff[2] + in ConvolveOneU1() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 89 uint32_t x2 = x; in OneU4() local 95 convert_float4(py0[x2]) * coeff[2] + in OneU4() 101 convert_float4(py1[x2]) * coeff[7] + in OneU4() 107 convert_float4(py2[x2]) * coeff[12] + in OneU4() 113 convert_float4(py3[x2]) * coeff[17] + in OneU4() 119 convert_float4(py4[x2]) * coeff[22] + in OneU4() 132 uint32_t x2 = x; in OneU2() local 138 convert_float2(py0[x2]) * coeff[2] + in OneU2() 144 convert_float2(py1[x2]) * coeff[7] + in OneU2() 150 convert_float2(py2[x2]) * coeff[12] + in OneU2() [all …]
|
D | rsCpuIntrinsics_advsimd_ColorMatrix.S | 443 subs x2, x2, #8 454 subs x2, x2, #8 477 subs x2, x2, #8 494 subs x2, x2, #8 511 subs x2, x2, #8 520 subs x2, x2, #8 528 subs x2, x2, #8 545 subs x2, x2, #8 554 subs x2, x2, #8 562 subs x2, x2, #8 [all …]
|
D | rsCpuIntrinsics_advsimd_Resize.S | 113 lsl x2, x0, #VECSHIFT 115 add x0, x0, x2 116 udiv x1, x0, x2 117 msub x0, x1, x2, x0 185 sub x8, x2, x3 251 add x2, x2, #(CHUNKSIZE * 2 - 4) << 16 256 lsl x2, x2, #(47 - CHUNKSHIFT) 415 lsr x14, x2, #(63 - CHUNKSHIFT) 417 add x2, x2, x3 419 lsr x15, x2, #(63 - CHUNKSHIFT) [all …]
|
D | rsCpuIntrinsics_advsimd_YuvToRGB.S | 168 subs x2, x2, #32 187 subs x2, x2, #32 194 2: adds x2, x2, #32 209 tbz x2, #4, 1f 217 1: tbz x2, #3, 1f 225 1: tbz x2, #2, 1f 233 1: tbz x2, #1, 1f 241 1: tbz x2, #0, 1f 285 tbz x2, #4, 1f 287 1: tbz x2, #3, 1f [all …]
|
D | rsCpuIntrinsicBlur.cpp | 167 int x1, int x2) { in OneVFU4() argument 171 int t = (x2 - x1); in OneVFU4() 181 while(x2 > x1) { in OneVFU4() 200 const uchar *ptrIn, int iStride, const float* gPtr, int ct, int x1, int x2) { in OneVFU1() argument 202 int len = x2 - x1; in OneVFU1() 205 while((x2 > x1) && (((uintptr_t)ptrIn) & 0x3)) { in OneVFU1() 223 if (gArchUseSIMD && (x2 > x1)) { in OneVFU1() 224 int t = (x2 - x1) >> 2; in OneVFU1() 305 uint32_t x2 = xend; in kernelU4() local 311 stride, x1, info->current.y, x2 - x1, cp->mIradius, cp->mIp + cp->mIradius); in kernelU4() [all …]
|
D | rsCpuIntrinsicYuvToRGB.cpp | 122 uint32_t x2 = xend; in kernel() local 152 if((x1 & 1) && (x2 > x1)) { in kernel() 160 if((x2 > x1) && gArchUseSIMD) { in kernel() 161 int32_t len = x2 - x1; in kernel() 163 rsdIntrinsicYuv2_K(info->outPtr[0], Y, u, v, x1, x2); in kernel() 172 rsdIntrinsicYuv_K(info->outPtr[0], Y, v, x1, x2); in kernel() 176 rsdIntrinsicYuvR_K(info->outPtr[0], Y, u, x1, x2); in kernel() 184 if(x2 > x1) { in kernel() 186 while(x1 < x2) { in kernel()
|
D | rsCpuIntrinsics_advsimd_3DLUT.S | 127 subs x2, x2, #8 129 cmn x2, #8 // same as cmp x2, #-8 206 subs x2, x2, #8 211 cmn x2, #8 // same as cmp x2, #-8 219 tbz x2, #2, 2f 224 2: tbz x2, #1, 2f 227 2: tbz x2, #0, 2f 231 1: tst x2, #4 237 2: tst x2, #2 241 2: tst x2, #1
|
/frameworks/layoutlib/bridge/src/android/view/math/ |
D | Math3DHelper.java | 23 public final static int min(int x1, int x2, int x3) { in min() argument 24 return (x1 > x2) ? ((x2 > x3) ? x3 : x2) : ((x1 > x3) ? x3 : x1); in min() 27 public final static int max(int x1, int x2, int x3) { in max() argument 28 return (x1 < x2) ? ((x2 < x3) ? x3 : x2) : ((x1 < x3) ? x3 : x1); in max()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | p_med_ol.c | 174 Word16 x1, x2, x3, x4, x5; in median5() local 178 x2 = x[-1]; in median5() 183 if (x2 < x1) in median5() 186 x1 = x2; in median5() 187 x2 = tmp; in median5() 205 if (x3 < x2) in median5() 207 tmp = x2; in median5() 208 x2 = x3; in median5() 211 if (x4 < x2) in median5() 213 tmp = x2; in median5() [all …]
|
D | hp_wsp.c | 87 Word16 x0, x1, x2, x3; in Hp_wsp() local 99 x2 = mem[8]; in Hp_wsp() 103 x3 = x2; in Hp_wsp() 104 x2 = x1; in Hp_wsp() 120 L_tmp += (x2 * b[2])<<1; in Hp_wsp() 143 mem[8] = x2; in Hp_wsp()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerFirGen.h | 251 inline double Poly3(double A, double B, double C, double x, double x2) { 252 return Poly2(A, B, x) + C * x2; 259 inline double Poly4(double A, double B, double C, double D, double x, double x2) { 260 return Poly2(A, B, x) + Poly2(C, D, x) * x2; // same as poly2(poly2, poly2, x2); 269 double x2 = x * x; 270 return Poly4(A, B, C, D, x, x2) + Poly3(E, F, G, x, x2) * (x2 * x2); 274 double H, double x, double x2, double x4) { 275 return Poly4(A, B, C, D, x, x2) + Poly4(E, F, G, H, x, x2) * x4; 280 double x2 = x * x; 284 double x4 = x2 * x2; [all …]
|
/frameworks/av/media/libeffects/loudness/common/core/ |
D | math.h | 58 const T x2 = x * x; in ExpApproximationViaTaylorExpansionOrder5() local 59 const T x3 = x2 * x; in ExpApproximationViaTaylorExpansionOrder5() 60 const T x4 = x2 * x2; in ExpApproximationViaTaylorExpansionOrder5() 61 const T x5 = x3 * x2; in ExpApproximationViaTaylorExpansionOrder5() 62 return 1.0f + x + 0.5f * x2 + in ExpApproximationViaTaylorExpansionOrder5()
|
/frameworks/av/media/libeffects/loudness/dsp/core/ |
D | dynamic_range_compression.cpp | 104 void AdaptiveDynamicRangeCompression::Compress(float *x1, float *x2) { in Compress() argument 107 std::max(std::fabs(*x2), kMinLogAbsValue)); in Compress() 130 *x2 *= compressor_gain_; in Compress() 131 if (*x2 > kFixedPointLimit) { in Compress() 132 *x2 = kFixedPointLimit; in Compress() 134 if (*x2 < -kFixedPointLimit) { in Compress() 135 *x2 = -kFixedPointLimit; in Compress()
|
/frameworks/av/media/libstagefright/foundation/ |
D | base64.cpp | 131 uint8_t x2 = data[i + 1]; in encodeBase64() local 135 out->append(encode6Bit((x1 << 4 | x2 >> 4) & 0x3f)); in encodeBase64() 136 out->append(encode6Bit((x2 << 2 | x3 >> 6) & 0x3f)); in encodeBase64() 145 uint8_t x2 = data[i + 1]; in encodeBase64() local 147 out->append(encode6Bit((x1 << 4 | x2 >> 4) & 0x3f)); in encodeBase64() 148 out->append(encode6Bit((x2 << 2) & 0x3f)); in encodeBase64()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | Base64.cpp | 118 uint8_t x2 = data[i + 1]; in encodeBase64() local 122 out->push_back(encode6Bit((x1 << 4 | x2 >> 4) & 0x3f)); in encodeBase64() 123 out->push_back(encode6Bit((x2 << 2 | x3 >> 6) & 0x3f)); in encodeBase64() 132 uint8_t x2 = data[i + 1]; in encodeBase64() local 134 out->push_back(encode6Bit((x1 << 4 | x2 >> 4) & 0x3f)); in encodeBase64() 135 out->push_back(encode6Bit((x2 << 2) & 0x3f)); in encodeBase64()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioBiquadFilter.cpp | 153 audio_sample_t x2 = mDelays[0][1]; in process_normal_mono() local 166 acc = mac_coef_sample(b2, x2, acc); in process_normal_mono() 172 x2 = x1; in process_normal_mono() 177 mDelays[0][1] = x2; in process_normal_mono() 211 audio_sample_t x2 = mDelays[ch][1]; in process_normal_multi() local 219 acc = mac_coef_sample(b2, x2, acc); in process_normal_multi() 225 x2 = x1; in process_normal_multi() 232 mDelays[ch][1] = x2; in process_normal_multi()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 461 final int x2 = 2500; in testGammaCorrectionLowChangeAtCenter() local 464 final float y2 = GAMMA_CORRECTION_SPLINE.interpolate(x2); in testGammaCorrectionLowChangeAtCenter() 471 assertEquals(y2, strategy.getBrightness(x2), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 475 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionLowChangeAtCenter() 477 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), 0.01f /* tolerance */); in testGammaCorrectionLowChangeAtCenter() 489 final int x2 = 2500; in testGammaCorrectionHighChangeAtCenter() local 492 final float y2 = GAMMA_CORRECTION_SPLINE.interpolate(x2); in testGammaCorrectionHighChangeAtCenter() 499 assertEquals(y2, strategy.getBrightness(x2), 0.01f /* tolerance */); in testGammaCorrectionHighChangeAtCenter() 504 strategy.addUserDataPoint(x2, (float) MathUtils.pow(y2, gamma)); in testGammaCorrectionHighChangeAtCenter() 507 assertEquals(MathUtils.pow(y2, gamma), strategy.getBrightness(x2), in testGammaCorrectionHighChangeAtCenter() [all …]
|