/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | autocorr.cpp | 314 Word32 sum; in Autocorr() local 338 sum = 0L; in Autocorr() 346 sum += ((Word32)temp * temp) << 1; in Autocorr() 347 if (sum < 0) in Autocorr() 392 sum = 0L; in Autocorr() 398 sum += ((Word32)temp * temp) << 1; in Autocorr() 401 sum += ((Word32)temp * temp) << 1; in Autocorr() 403 if (sum > 0) in Autocorr() 410 sum += 1L; /* Avoid the case of all zeros */ in Autocorr() 414 norm = norm_l(sum); in Autocorr() [all …]
|
D | ton_stab.cpp | 696 Word16 sum; in check_gp_clipping() local 698 sum = shr(g_pitch, 3, pOverflow); /* Division by 8 */ in check_gp_clipping() 701 sum = add(sum, st->gp[i], pOverflow); in check_gp_clipping() 704 if (sum > GP_CLIP) in check_gp_clipping()
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | add.cpp | 181 Word32 sum; in add() local 182 sum = (Word32) var1 + var2; in add() 188 if (sum > 0X00007fffL) in add() 191 sum = MAX_16; in add() 193 else if (sum < (Word32) 0xffff8000L) in add() 196 sum = MIN_16; in add() 201 return ((Word16) sum); in add()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicColorMatrix.cpp | 85 float4 sum; in One() local 86 sum.x = i.x * coeff[0] + in One() 90 sum.y = i.x * coeff[1] + in One() 94 sum.z = i.x * coeff[2] + in One() 98 sum.w = i.x * coeff[3] + in One() 103 sum.x = sum.x < 0 ? 0 : (sum.x > 255 ? 255 : sum.x); in One() 104 sum.y = sum.y < 0 ? 0 : (sum.y > 255 ? 255 : sum.y); in One() 105 sum.z = sum.z < 0 ? 0 : (sum.z > 255 ? 255 : sum.z); in One() 106 sum.w = sum.w < 0 ? 0 : (sum.w > 255 ? 255 : sum.w); in One() 108 *out = convert_uchar4(sum); in One()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | adaptive_smooth_no_mmx.cpp | 236 int sum; in AdaptiveSmooth_NoMMX() local 322 sum = (*(sum_V_ptr - 2) + (*(sum_V_ptr - 1) << 1) + in AdaptiveSmooth_NoMMX() 329 if ((int)(*Rec_Y_ptr - sum) > max_diff) in AdaptiveSmooth_NoMMX() 331 sum = *Rec_Y_ptr - max_diff; in AdaptiveSmooth_NoMMX() 336 else if ((int)(*Rec_Y_ptr - sum) < -max_diff) in AdaptiveSmooth_NoMMX() 338 sum = *Rec_Y_ptr + max_diff; in AdaptiveSmooth_NoMMX() 340 *Rec_Y_ptr++ = sum; /* assign value of sum to pelc1 in AdaptiveSmooth_NoMMX() 396 sum = (*(sum_V_ptr - 2) + (*(sum_V_ptr - 1) << 1) + in AdaptiveSmooth_NoMMX() 400 if ((int)(*Rec_Y_ptr - sum) > max_diff) in AdaptiveSmooth_NoMMX() 402 sum = *Rec_Y_ptr - max_diff; in AdaptiveSmooth_NoMMX() [all …]
|
D | deringing_chroma.cpp | 42 int sum, sum1, incr; in Deringing_Chroma() local 100 sum = (*(ptr2 - 2) + (*(ptr2 - 1) << 1) + *ptr2 + 8) >> 4; in Deringing_Chroma() 103 if (PV_ABS(*ptr - sum) > max_diff) in Deringing_Chroma() 105 if (sum > *ptr) in Deringing_Chroma() 106 sum = *ptr + max_diff; in Deringing_Chroma() 108 sum = *ptr - max_diff; in Deringing_Chroma() 110 *ptr++ = (uint8) sum; in Deringing_Chroma() 166 sum = (*(ptr2 - 2) + (*(ptr2 - 1) << 1) + *ptr2 + 8) >> 4; in Deringing_Chroma() 169 if (PV_ABS(*ptr - sum) > max_diff) in Deringing_Chroma() 171 if (sum > *ptr) in Deringing_Chroma() [all …]
|
D | chvr_filter.cpp | 42 int sum, delta; in CombinedHorzVertRingFilter() local 138 sum = v[0] in CombinedHorzVertRingFilter() 146 … delta = (sum + *ptr_c + 4) >> 3; /* Average pixel values with rounding */ in CombinedHorzVertRingFilter() 156 sum = sum - v[counter] + *ptr_n; in CombinedHorzVertRingFilter() 158 delta = (sum + *ptr_c + 4) >> 3; in CombinedHorzVertRingFilter() 298 sum = v[0] in CombinedHorzVertRingFilter() 306 delta = (sum + *ptr_c + 4) >> 3; in CombinedHorzVertRingFilter() 314 sum = sum - v[counter] + *ptr_n; in CombinedHorzVertRingFilter() 316 delta = (sum + *ptr_c + 4) >> 3; in CombinedHorzVertRingFilter()
|
D | vlc_dequant.cpp | 75 int sum; in VlcDequantMpegIntraBlock() local 102 sum = 0; in VlcDequantMpegIntraBlock() 157 sum ^= temp; in VlcDequantMpegIntraBlock() 198 sum ^= temp; /* 7/5/01 */ in VlcDequantMpegIntraBlock() 214 sum ^= temp; /* 7/5/01 */ in VlcDequantMpegIntraBlock() 247 sum ^= temp; in VlcDequantMpegIntraBlock() 264 sum ^= temp; in VlcDequantMpegIntraBlock() 303 sum ^= temp; /* 7/5/01 */ in VlcDequantMpegIntraBlock() 319 sum ^= temp; in VlcDequantMpegIntraBlock() 336 sum ^= temp; in VlcDequantMpegIntraBlock() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
D | omxVCM4P10_PredictIntra_16x16_s.s | 50 sum RN 6 label 228 UXTH sum, tVal2 ;// Extract the lower half for result 248 ADD sum, tVal7, tVal6 ;// sum = tVal8 + tVal10 258 ADD sum, sum, tVal7 ;// sum = sum + tVal7 268 ADD sum, sum, tVal7 ;// sum = sum + tVal7 272 ADD sum, sum, tVal7 ;// sum = sum + tVal7 276 MOVEQ sum, #128 ;// sum = 128 if(count == 0) 279 ADDEQ sum, sum, #8 ;// sum += 8 if(count == 1) 280 ADDNE sum, sum, tVal2 ;// sum = sumleft + sumupper 281 ADDNE sum, sum, #16 ;// sum += 16 if(count == 2) [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AAtomizer.cpp | 58 uint32_t sum = 0; in Hash() local 60 sum = (sum * 31) + *s; in Hash() 64 return sum; in Hash()
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
D | omxVCM4P2_DCT8x8blk.c | 66 OMX_F64 sum = 0.0; in omxVCM4P2_DCT8x8blk() local 71 sum += pSrc[(x * 8) + y] * in omxVCM4P2_DCT8x8blk() 76 pDst[(u * 8) + v]= armRoundFloatToS16 (sum); in omxVCM4P2_DCT8x8blk()
|
D | omxVCM4P2_IDCT8x8blk.c | 67 OMX_F64 sum = 0.0; in omxVCM4P2_IDCT8x8blk() local 72 sum += pSrc[(u * 8) + v] * in omxVCM4P2_IDCT8x8blk() 77 pDst[(x * 8) + y] = (OMX_S16) floor(sum + 0.5); in omxVCM4P2_IDCT8x8blk()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | EchoSuppressor.cpp | 104 uint32_t sum = 0; in run() local 108 sum += ((mLastX >= 0) ? mLastX : -mLastX) >> 15; in run() 111 mXs[i] = sum >> mShift; in run() 130 uint32_t sum = 0; in run() local 134 sum += ((mLastY >= 0) ? mLastY : -mLastY) >> 15; in run() 137 ys[i] = sum >> mShift; in run()
|
/frameworks/base/media/jni/ |
D | android_media_ResampleInputStream.cpp | 95 long sum = 0; in android_media_ResampleInputStream_fir21() local 99 sum += ((long)*firp++) * ((long)*inp++); in android_media_ResampleInputStream_fir21() 101 out[i] = (short)(sum >> 16); in android_media_ResampleInputStream_fir21()
|
/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 52 float sum = 0; in normalize() local 56 sum += sample[i] * sample[i]; in normalize() 59 float magnitude = (float)Math.sqrt(sum); in normalize()
|
D | GestureUtils.java | 232 float sum = topLeft + topRight + btmLeft + btmRight; in plot() 234 float value = topLeft / sum; in plot() 240 value = topRight / sum; in plot() 246 value = btmLeft / sum; in plot() 252 value = btmRight / sum; in plot() 377 float sum = 0; in computeTotalLength() local 382 sum += Math.sqrt(dx * dx + dy * dy); in computeTotalLength() 384 return sum; in computeTotalLength() 425 float sum = 0; in cosineDistance() local 428 sum += vector1[i] * vector2[i]; in cosineDistance() [all …]
|
/frameworks/base/media/libdrm/mobile1/src/parser/ |
D | parser_dcf.c | 24 int32_t sum; in drm_parseUintVar() local 37 sum = buffer[byteLen]; in drm_parseUintVar() 39 sum += ((buffer[i] & UINT_VAR_DATA) << 7 * (byteLen - i)); /* UINT_VAR_DATA == 0x7F */ in drm_parseUintVar() 41 return sum; in drm_parseUintVar()
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | intra_est.cpp | 220 uint32 sum = 0; in intrapred_luma_16x16() local 248 sum = word1 & 0xFF00FF; in intrapred_luma_16x16() 250 sum += word1; in intrapred_luma_16x16() 252 sum += word1; in intrapred_luma_16x16() 254 sum += word2; in intrapred_luma_16x16() 256 sum += word1; in intrapred_luma_16x16() 258 sum += word3; in intrapred_luma_16x16() 260 sum += word1; in intrapred_luma_16x16() 262 sum += word4; in intrapred_luma_16x16() 264 sum += (sum >> 16); in intrapred_luma_16x16() [all …]
|
/frameworks/base/core/java/android/net/dhcp/ |
D | DhcpPacket.java | 377 int sum = seed; in checksum() local 392 sum += intAbs(s); in checksum() 406 sum += b * 256; in checksum() 409 sum = ((sum >> 16) & 0xFFFF) + (sum & 0xFFFF); in checksum() 410 sum = ((sum + ((sum >> 16) & 0xFFFF)) & 0xFFFF); in checksum() 411 int negated = ~sum; in checksum()
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | shadows.rs | 42 double sum = poly[0]+poly[1]*f; 46 sum += poly[i]*f; 48 return sum;
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | shadows.rs | 42 double sum = poly[0]+poly[1]*f; 46 sum += poly[i]*f; 48 return sum;
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | shadows.rs | 42 double sum = poly[0]+poly[1]*f; 46 sum += poly[i]*f; 48 return sum;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | fastquant.cpp | 550 Int sum = 0; in BlockQuantDequantMPEGInter() local 627 sum += q_value; in BlockQuantDequantMPEGInter() 656 if ((sum&0x1) == 0) in BlockQuantDequantMPEGInter() 679 Int sum = 0; in BlockQuantDequantMPEGIntra() local 731 sum = q_value; in BlockQuantDequantMPEGIntra() 801 sum += q_value; in BlockQuantDequantMPEGIntra() 829 if ((sum&0x1) == 0) in BlockQuantDequantMPEGIntra()
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | vec_types.h | 41 double sum = 0; in Length() local 43 sum += static_cast<double> (data[i] * data[i]); in Length() 44 return static_cast<T>(sqrt(sum)); in Length()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | pitch_f4.c | 296 Word16 sum; in Interpol_4() local 318 sum = extract_h(L_add(L_shl2(L_sum, 2), 0x8000)); in Interpol_4() 319 return (sum); in Interpol_4()
|