Searched refs:floats (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/media/mca/filterfw/jni/
H A Djni_vertex_frame.cpp54 jfloatArray floats) {
56 if (frame && floats) {
57 jfloat* float_ptr = env->GetFloatArrayElements(floats, NULL);
58 const int length = env->GetArrayLength(floats);
62 env->ReleaseFloatArrayElements(floats, float_ptr, JNI_ABORT);
52 Java_android_filterfw_core_VertexFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument
H A Djni_vertex_frame.h38 jfloatArray floats);
H A Djni_gl_frame.cpp31 void ConvertFloatsToRGBA(const float* floats, int length, uint8_t* result) { argument
33 result[i] = static_cast<uint8_t>(floats[i] * 255.0);
172 jfloatArray floats) {
174 if (frame && floats) {
175 jfloat* float_ptr = env->GetFloatArrayElements(floats, NULL);
176 const int length = env->GetArrayLength(floats);
178 // Convert floats to RGBA buffer
181 env->ReleaseFloatArrayElements(floats, float_ptr, JNI_ABORT);
205 // Convert them to floats
170 Java_android_filterfw_core_GLFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument
H A Djni_native_frame.cpp134 jfloatArray floats) {
136 if (frame && floats) {
137 jfloat* float_ptr = env->GetFloatArrayElements(floats, NULL);
138 const int length = env->GetArrayLength(floats);
143 env->ReleaseFloatArrayElements(floats, float_ptr, JNI_ABORT);
132 Java_android_filterfw_core_NativeFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DVertexFrame.java75 public void setFloats(float[] floats) { argument
77 if (!setNativeFloats(floats)) {
140 private native boolean setNativeFloats(float[] floats); argument
H A DNativeFrame.java126 public void setFloats(float[] floats) { argument
128 if (floats.length * nativeFloatSize() > getFormat().getSize()) {
130 "NativeFrame cannot hold " + floats.length + " floats. (Can only hold " +
131 (getFormat().getSize() / nativeFloatSize()) + " floats).");
132 } else if (!setNativeFloats(floats)) {
250 private native boolean setNativeFloats(float[] floats); argument
H A DSimpleFrame.java99 public void setFloats(float[] floats) { argument
101 setGenericObjectValue(floats);
H A DGLFrame.java191 public void setFloats(float[] floats) { argument
194 if (!setNativeFloats(floats)) {
386 private native boolean setNativeFloats(float[] floats); argument
H A DSerializedFrame.java214 public void setFloats(float[] floats) { argument
216 setGenericObjectValue(floats);
H A DFrame.java101 public abstract void setFloats(float[] floats); argument
/frameworks/rs/api/
H A Drs_convert.spec102 summary: Create a uchar4 RGBA from floats
130 arg: float3 color, "Vector of 3 or 4 floats containing the R, G, B, and A values."
150 Unpacks a uchar4 color to float4. The resulting floats will be between 0.0 and 1.0 inclusive.
H A Drs_vector_math.spec23 The precision of the mathematical operations on 32 bit floats is affected by the pragmas
32 <li>fast_: May perform internal computations using 16 bit floats. Additionally, subnormal
H A Drs_matrix.spec216 arg: const float* array, "Array of values to set the matrix to. These arrays should be 4, 9, or 16 floats long, depending on the matrix size."
219 Set the elements of a matrix from an array of floats or from another matrix.
221 If loading from an array, the floats should be in row-major order, i.e. the element a
H A Drs_math.spec35 The precision of the mathematical operations on 32 bit floats is affected by the pragmas
46 <li>half_: May perform internal computations using 16 bit floats. Additionally, subnormal
163 For floats, use @fabs().
931 summary: Maximum of two floats
976 summary: Minimum of two floats
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DBackingStore.java753 float[] floats = new float[getSize() / 4];
754 allocation.copyTo(floats);
755 mBuffer.asFloatBuffer().put(floats);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp229 float* floats = autoPts.ptr(); local
238 get_canvas(canvasHandle)->drawPoints(floats + offset, count, *paint);
251 float* floats = autoPts.ptr(); local
260 get_canvas(canvasHandle)->drawLines(floats + offset, count, *paint);

Completed in 901 milliseconds