Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 16 of 16) sorted by relevance

/system/media/audio_utils/include/audio_utils/
Dprimitives.h767 static const float scale = 1 << 15; in clamp16_from_float() local
768 return roundf(fmaxf(fminf(f * scale, scale - 1.f), -scale)); in clamp16_from_float()
830 static const float scale = (float)(1 << 23); in clamp24_from_float()
831 static const float limpos = 0x7fffff / scale; in clamp24_from_float()
832 static const float limneg = -0x800000 / scale; in clamp24_from_float()
839 f *= scale; in clamp24_from_float()
845 static const float scale = 1 << 23; in clamp24_from_float() local
846 return roundf(fmaxf(fminf(f * scale, scale - 1.f), -scale)); in clamp24_from_float()
879 static const float scale = (float)(1UL << 27); in clampq4_27_from_float() local
888 f *= scale; in clampq4_27_from_float()
[all …]
/system/update_engine/scripts/update_payload/
Dhistogram.py42 def __init__(self, data, scale=20, formatter=None): argument
52 self.scale = scale
58 def FromCountDict(count_dict, scale=20, formatter=None, key_names=None): argument
83 return Histogram(hist, scale, formatter)
86 def FromKeyList(key_list, scale=20, formatter=None, key_names=None): argument
106 return Histogram.FromCountDict(count_dict, scale, formatter, key_names)
113 bar_len = count * self.scale / self.total
114 hist_bar = '|%s|' % ('#' * bar_len).ljust(self.scale)
Dhistogram_unittest.py58 actual_str = str(histogram.Histogram([('Yes', 5), ('No', 1)], scale=5))
/system/media/audio_utils/
Dfixedfft.cpp109 int scale = LOG_FFT_SIZE, i, p, r; in fixed_fft() local
121 --scale; in fixed_fft()
131 int32_t w = MAX_FFT_SIZE / 4 - (r << scale); in fixed_fft()
146 int scale = LOG_FFT_SIZE, m = n >> 1, i; in fixed_fft_real() local
149 for (i = 1; i <= n; i <<= 1, --scale); in fixed_fft_real()
158 y = mult(y, ((int32_t) twiddle[i << scale])); in fixed_fft_real()
/system/extras/simpleperf/
Dcmd_stat.cpp63 double scale; member
69 uint32_t group_id, uint64_t count, double scale, in CounterSummary()
75 scale(scale), in CounterSummary()
127 return (fabs(scale - 1.0) < SCALE_ERROR_LIMIT); in IsMonitoredAllTheTime()
161 s.count + other->count, s.scale, true, in AutoGenerateSummaries()
189 s.Name().c_str(), s.comment.c_str(), 1.0 / s.scale * 100, in Show()
196 1.0 / s.scale * 100, (s.auto_generated ? " (generated)" : "")); in Show()
212 double used_cpus = run_sec / (duration_in_sec / s.scale); in GetCommentForSummary()
223 double hz = s.count / (running_time_in_sec / s.scale); in GetCommentForSummary()
264 double rate = s.count / (running_time_in_sec / s.scale); in GetCommentForSummary()
[all …]
/system/extras/tests/workloads/
Dcapture.sh30 scale=$3
34 ((out=in*scale/max))
/system/chre/platform/slpi/include/chre/platform/slpi/see/
Dsee_cal_helper.h111 bool hasScale, float scale[3], bool hasMatrix,
125 float scale[3]; member
/system/chre/platform/slpi/see/
Dsee_cal_helper.cc117 float scale[3], bool hasMatrix, float matrix[9], uint8_t accuracy, in updateCalibration()
131 memcpy(calData.scale, scale, sizeof(calData.scale)); in updateCalibration()
Dsee_helper.cc1031 SeeFloatArg scale = {}; in decodeSnsCalEvent() local
1037 .scale_factor.arg = &scale, in decodeSnsCalEvent()
1050 bool hasScale = (scale.index == 3); in decodeSnsCalEvent()
1055 info->suid, hasBias, offset.val, hasScale, scale.val, in decodeSnsCalEvent()
/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_context.h381 int scale;
404 int scale;
/system/extras/power_profile/camera_avg/Application/src/main/java/com/example/android/powerprofile/cameraavg/
DCameraAvgFragment.java766 float scale = Math.max( in configureTransform() local
769 matrix.postScale(scale, scale, centerX, centerY); in configureTransform()
/system/core/libpixelflinger/
Dtrap.cpp262 GGLcoord rmin, GGLcoord rmax, GGLcoord scale) in coverageFast() argument
267 return 0x7FFF - (d2-rmin)*scale; in coverageFast()
306 GGLcoord scale; in aa_pointx() local
309 scale = 0x800000 / (rmax - rmin); in aa_pointx()
322 covPtr[i] = coverageFast(x, y, rmin, rmax, scale); in aa_pointx()
Dscanline.cpp1975 const int scale = ti.st[j].scale + (iwscale - 30); in scanline_perspective() local
1976 if (scale >= 0) { in scanline_perspective()
1977 ti.st[j].ydvdy = v0 << scale; in scanline_perspective()
1978 ti.st[j].dvdx = dvdx << scale; in scanline_perspective()
1980 ti.st[j].ydvdy = v0 >> -scale; in scanline_perspective()
1981 ti.st[j].dvdx = dvdx >> -scale; in scanline_perspective()
/system/core/logd/
DREADME.property29 known to not scale well under log spam
/system/bt/build/secondary/third_party/aac/
DBUILD.gn138 "libFDK/src/scale.cpp",
/system/core/rootdir/
Dinit.rc136 # will vary across devices in unpredictable ways if allowed to scale with