Searched refs:low (Results 1 - 25 of 46) sorted by relevance

12

/frameworks/rs/driver/runtime/arch/
H A Dclamp.c25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
26 return amount < low ? low : (amount > high ? high : amount); \
46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
48 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
49 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
55 r.x = amount.x < low
[all...]
H A Dgeneric.c20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high);
30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
31 return amount < low ? low : (amount > high ? high : amount); \
34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low,
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicInlines.h85 static inline int4 clamp(int4 amount, int low, int high) { argument
87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z);
90 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w);
94 static inline float4 clamp(float4 amount, float low, floa argument
103 clamp(int2 amount, int low, int high) argument
110 clamp(float2 amount, float low, float high) argument
117 clamp(int amount, int low, int high) argument
121 clamp(float amount, float low, float high) argument
[all...]
/frameworks/av/include/media/
H A DInterpolator.h80 auto low = high; local
81 --low;
86 return high->first == x ? high->second : low->second;
88 return ((high->first - x) * low->second + (x - low->first) * high->second)
89 / (high->first - low->first);
95 const S interval = high->first - low->first;
98 if (mMemo.count(low->first) != 0) {
99 const S t = (x - low->first) / interval;
101 const auto &memo = mMemo[low
[all...]
/frameworks/base/tools/incident_report/
H A Dformatter.cpp72 size_t low = 0; local
75 while (low <= high) {
76 size_t mid = (low + high) >> 1;
81 low = mid + 1;
/frameworks/av/media/libstagefright/webm/
H A DEbmlUtil.cpp55 int32_t low = u; local
56 return low !=0 ? numberOfTrailingZeros32(low)
/frameworks/base/core/java/android/text/
H A DAndroidBidi.java170 for (int low = i, hi = e - 2; low < hi; low += 2, hi -= 2) {
171 int x = ld[low]; ld[low] = ld[hi]; ld[hi] = x;
172 x = ld[low+1]; ld[low+1] = ld[hi+1]; ld[hi+1] = x;
H A DLayout.java1262 int high = getLineCount(), low = -1, guess;
1264 while (high - low > 1) {
1265 guess = (high + low) / 2;
1270 low = guess;
1273 if (low < 0)
1276 return low;
1285 int high = getLineCount(), low = -1, guess;
1287 while (high - low > 1) {
1288 guess = (high + low) / 2;
1293 low
[all...]
/frameworks/base/core/java/android/util/
H A DMathUtils.java37 public static int constrain(int amount, int low, int high) { argument
38 return amount < low ? low : (amount > high ? high : amount);
41 public static long constrain(long amount, long low, long high) { argument
42 return amount < low ? low : (amount > high ? high : amount);
45 public static float constrain(float amount, float low, float high) { argument
46 return amount < low ? low : (amount > high ? high : amount);
/frameworks/base/core/java/android/animation/
H A DPathKeyframes.java78 int low = 0;
81 while (low <= high) {
82 int mid = (low + high) / 2;
88 low = mid + 1;
94 // now high is below the fraction and low is above the fraction
95 return interpolateInRange(fraction, high, low);
/frameworks/av/media/libeffects/testlibs/
H A DAudioEqualizer.cpp172 void AudioEqualizer::getBandRange(int band, uint32_t & low, argument
176 low = 0;
179 low = mpHighShelf->getFrequency();
182 mpPeakingFilters[band - 1].getBandRange(low, high);
256 uint32_t low = mpLowShelf->getFrequency(); local
257 if (targetFreq <= low) {
272 low = freq;
274 // Now, low is right below the target and high is right above. See which one
276 low = Effects_log2(low);
[all...]
H A DAudioPeakingFilter.cpp103 void AudioPeakingFilter::getBandRange(uint32_t & low, uint32_t & high) const { argument
107 low = static_cast<uint32_t>((static_cast<uint64_t>(mNominalFrequency) * Effects_exp2(-halfBW + (16 << 15))) >> 16);
H A DAudioEqualizer.h29 // The EQ is composed of a low-shelf, zero or more peaking filters and a high
145 // For the low shelf, the low bound is 0 and the high bound is the band
147 // For the high shelf, the low bound is the band frequency and the high
150 void getBandRange(int band, uint32_t & low, uint32_t & high) const;
221 // The low-shelving filter.
H A DAudioPeakingFilter.h89 void getBandRange(uint32_t & low, uint32_t & high) const;
145 // the low-level biquad coefficients.
/frameworks/base/graphics/java/android/graphics/drawable/
H A DLevelListDrawable.java68 public void addLevel(int low, int high, Drawable drawable) { argument
70 mLevelListState.addLevel(low, high, drawable);
100 int low = 0;
118 low = a.getInt(
147 mLevelListState.addLevel(low, high, dr);
197 public void addLevel(int low, int high, Drawable drawable) { argument
199 mLows[pos] = low;
/frameworks/av/media/img_utils/include/img_utils/
H A DDngUtils.h34 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_DecodePadMV_PVOP.c111 OMX_S16 high, low, range; local
150 low = ( (-32) * scaleFactor);
226 if ( pDstMVCurMB[iBlk].dx < low )
235 if ( pDstMVCurMB[iBlk].dy < low )
/frameworks/base/cmds/incident/
H A Dmain.cpp100 size_t low = 0; local
103 while (low <= high) {
104 size_t mid = (low + high) >> 1;
109 low = mid + 1;
/frameworks/base/libs/hwui/
H A DSpotShadow.h53 static void quicksortCirc(Vector2* points, int low, int high, const Vector2& center);
54 static void quicksortX(Vector2* points, int low, int high);
/frameworks/native/opengl/libs/ETC1/
H A Detc1.cpp168 etc1_uint32 low, bool second, bool flipped) {
188 int offset = ((low >> k) & 1) | ((low >> (k + 15)) & 2);
202 etc1_uint32 low = (pIn[4] << 24) | (pIn[5] << 16) | (pIn[6] << 8) | pIn[7]; local
229 decode_subblock(pOut, r1, g1, b1, tableA, low, false, flipped);
230 decode_subblock(pOut, r2, g2, b2, tableB, low, true, flipped);
235 etc1_uint32 low; member in struct:__anon1823
350 &pCompressed->low, yy + x * 4, pModifierTable);
365 &pCompressed->low, y + xx * 4, pModifierTable);
437 pCompressed->low
167 decode_subblock(etc1_byte* pOut, int r, int g, int b, const int* table, etc1_uint32 low, bool second, bool flipped) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java270 double low = 0, high = lab[0];
272 for (int i = 0; i < 15 && high - low > 0.00001; i++) {
273 final double l = (low + high) / 2;
280 low = l;
285 return ColorUtilsFromCompat.LABToColor(low, a, b);
307 int low = startAlpha, high = 255;
308 for (int i = 0; i < 15 && high - low > 0; i++) {
309 final int alpha = (low + high) / 2;
314 low = alpha;
341 float low
835 constrain(int amount, int low, int high) argument
839 constrain(float amount, float low, float high) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DAssertHelpers.java116 * Assert that {@code low <= value <= high}
118 public static void assertInRange(float value, float low, float high) { argument
120 String.format("Value %s must be greater or equal to %s, but was lower", value, low),
121 value >= low);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java307 int high = start + len, low = start - 1, guess;
309 while (high - low > 1) {
310 guess = (high + low) / 2;
313 low = guess;
/frameworks/base/core/java/android/view/
H A DGhostView.java237 int low = firstGhost;
240 while (low <= high) {
241 int mid = (low + high) / 2;
246 low = mid + 1;
253 return low;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/
H A DSpotShadow.java296 private static void quicksortCircle(@NonNull float[] points, int low, int high, argument
298 int i = low, j = high;
299 int p = low + (high - low) / 2;
314 if (low < j) {
315 quicksortCircle(points, low, j, ctr);
327 * @param low lowest index used to do quick sort sort
330 private static void quicksortX(@NonNull float[] points, int low, int high) { argument
331 int i = low, j = high;
332 int p = low
[all...]

Completed in 490 milliseconds

12