Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/opt/net/voip/src/jni/rtp/
DG711Codec.cpp60 int exponent = gExponents[sample >> 8]; in encode() local
61 int mantissa = (sample >> (exponent + 3)) & 0x0F; in encode()
62 ulaws[i] = ~(sign | (exponent << 4) | mantissa); in encode()
75 int exponent = (ulaw >> 4) & 0x07; in decode() local
77 int sample = (((mantissa << 3) + 132) << exponent) - 132; in decode()
110 int exponent = gExponents[sample >> 8]; in encode() local
111 int mantissa = (sample >> (exponent == 0 ? 4 : exponent + 3)) & 0x0F; in encode()
112 alaws[i] = (sign | (exponent << 4) | mantissa) ^ 0xD5; in encode()
125 int exponent = (alaw >> 4) & 0x07; in decode() local
127 int sample = (exponent == 0 ? (mantissa << 4) + 8 : in decode()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dlog2.c59 Word16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */ in Log2_norm() argument
67 *exponent = 0; in Log2_norm()
71 *exponent = (30 - exp); in Log2_norm()
100 Word16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */ in Log2() argument
107 Log2_norm ((L_x << exp), exp, exponent, fraction); in Log2()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCharacteristic.java644 public boolean setValue(int mantissa, int exponent, int formatType, int offset) { in setValue() argument
652 exponent = intToSignedBits(exponent, 4); in setValue()
655 mValue[offset] += (byte)((exponent & 0x0F) << 4); in setValue()
660 exponent = intToSignedBits(exponent, 8); in setValue()
664 mValue[offset] += (byte)(exponent & 0xFF); in setValue()
721 int exponent = unsignedToSigned(unsignedByteToInt(b1) >> 4, 4); in bytesToFloat() local
722 return (float)(mantissa * Math.pow(10, exponent)); in bytesToFloat()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dlog2_norm.cpp199 Word16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30)*/ in Log2_norm() argument
208 *exponent = 0; in Log2_norm()
214 *exponent = 30 - exp; in Log2_norm()
Dpow2.cpp177 Word16 exponent, /* (i) : Integer part. (range: 0<=val<=30) */ in Pow2() argument
198 exp = sub(30, exponent, pOverflow); in Pow2()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dpvamrwb_math_op.cpp492 int16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */ in Lg2_normalized() argument
501 *exponent = 0; in Lg2_normalized()
506 *exponent = 30 - exp; in Lg2_normalized()
540 int16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */ in amrwb_log_2() argument
547 Lg2_normalized(shl_int32(L_x, exp), exp, exponent, fraction); in amrwb_log_2()
Dpvamrwb_math_op.h97 int16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */
104 int16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dlog2.h49 Word16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */
56 Word16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */
/frameworks/base/opengl/java/android/opengl/
DGLES10Ext.java33 int[] exponent, in glQueryMatrixxOES() argument
41 java.nio.IntBuffer exponent in glQueryMatrixxOES() argument
DGLErrorWrapper.java947 int[] exponent, int exponentOffset) { in glQueryMatrixxOES() argument
950 exponent, exponentOffset); in glQueryMatrixxOES()
955 public int glQueryMatrixxOES(IntBuffer mantissa, IntBuffer exponent) { in glQueryMatrixxOES() argument
957 int valid = mgl10Ext.glQueryMatrixxOES(mantissa, exponent); in glQueryMatrixxOES()
DGLLogWrapper.java2745 int[] exponent, int exponentOffset) { in glQueryMatrixxOES() argument
2748 arg("exponent", Arrays.toString(exponent)); in glQueryMatrixxOES()
2751 exponent, exponentOffset); in glQueryMatrixxOES()
2753 returns(toString(16, FORMAT_INT, exponent, exponentOffset)); in glQueryMatrixxOES()
2758 public int glQueryMatrixxOES(IntBuffer mantissa, IntBuffer exponent) { in glQueryMatrixxOES() argument
2761 arg("exponent", exponent.toString()); in glQueryMatrixxOES()
2763 int valid = mgl10Ext.glQueryMatrixxOES(mantissa, exponent); in glQueryMatrixxOES()
2765 returns(toString(16, FORMAT_INT, exponent)); in glQueryMatrixxOES()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10Ext.java27 int[] exponent, in glQueryMatrixxOES() argument
33 java.nio.IntBuffer exponent in glQueryMatrixxOES() argument
/frameworks/base/core/jni/
Dandroid_opengl_GLES10Ext.cpp458 GLint *exponent = (GLint *) 0; in android_glQueryMatrixxOES___3II_3II() local
504 exponent = exponent_base + exponentOffset; in android_glQueryMatrixxOES___3II_3II()
508 (GLint *)exponent in android_glQueryMatrixxOES___3II_3II()
541 GLint *exponent = (GLint *) 0; in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2() local
550exponent = (GLint *)getPointer(_env, exponent_buf, (jarray*)&_exponentArray, &_exponentRemaining, … in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
561 if (exponent == NULL) { in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
563 exponent = (GLint *) (_exponentBase + _exponentBufferOffset); in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
567 (GLint *)exponent in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
572 _env->ReleaseIntArrayElements(_exponentArray, (jint*)exponent, _exception ? JNI_ABORT : 0); in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
/frameworks/rs/scriptc/
Drs_math.rsh2026 * frexp: Binary mantissa and exponent
2028 * Returns the binary mantissa and exponent of v, i.e. v == mantissa * 2 ^ exponent.
2036 * exponent: If exponent is not null, *exponent will be set to the exponent of v.
2039 frexp(float v, int* exponent);
2042 frexp(float2 v, int2* exponent);
2045 frexp(float3 v, int3* exponent);
2048 frexp(float4 v, int4* exponent);
2052 frexp(half v, int* exponent);
2057 frexp(half2 v, int2* exponent);
2062 frexp(half3 v, int3* exponent);
[all …]
/frameworks/rs/api/
Drs_math.spec1099 summary: Binary mantissa and exponent
1101 Returns the binary mantissa and exponent of v, i.e. <code>v == mantissa * 2 ^ exponent</code>.
1198 summary: Base two exponent
1200 Returns the base two exponent of a value, where the mantissa is between
1228 summary: Creates a floating point from mantissa and exponent
1230 Returns the floating point created from the mantissa and exponent,
1231 i.e. (mantissa * 2 ^ exponent).
1252 arg: int exponent
1261 arg: int exponent
1410 summary: Base two exponent
[all …]
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES10Ext.spec1 GLbitfield glQueryMatrixxOES ( GLfixed *mantissa, GLint *exponent )
Dchecks.spec93 glQueryMatrixxOES check mantissa 16 check exponent 16 return -1
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.0ext1 GLbitfield glQueryMatrixxOES ( GLfixed *mantissa, GLint *exponent )
Dglspec-checks27 glQueryMatrixxOES check mantissa 16 check exponent 16 return -1
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp318 int32_t exponent = (mantissa >> 4) & 7; in DecodeMLaw() local
319 int32_t segment = exponent + 1; in DecodeMLaw()
324 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; in DecodeMLaw()
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dpow2.h103 Word16 exponent, /* (i) : Integer part. (range: 0<=val<=30) */
Dlog2_norm.h108 Word16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */
/frameworks/native/opengl/libagl/
Dfp.h53 inline int exponent(GLfloat) CONST;
144 int exponent(GLfloat v) { in exponent() function
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Drs_math.jd436 Binary mantissa and exponent
476 Base two exponent
484 Creates a floating point from mantissa and exponent
532 Base two exponent
788 Approximate positive base raised to an exponent
892 Base raised to an exponent
900 Base raised to an integer exponent
908 Positive base raised to an exponent
3300 <span class='normal'>: Binary mantissa and exponent</span>
3305 <td>float frexp(float v, int* exponent);
[all …]
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java1155 int[] exponent, in glQueryMatrixxOES() argument
1163 java.nio.IntBuffer exponent in glQueryMatrixxOES() argument

12