Searched refs:fraction (Results 1 - 25 of 143) sorted by path

123456

/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
H A Dlog2_norm.h109 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
H A Dpow2.h104 Word16 fraction, /* (i) : Fractional part. (range: 0.0<=val<1.0) */
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dlog2_norm.cpp95 fraction = pointer to the fractional part of Log2 (of type Word16)
100 fraction points to the newly calculated fractional part of Log2
122 5. fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2
141 Word16 *fraction // (o) : Fractional part of Log2. (range: 0<=val<1)
150 *fraction = 0;
159 a = extract_l (L_x); // Extract b10-b24 of fraction
168 *fraction = extract_h (L_y);
200 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
209 *fraction = 0;
221 a = L_x & 0x7fff; /* Extract b10-b24 of fraction */
[all...]
H A Dpow2.cpp83 fraction = Fractional part whose valid range is 0 <= value < 1
103 This function computes L_x = pow(2.0, exponent.fraction)
107 1- i = bit10-b15 of fraction, 0 <= i <= 31
108 2- a = bit0-b9 of fraction
127 Word16 fraction // (i) : Fractional part. (range: 0.0<=val<1.0)
133 L_x = L_mult (fraction, 32); // L_x = fraction<<6
134 i = extract_h (L_x); // Extract b10-b16 of fraction
136 a = extract_l (L_x); // Extract b0-b9 of fraction
178 Word16 fraction, /* (
176 Pow2( Word16 exponent, Word16 fraction, Flag *pOverflow ) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dpvamrwb_math_op.cpp307 1- If exponant is odd then shift fraction right once.
309 3- i = bit25-b30 of fraction, 16 <= i <= 63 ->because of normalization.
312 6- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2
363 L_x = pow(2.0, exponant.fraction) (exponant = interger part)
364 = pow(2.0, 0.fraction) << exponant
371 1- i = bit10-b15 of fraction, 0 <= i <= 31
372 2- a = bit0-b9 of fraction
386 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
392 L_x = fraction << 5; /* L_x = fraction<<
547 Lg2_normalized(shl_int32(L_x, exp), exp, exponent, fraction); local
[all...]
H A Dpvamrwb_math_op.h85 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
98 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/
105 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
H A Dlog2.h50 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/
57 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
H A Dmath_op.h38 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dlog2.c52 * 5- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2
60 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
68 *fraction = 0;
75 a = (Word16)(L_x); /* Extract b10-b24 of fraction */
81 *fraction = extract_h (L_y);
101 Word16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1) */
107 Log2_norm ((L_x << exp), exp, exponent, fraction);
H A Dmath_op.c83 | 1- If exponant is odd then shift fraction right once. |
85 | 3- i = bit25-b30 of fraction, 16 <= i <= 63 ->because of normalization. |
88 | 6- fraction = table[i]<<16 - (table[i] - table[i+1]) * a * 2 |
136 | L_x = pow(2.0, exponant.fraction) (exponant = interger part) |
137 | = pow(2.0, 0.fraction) << exponant |
144 | 1- i = bit10-b15 of fraction, 0 <= i <= 31 |
145 | 2- a = bit0-b9 of fraction |
160 Word16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
166 L_x = vo_L_mult(fraction, 32); /* L_x = fraction<<
[all...]
H A Dpitch_f4.c62 Word32 frac /* (i) : fraction (-4..+3) */
72 Word16 * pit_frac, /* (o) : chosen fraction (0, 1, 2 or 3). */
79 Word32 fraction, i; local
122 fraction = -3;
126 fraction = -2;
130 fraction = 0;
132 max = Interpol_4(&corr[t0], fraction);
134 for (i = fraction + step; i <= 3; i += step)
140 fraction = i;
143 /* limit the fraction valu
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp257 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction) argument
279 bitleft = bitused - (numbyte << 3); /* number of bits used (fraction) */
283 *fraction = 1;
287 *fraction = 0;
301 if (*fraction)
329 Int fraction; local
341 BitstreamSavePartial(stream, &fraction);
359 Int fraction; local
377 BitstreamSavePartial(stream, &fraction);
422 Int bitused, bitleft, offset, fraction; local
585 Int fraction; local
684 Int movebyte, bitused, leftover, i, fraction; local
[all...]
H A Dbitstream_io.h35 PV_STATUS BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction);
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java646 final float fraction = ((float) c / (float) info.sizeBytes);
647 session.addProgress(fraction);
/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java262 public PathParser.PathData evaluate(float fraction, PathParser.PathData startPathData, argument
264 if (!PathParser.interpolatePathData(mPathData, startPathData, endPathData, fraction)) {
823 Log.d(TAG, "Keyframe " + i + ": fraction " +
861 // if there's only one keyframe, set its fraction to 1 and add one at 0
862 // if >1 keyframe, set the last fraction to 1, the first fraction to 0
918 private static Keyframe createNewKeyframe(Keyframe sampleKeyframe, float fraction) { argument
920 Keyframe.ofFloat(fraction) :
922 Keyframe.ofInt(fraction) :
923 Keyframe.ofObject(fraction);
[all...]
H A DArgbEvaluator.java44 * @param fraction The fraction from the starting to the ending values
54 public Object evaluate(float fraction, Object startValue, Object endValue) { argument
77 float a = startA + fraction * (endA - startA);
78 float r = startR + fraction * (endR - startR);
79 float g = startG + fraction * (endG - startG);
80 float b = startB + fraction * (endB - startB);
H A DFloatArrayEvaluator.java52 * Interpolates the value at each index by the fraction. If
57 * @param fraction The fraction from the starting to the ending values
64 public float[] evaluate(float fraction, float[] startValue, float[] endValue) { argument
73 array[i] = start + (fraction * (end - start));
H A DFloatEvaluator.java26 * <code>fraction</code> representing the proportion between the start and end values. The
29 * and <code>t</code> is <code>fraction</code>.
31 * @param fraction The fraction from the starting to the ending values
36 * <code>fraction</code> parameter.
38 public Float evaluate(float fraction, Number startValue, Number endValue) { argument
40 return startFloat + fraction * (endValue.floatValue() - startFloat);
H A DFloatKeyframeSet.java39 public Object getValue(float fraction) { argument
40 return getFloatValue(fraction);
56 public float getFloatValue(float fraction) { argument
57 if (fraction <= 0f) {
66 fraction = interpolator.getInterpolation(fraction);
68 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction);
73 } else if (fraction >= 1f) {
82 fraction = interpolator.getInterpolation(fraction);
[all...]
H A DIntArrayEvaluator.java52 * Interpolates the value at each index by the fraction. If {@link #IntArrayEvaluator(int[])}
56 * @param fraction The fraction from the starting to the ending values
63 public int[] evaluate(float fraction, int[] startValue, int[] endValue) { argument
71 array[i] = (int) (start + (fraction * (end - start)));
H A DIntEvaluator.java26 * <code>fraction</code> representing the proportion between the start and end values. The
29 * and <code>t</code> is <code>fraction</code>.
31 * @param fraction The fraction from the starting to the ending values
36 * <code>fraction</code> parameter.
38 public Integer evaluate(float fraction, Integer startValue, Integer endValue) { argument
40 return (int)(startInt + fraction * (endValue - startInt));
H A DIntKeyframeSet.java39 public Object getValue(float fraction) { argument
40 return getIntValue(fraction);
56 public int getIntValue(float fraction) { argument
57 if (fraction <= 0f) {
66 fraction = interpolator.getInterpolation(fraction);
68 float intervalFraction = (fraction - prevFraction) / (nextFraction - prevFraction);
73 } else if (fraction >= 1f) {
82 fraction = interpolator.getInterpolation(fraction);
[all...]
H A DKeyframe.java76 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
82 public static Keyframe ofInt(float fraction, int value) { argument
83 return new IntKeyframe(fraction, value);
95 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
98 public static Keyframe ofInt(float fraction) { argument
99 return new IntKeyframe(fraction);
108 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
114 ofFloat(float fraction, float value) argument
130 ofFloat(float fraction) argument
146 ofObject(float fraction, Object value) argument
162 ofObject(float fraction) argument
221 setFraction(float fraction) argument
269 ObjectKeyframe(float fraction, Object value) argument
304 IntKeyframe(float fraction, int value) argument
311 IntKeyframe(float fraction) argument
351 FloatKeyframe(float fraction, float value) argument
358 FloatKeyframe(float fraction) argument
[all...]
H A DKeyframeSet.java185 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the
187 * function maps the input fraction to the appropriate keyframe interval and a fraction
188 * between them and returns the interpolated value. Note that the input fraction may fall
190 * spring interpolation that might send the fraction past 1.0). We handle this situation by
193 * @param fraction The elapsed fraction of the animation
196 public Object getValue(float fraction) { argument
200 fraction = mInterpolator.getInterpolation(fraction);
[all...]
H A DKeyframes.java43 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the
45 * function maps the input fraction to the appropriate keyframe interval and a fraction
46 * between them and returns the interpolated value. Note that the input fraction may fall
48 * spring interpolation that might send the fraction past 1.0). We handle this situation by
51 * @param fraction The elapsed fraction of the animation
54 Object getValue(float fraction); argument
71 * @param fraction The elapsed fraction o
74 getIntValue(float fraction) argument
87 getFloatValue(float fraction) argument
[all...]

Completed in 465 milliseconds

123456