Home
last modified time | relevance | path

Searched refs:mantissa (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/net/voip/src/jni/rtp/
DG711Codec.cpp61 int mantissa = (sample >> (exponent + 3)) & 0x0F; in encode() local
62 ulaws[i] = ~(sign | (exponent << 4) | mantissa); in encode()
76 int mantissa = ulaw & 0x0F; in decode() local
77 int sample = (((mantissa << 3) + 132) << exponent) - 132; in decode()
111 int mantissa = (sample >> (exponent == 0 ? 4 : exponent + 3)) & 0x0F; in encode() local
112 alaws[i] = (sign | (exponent << 4) | mantissa) ^ 0xD5; in encode()
126 int mantissa = alaw & 0x0F; in decode() local
127 int sample = (exponent == 0 ? (mantissa << 4) + 8 : in decode()
128 ((mantissa << 3) + 132) << exponent); in decode()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCharacteristic.java666 public boolean setValue(int mantissa, int exponent, int formatType, int offset) { in setValue() argument
673 mantissa = intToSignedBits(mantissa, 12); in setValue()
675 mValue[offset++] = (byte) (mantissa & 0xFF); in setValue()
676 mValue[offset] = (byte) ((mantissa >> 8) & 0x0F); in setValue()
681 mantissa = intToSignedBits(mantissa, 24); in setValue()
683 mValue[offset++] = (byte) (mantissa & 0xFF); in setValue()
684 mValue[offset++] = (byte) ((mantissa >> 8) & 0xFF); in setValue()
685 mValue[offset++] = (byte) ((mantissa >> 16) & 0xFF); in setValue()
741 int mantissa = unsignedToSigned(unsignedByteToInt(b0) in bytesToFloat() local
744 return (float) (mantissa * Math.pow(10, exponent)); in bytesToFloat()
[all …]
/frameworks/av/media/codecs/g711/decoder/
Dg711DecMlaw.cpp26 int32_t mantissa = ~x; in DecodeMLaw() local
27 int32_t exponent = (mantissa >> 4) & 7; in DecodeMLaw()
29 mantissa &= 0x0f; in DecodeMLaw()
33 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; in DecodeMLaw()
/frameworks/base/opengl/java/android/opengl/
DGLES10Ext.java31 int[] mantissa, in glQueryMatrixxOES() argument
40 java.nio.IntBuffer mantissa, in glQueryMatrixxOES() argument
DGLErrorWrapper.java946 public int glQueryMatrixxOES(int[] mantissa, int mantissaOffset, in glQueryMatrixxOES() argument
949 int valid = mgl10Ext.glQueryMatrixxOES(mantissa, mantissaOffset, in glQueryMatrixxOES()
955 public int glQueryMatrixxOES(IntBuffer mantissa, IntBuffer exponent) { in glQueryMatrixxOES() argument
957 int valid = mgl10Ext.glQueryMatrixxOES(mantissa, exponent); in glQueryMatrixxOES()
DGLLogWrapper.java2744 public int glQueryMatrixxOES(int[] mantissa, int mantissaOffset, in glQueryMatrixxOES() argument
2747 arg("mantissa", Arrays.toString(mantissa)); in glQueryMatrixxOES()
2750 int valid = mgl10Ext.glQueryMatrixxOES(mantissa, mantissaOffset, in glQueryMatrixxOES()
2752 returns(toString(16, FORMAT_FIXED, mantissa, mantissaOffset)); in glQueryMatrixxOES()
2758 public int glQueryMatrixxOES(IntBuffer mantissa, IntBuffer exponent) { in glQueryMatrixxOES() argument
2760 arg("mantissa", mantissa.toString()); in glQueryMatrixxOES()
2763 int valid = mgl10Ext.glQueryMatrixxOES(mantissa, exponent); in glQueryMatrixxOES()
2764 returns(toString(16, FORMAT_FIXED, mantissa)); in glQueryMatrixxOES()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10Ext.java25 int[] mantissa, in glQueryMatrixxOES() argument
32 java.nio.IntBuffer mantissa, in glQueryMatrixxOES() argument
/frameworks/base/core/jni/
Dandroid_opengl_GLES10Ext.cpp433 GLfixed *mantissa = (GLfixed *) 0; in android_glQueryMatrixxOES___3II_3II() local
459 mantissa = mantissa_base + mantissaOffset; in android_glQueryMatrixxOES___3II_3II()
485 (GLfixed *)mantissa, in android_glQueryMatrixxOES___3II_3II()
518 GLfixed *mantissa = (GLfixed *) 0; in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2() local
528mantissa = (GLfixed *)getPointer(_env, mantissa_buf, (jarray*)&_mantissaArray, &_mantissaRemaining… in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
548 if (mantissa == NULL) { in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
550 mantissa = (GLfixed *) (_mantissaBase + _mantissaBufferOffset); in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
557 (GLfixed *)mantissa, in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
566 _env->ReleaseIntArrayElements(_mantissaArray, (jint*)mantissa, _exception ? JNI_ABORT : 0); in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
Dcom_google_android_gles_jni_GLImpl.cpp4116 GLfixed *mantissa = (GLfixed *) 0; in android_glQueryMatrixxOES___3II_3II() local
4142 mantissa = mantissa_base + mantissaOffset; in android_glQueryMatrixxOES___3II_3II()
4168 (GLfixed *)mantissa, in android_glQueryMatrixxOES___3II_3II()
4201 GLfixed *mantissa = (GLfixed *) 0; in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2() local
4211mantissa = (GLfixed *)getPointer(_env, mantissa_buf, (jarray*)&_mantissaArray, &_mantissaRemaining… in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
4231 if (mantissa == NULL) { in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
4233 mantissa = (GLfixed *) (_mantissaBase + _mantissaBufferOffset); in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
4240 (GLfixed *)mantissa, in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
4249 _env->ReleaseIntArrayElements(_mantissaArray, (jint*)mantissa, _exception ? JNI_ABORT : 0); in android_glQueryMatrixxOES__Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2()
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp370 int32_t mantissa = ~x; in DecodeMLaw() local
371 int32_t exponent = (mantissa >> 4) & 7; in DecodeMLaw()
373 mantissa &= 0x0f; in DecodeMLaw()
377 int32_t abs = (0x80L << exponent) + step * mantissa + step / 2 - 4 * 33; in DecodeMLaw()
/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/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/libagl/
Dfp.h54 inline int32_t mantissa(GLfloat) CONST;
153 int32_t mantissa(GLfloat v) { in mantissa() function
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java680 int mantissa = (int)( in computeTypedValue()
683 mantissa = (-mantissa) & TypedValue.COMPLEX_MANTISSA_MASK; in computeTypedValue()
687 | (mantissa<<TypedValue.COMPLEX_MANTISSA_SHIFT); in computeTypedValue()
/frameworks/rs/script_api/
Drs_math.spec1113 summary: Binary mantissa and exponent
1115 Returns the binary mantissa and exponent of v, i.e. <code>v == mantissa * 2 ^ exponent</code>.
1117 The mantissa is always between 0.5 (inclusive) and 1.0 (exclusive).
1214 Returns the base two exponent of a value, where the mantissa is between
1219 Because of the difference in mantissa, this number is one less than is returned by @frexp().
1242 summary: Creates a floating point from mantissa and exponent
1244 Returns the floating point created from the mantissa and exponent,
1245 i.e. (mantissa * 2 ^ exponent).
1426 Returns the base two exponent of a value, where the mantissa is between
1431 Because of the difference in mantissa, this number is one less than is returned by frexp().
/frameworks/rs/tests/lldb/java/Allocations/src/com/android/rs/allocations/
DMainActivity.java367 byte mantissa = (byte)(i); in initFloatAllocations()
369 buffer_half[i] = (short)((exponent << 8) | mantissa); in initFloatAllocations()
/frameworks/rs/script_api/include/
Drs_math.rsh2026 * frexp: Binary mantissa and exponent
2028 * Returns the binary mantissa and exponent of v, i.e. v == mantissa * 2 ^ exponent.
2030 * The mantissa is always between 0.5 (inclusive) and 1.0 (exclusive).
2199 * Returns the base two exponent of a value, where the mantissa is between
2204 * Because of the difference in mantissa, this number is one less than is returned by frexp().
2241 * ldexp: Creates a floating point from mantissa and exponent
2243 * Returns the floating point created from the mantissa and exponent,
2244 * i.e. (mantissa * 2 ^ exponent).
2249 * mantissa: Mantissa.
2253 ldexp(float mantissa, int exponent);
[all …]
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java1156 int[] mantissa, in glQueryMatrixxOES() argument
1165 java.nio.IntBuffer mantissa, in glQueryMatrixxOES() argument
/frameworks/base/tools/aapt2/
DResourceValues.cpp425 const uint64_t mantissa = uint64_t{(complex_value >> Res_value::COMPLEX_MANTISSA_SHIFT) & in ComplexToString()
428 const float value = mantissa * (1.0f / (1 << 23)); in ComplexToString()
/frameworks/native/opengl/libs/GLES_CM/
Dglext_api.in235 GLbitfield API_ENTRY(glQueryMatrixxOES)(GLfixed *mantissa, GLint *exponent) {
236 CALL_GL_API_RETURN(glQueryMatrixxOES, mantissa, exponent);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_fp16.rscript358 // No. of possible values for mantissa = 2 ^ 10 = 1024
/frameworks/native/opengl/include/GLES/
Dglext.h386 typedef GLbitfield (GL_APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed *mantissa, GLint *exponent);
388 GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES (GLfixed *mantissa, GLint *exponent);
/frameworks/native/opengl/libs/
Dentries_gles1.in235 GL_ENTRY(GLbitfield, glQueryMatrixxOES, GLfixed *mantissa, GLint *exponent)

12