/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | add.cpp | 39 Description: Changed all occurrences of L_sum with sum. 104 sum = 16-bit limited sum of var1 and var2 (Word16) 135 Word32 sum; 137 sum = (Word32) var1 + var2; 143 var_out = saturate (sum); 181 Word32 sum; local 182 sum = (Word32) var1 + var2; 186 /* to conserve MIPS, i.e., var_out = saturate (sum) */ 188 if (sum > [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | autocorr.cpp | 209 Word32 sum; 226 sum = 0L; 230 sum = L_mac (sum, y[i], y[i]); 235 if (L_sub (sum, MAX_32) == 0L) 248 sum = L_add (sum, 1L); // Avoid the case of all zeros 252 norm = norm_l (sum); 253 sum = L_shl (sum, nor 314 Word32 sum; local [all...] |
H A D | ton_stab.cpp | 629 Purpose: Verify that the sum of the last (N_FRAME+1) pitch 649 Word16 i, sum; 651 sum = shr(g_pitch, 3); // Division by 8 654 sum = add(sum, st->gp[i]); 657 if (sub(sum, GP_CLIP) > 0) 696 Word16 sum; local 698 sum = shr(g_pitch, 3, pOverflow); /* Division by 8 */ 701 sum = add(sum, s [all...] |
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | convolve3x3.rs | 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2]; 35 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y)) * gCoeffs[3]; 36 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y)) * gCoeffs[4]; 37 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y)) * gCoeffs[5]; 38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6]; 39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7]; 40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8]; 42 sum [all...] |
H A D | histogram.rs | 49 int sum = 0; 51 sum += rsGetElementAt_int(gSums, x, i); 53 return sum;
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | convolve3x3.rs | 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2]; 35 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y)) * gCoeffs[3]; 36 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y)) * gCoeffs[4]; 37 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y)) * gCoeffs[5]; 38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6]; 39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7]; 40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8]; 42 sum [all...] |
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | convolve3x3.rs | 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2]; 35 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y)) * gCoeffs[3]; 36 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y)) * gCoeffs[4]; 37 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y)) * gCoeffs[5]; 38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6]; 39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7]; 40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8]; 42 sum [all...] |
H A D | histogram.rs | 49 int sum = 0; 51 sum += rsGetElementAt_int(gSums, x, i); 53 return sum;
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | focus_peak.rs | 31 int sum = 0; 35 sum += tmp * tmp; 37 sum += tmp * tmp; 39 sum += tmp * tmp; 44 sum += tmp * tmp; 46 sum += tmp * tmp; 48 sum += tmp * tmp; 50 sum >>= 9; 51 sum *= sum * su [all...] |
/frameworks/base/services/net/java/android/net/util/ |
H A D | IpUtils.java | 47 int sum = seed; 60 sum += intAbs(shortBuf.get(i)); 73 sum += b * 256; 76 sum = ((sum >> 16) & 0xFFFF) + (sum & 0xFFFF); 77 sum = ((sum + ((sum >> 16) & 0xFFFF)) & 0xFFFF); 78 int negated = ~sum; [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | AAtomizer.cpp | 58 uint32_t sum = 0; local 60 sum = (sum * 31) + *s; 64 return sum;
|
/frameworks/base/core/tests/hosttests/test-apps/SharedUid/32/src/com/framework/shareduid/bit32/ |
H A D | MainActivity.java | 39 int sum = Native.add(2, 3); 40 tv.setText("[computed by 32 bit native code] 2 + 3 = " + String.valueOf(sum));
|
/frameworks/base/core/tests/hosttests/test-apps/SharedUid/64/src/com/framework/shareduid/bit64/ |
H A D | MainActivity.java | 39 int sum = Native.add(2, 3); 40 tv.setText("[computed by 64 bit native code] 2 + 3 = " + String.valueOf(sum));
|
/frameworks/base/core/tests/hosttests/test-apps/SharedUid/dual/src/com/framework/shareduid/dual/ |
H A D | MainActivity.java | 39 int sum = Native.add(2, 3); 40 tv.setText("[computed by 32 bit native code] 2 + 3 = " + String.valueOf(sum));
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | adaptive_smooth_no_mmx.cpp | 122 depends on a weighted sum of the 9 luminance values. The position of Pelc1 236 int sum; local 271 *sum_V_ptr++ = pelu + (pelc << 1) + pell; /* weighted sum of pelu0, 273 /* sum of 0's and 1's (0 if pixel value is below thr, 1 if value 285 *sum_V_ptr++ = pelu + (pelc << 1) + pell; /* weighted sum of pelu1, 287 /* sum of 0's and 1's (0 if pixel value is below thr, 1 if value 306 /* weighted sum of pelu1, pelc1 and pell1 */ 308 /* sum of 0's and 1's (0 if pixel value is below thr, 320 /* sum is a weighted average of the 9 pixel luminance 322 sum [all...] |
H A D | deringing_chroma.cpp | 42 int sum, sum1, incr; local 100 sum = (*(ptr2 - 2) + (*(ptr2 - 1) << 1) + *ptr2 + 8) >> 4; 103 if (PV_ABS(*ptr - sum) > max_diff) 105 if (sum > *ptr) 106 sum = *ptr + max_diff; 108 sum = *ptr - max_diff; 110 *ptr++ = (uint8) sum; 166 sum = (*(ptr2 - 2) + (*(ptr2 - 1) << 1) + *ptr2 + 8) >> 4; 169 if (PV_ABS(*ptr - sum) > max_diff) 171 if (sum > *pt [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
H A D | omxVCM4P2_DCT8x8blk.c | 81 OMX_F64 sum = 0.0; local 86 sum += pSrc[(x * 8) + y] * 91 pDst[(u * 8) + v]= armRoundFloatToS16 (sum);
|
H A D | omxVCM4P2_IDCT8x8blk.c | 82 OMX_F64 sum = 0.0; local 87 sum += pSrc[(u * 8) + v] * 92 pDst[(x * 8) + y] = (OMX_S16) floor(sum + 0.5);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | contrast.cpp | 44 float sum = 0; local 47 sum += (lumArray[i] - avg) * (lumArray[i] - avg); 50 return ((float) sqrt(sum / numPixels));
|
H A D | stats_scorer.cpp | 29 float sum = 0.0; local 34 sum += val; 38 result[0] = sum / numPixels; // mean 53 float sum = 0.0; local 60 sum += val; 65 result[0] = sum / numPixels; // mean
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
H A D | canny.rs | 105 ushort sum = 0; 108 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1); 109 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 110 sum += 5 * rsGetElementAt_uchar(edgeImage, x1++, y1); 111 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 112 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1); 115 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 116 sum += 9 * rsGetElementAt_uchar(edgeImage, x1++, y1); 117 sum += 12 * rsGetElementAt_uchar(edgeImage, x1++, y1); 118 sum [all...] |
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | Matrix.java | 99 double sum = 0;
101 sum += m[col + j] * src[j];
103 dest[i] = (float) sum;
110 double sum = m[col + 3];
112 sum += m[col + j] * src[j];
114 dest[i] = (float) sum;
121 double sum = 0;
123 sum += m[col + j] * src[j];
125 dest[i] = (float) sum;
132 double sum [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
H A D | PagingIndicatorTest.java | 60 int sum = selectedX[0] + selectedX[pageCount - 1]; 62 assertEquals("Selected dots are not symmetric", sum, 67 sum = leftX[0] + rightX[pageCount - 1]; 69 assertEquals("Deselected dots are not symmetric", sum,
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
H A D | omxVCM4P10_PredictIntra_16x16_s.s | 64 sum RN 6 label 224 UADD16 tVal2, tVal2, tVal8 ;// sum(pSrcAbove[0] to pSrcAbove[7]) 232 UADD16 tVal8, tVal8, tVal10 ;// sum(pSrcAbove[8] to pSrcAbove[15]) 234 UADD16 tVal2, tVal2, tVal8 ;// sum(pSrcAbove[0] to pSrcAbove[15]) 238 ADD tVal2, tVal2, tVal2, LSR #16 ;// sum(pSrcAbove[0] to pSrcAbove[15]) 242 UXTH sum, tVal2 ;// Extract the lower half for result 262 ADD sum, tVal7, tVal6 ;// sum = tVal8 + tVal10 272 ADD sum, sum, tVal [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | Instance.java | 52 float sum = 0; 56 sum += sample[i] * sample[i]; 59 float magnitude = (float)Math.sqrt(sum);
|