Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 86) sorted by relevance

1234

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_resize.c236 int x, x1, x2, sum, k, int_pel, sub_pel; in interpolate() local
263 sum = 0; in interpolate()
266 sum += filter[k] * input[(pk < 0 ? 0 : in interpolate()
269 *optr++ = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in interpolate()
278 sum = 0; in interpolate()
280 sum += filter[k] * input[(int_pel - INTERP_TAPS / 2 + 1 + k < 0 ? in interpolate()
283 *optr++ = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in interpolate()
291 sum = 0; in interpolate()
293 sum += filter[k] * input[int_pel - INTERP_TAPS / 2 + 1 + k]; in interpolate()
294 *optr++ = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in interpolate()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/arm/armv6/
Dvp8_variance16x16_armv6.asm32 mov r8, #0 ; initialize sum = 0
51 usad8 r4, r7, lr ; calculate sum of positive differences
52 usad8 r5, r6, lr ; calculate sum of negative differences
54 ; calculate total sum
55 adds r8, r8, r4 ; add positive differences to sum
56 subs r8, r8, r5 ; subtract negative differences from sum
74 usad8 r4, r7, lr ; calculate sum of positive differences
75 usad8 r5, r6, lr ; calculate sum of negative differences
78 ; calculate total sum
79 add r8, r8, r4 ; add positive differences to sum
[all …]
Dvp8_variance_halfpixvar16x16_v_armv6.asm32 mov r8, #0 ; initialize sum = 0
57 usad8 r4, r7, lr ; calculate sum of positive differences
58 usad8 r5, r6, lr ; calculate sum of negative differences
60 ; calculate total sum
61 adds r8, r8, r4 ; add positive differences to sum
62 subs r8, r8, r5 ; subtract negative differences from sum
87 usad8 r4, r7, lr ; calculate sum of positive differences
88 usad8 r5, r6, lr ; calculate sum of negative differences
91 ; calculate total sum
92 add r8, r8, r4 ; add positive differences to sum
[all …]
Dvp8_variance_halfpixvar16x16_h_armv6.asm32 mov r8, #0 ; initialize sum = 0
56 usad8 r4, r7, lr ; calculate sum of positive differences
57 usad8 r5, r6, lr ; calculate sum of negative differences
59 ; calculate total sum
60 adds r8, r8, r4 ; add positive differences to sum
61 subs r8, r8, r5 ; subtract negative differences from sum
86 usad8 r4, r7, lr ; calculate sum of positive differences
87 usad8 r5, r6, lr ; calculate sum of negative differences
90 ; calculate total sum
91 add r8, r8, r4 ; add positive differences to sum
[all …]
Dvp8_variance8x8_armv6.asm31 mov r4, #0 ; initialize sum = 0
49 usad8 r6, r10, lr ; calculate sum of positive differences
50 usad8 r7, r8, lr ; calculate sum of negative differences
52 ; calculate total sum
53 add r4, r4, r6 ; add positive differences to sum
54 sub r4, r4, r7 ; subtract negative differences from sum
74 usad8 r6, r10, lr ; calculate sum of positive differences
75 usad8 r7, r8, lr ; calculate sum of negative differences
78 ; calculate total sum
79 add r4, r4, r6 ; add positive differences to sum
[all …]
Dvp8_variance_halfpixvar16x16_hv_armv6.asm32 mov r8, #0 ; initialize sum = 0
67 usad8 r4, r7, lr ; calculate sum of positive differences
68 usad8 r5, r6, lr ; calculate sum of negative differences
70 ; calculate total sum
71 adds r8, r8, r4 ; add positive differences to sum
72 subs r8, r8, r5 ; subtract negative differences from sum
108 usad8 r4, r7, lr ; calculate sum of positive differences
109 usad8 r5, r6, lr ; calculate sum of negative differences
112 ; calculate total sum
113 add r8, r8, r4 ; add positive differences to sum
[all …]
/hardware/bsp/intel/peripheral/libupm/src/guvas12d/
Dguvas12d.cxx52 unsigned long sum = 0; in value() local
57 sum += val; in value()
61 sum = sum / samples; in value()
62 float volts = (float)sum * aref / 1024.0; in value()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ppc/
Dvariance_altivec.asm51 ;# Compute sum first. Unpack to so signed subract
96 stw r3, 0(r8) ;# sum
100 mullw r3, r3, r3 ;# sum*sum
101 srlwi r3, r3, \DS ;# (sum*sum) >> DS
102 subf r3, r3, r4 ;# sse - ((sum*sum) >> DS)
140 stw r3, 0(r8) ;# sum
144 mullw r3, r3, r3 ;# sum*sum
145 srlwi r3, r3, \DS ;# (sum*sum) >> 8
146 subf r3, r3, r4 ;# sse - ((sum*sum) >> 8)
369 mullw r3, r3, r3 ;# sum*sum
[all …]
/hardware/bsp/intel/peripheral/libupm/src/groveemg/
Dgroveemg.cxx51 int val, sum = 0; in calibrate() local
56 sum += val; in calibrate()
59 sum /= 1100; in calibrate()
60 cout << "Static analog data = " << sum << endl; in calibrate()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_tapify.py32 sum = dist(ul,p)+dist(ur,p)+dist(ll,p)+dist(lr,p)
33 t4 = scale - t(ul,p,sum) - t(ur,p,sum) - t(ll,p,sum);
34 return [[ul,t(ul,p,sum)],[ur,t(ur,p,sum)],
35 [ll,t(ll,p,sum)],[lr,t4]]
Dvp9_convolve.c32 int k, sum = 0; in convolve_horiz() local
34 sum += src_x[k] * x_filter[k]; in convolve_horiz()
35 dst[x] = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in convolve_horiz()
54 int k, sum = 0; in convolve_avg_horiz() local
56 sum += src_x[k] * x_filter[k]; in convolve_avg_horiz()
58 clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)), 1); in convolve_avg_horiz()
78 int k, sum = 0; in convolve_vert() local
80 sum += src_y[k * src_stride] * y_filter[k]; in convolve_vert()
81 dst[y * dst_stride] = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in convolve_vert()
101 int k, sum = 0; in convolve_avg_vert() local
[all …]
/hardware/bsp/intel/peripheral/libupm/src/hx711/
Dhx711.cxx118 unsigned long sum = 0; in readAverage() local
120 sum += read(); in readAverage()
122 return sum / times; in readAverage()
134 double sum = readAverage(times); in tare() local
135 setOffset(sum); in tare()
/hardware/bsp/intel/peripheral/libupm/src/ina132/
Dina132.cxx54 float sum=0; in value() local
59 sum += v; in value()
62 vo = sum/10; in value()
/hardware/bsp/intel/peripheral/libupm/src/grovegsr/
Dgrovegsr.cxx52 int val, threshold, sum = 0; in calibrate() local
57 sum += val; in calibrate()
60 threshold = sum / 500; in calibrate()
/hardware/bsp/intel/peripheral/libupm/src/grovevdiv/
Dgrovevdiv.cxx51 unsigned int sum = 0; in value() local
55 sum += mraa_aio_read(m_aio); in value()
59 return (sum / samples); in value()
/hardware/bsp/intel/peripheral/libupm/src/gp2y0a/
Dgp2y0a.cxx55 int sum = 0; in value() local
60 sum += val; in value()
63 val = sum / samples; in value()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/arm/neon/
Dvariance_neon.asm29 vmov.i8 q8, #0 ;q8 - sum
49 vpadal.s16 q8, q11 ;calculate sum
68 vpaddl.s32 q0, q8 ;accumulate sum
82 ; while sum is signed, sum * sum is always positive and must be treated as
102 vmov.i8 q8, #0 ;q8 - sum
119 vpadal.s16 q8, q11 ;calculate sum
138 vpaddl.s32 q0, q8 ;accumulate sum
165 vmov.i8 q8, #0 ;q8 - sum
180 vpadal.s16 q8, q11 ;calculate sum
193 vpaddl.s32 q0, q8 ;accumulate sum
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/x86/
Dvariance_ssse3.c32 int *sum,
42 int *sum,
52 int *sum,
64 int *sum,
/hardware/qcom/camera/QCamera2/util/
DQCameraDisplay.cpp200 nsecs_t sum; in computeAverageVsyncInterval() local
211 sum = mVsyncIntervalHistory[0]; in computeAverageVsyncInterval()
215 sum += mVsyncIntervalHistory[j]; in computeAverageVsyncInterval()
222 sum = sum - vsyncMaxOutlier - vsyncMinOutlier; in computeAverageVsyncInterval()
223 mAvgVsyncInterval = sum / (CAMERA_NUM_VSYNC_INTERVAL_HISTORY - 2); in computeAverageVsyncInterval()
/hardware/bsp/intel/peripheral/libupm/examples/python/
Dldt0028.py58 sum = 0 variable
60 sum += buffer[i*SAMPLES_PER_SECOND+j]
61 average = sum / SAMPLES_PER_SECOND
/hardware/bsp/intel/peripheral/libupm/src/gas/
Dgas.cxx67 long sum = 0; in findThreshold() local
69 sum += buffer[i]; in findThreshold()
72 ctx->averageReading = sum / len; in findThreshold()
/hardware/bsp/intel/peripheral/libupm/src/mic/
Dmic.cxx82 long sum = 0; in findThreshold() local
84 sum += buffer[i]; in findThreshold()
87 ctx->averageReading = sum / len; in findThreshold()
/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Dldt0028.js65 var sum = 0; variable
67 sum += buffer[i*SAMPLES_PER_SECOND+j];
69 var average = sum / SAMPLES_PER_SECOND;
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/x86/
Dvp9_sad4d_intrin_avx2.c57 __m128i sum; in vp9_sad32x32x4d_avx2() local
76 sum = _mm_add_epi32(_mm256_castsi256_si128(sum_mlow), in vp9_sad32x32x4d_avx2()
79 _mm_storeu_si128((__m128i *)(res), sum); in vp9_sad32x32x4d_avx2()
142 __m128i sum; in vp9_sad64x64x4d_avx2() local
162 sum = _mm_add_epi32(_mm256_castsi256_si128(sum_mlow), in vp9_sad64x64x4d_avx2()
165 _mm_storeu_si128((__m128i *)(res), sum); in vp9_sad64x64x4d_avx2()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/armv6/
Dvp8_mse16x16_armv6.asm24 ;note: Based on vp8_variance16x16_armv6. In this function, sum is never used.
52 usad8 r5, r7, lr ; calculate sum of positive differences
53 usad8 r6, r8, lr ; calculate sum of negative differences
73 usad8 r5, r7, lr ; calculate sum of positive differences
74 usad8 r6, r8, lr ; calculate sum of negative differences
92 usad8 r5, r7, lr ; calculate sum of positive differences
93 usad8 r6, r8, lr ; calculate sum of negative differences
115 usad8 r5, r7, lr ; calculate sum of positive differences
116 usad8 r6, r8, lr ; calculate sum of negative differences

1234