Home
last modified time | relevance | path

Searched refs:program (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/base/media/mca/filterfw/jni/
Djni_native_program.cpp31 std::unique_ptr<NativeProgram> program(new NativeProgram()); in Java_android_filterfw_core_NativeProgram_allocate() local
32 return ToJBool(WrapOwnedObjectInJava(std::move(program), env, thiz, true)); in Java_android_filterfw_core_NativeProgram_allocate()
40 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_nativeInit() local
41 return ToJBool(program && program->CallInit()); in Java_android_filterfw_core_NativeProgram_nativeInit()
47 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_openNativeLibrary() local
48 return ToJBool(program && lib_name && program->OpenLibrary(ToCppString(env, lib_name))); in Java_android_filterfw_core_NativeProgram_openNativeLibrary()
54 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_bindInitFunction() local
55 return ToJBool(program && func_name && program->BindInitFunction(ToCppString(env, func_name))); in Java_android_filterfw_core_NativeProgram_bindInitFunction()
61 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_bindSetValueFunction() local
62 return ToJBool(program && in Java_android_filterfw_core_NativeProgram_bindSetValueFunction()
[all …]
Djni_shader_program.cpp64 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_compileAndLink() local
65 return program ? ToJBool(program->CompileAndLink()) : JNI_FALSE; in Java_android_filterfw_core_ShaderProgram_compileAndLink()
72 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_setUniformValue() local
76 return ToJBool(program && program->SetUniformValue(c_key, c_value)); in Java_android_filterfw_core_ShaderProgram_setUniformValue()
86 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_getUniformValue() local
88 return program ? ToJObject(env, program->GetUniformValue(c_key)) : JNI_NULL; in Java_android_filterfw_core_ShaderProgram_getUniformValue()
95 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_shaderProcess() local
97 if (program && inputs && output) { in Java_android_filterfw_core_ShaderProgram_shaderProcess()
118 if (!program->Process(input_frames, output_frame)) { in Java_android_filterfw_core_ShaderProgram_shaderProcess()
132 ShaderProgram* program = gl_env_ptr ? ShaderProgram::CreateIdentity(gl_env_ptr) : NULL; in Java_android_filterfw_core_ShaderProgram_nativeCreateIdentity() local
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLES31.java257 int program, in glGetProgramInterfaceiv() argument
267 int program, in glGetProgramInterfaceiv() argument
276 int program, in glGetProgramResourceIndex() argument
284 int program, in glGetProgramResourceName() argument
292 int program, in glGetProgramResourceiv() argument
308 int program, in glGetProgramResourceiv() argument
321 int program, in glGetProgramResourceLocation() argument
331 int program in glUseProgramStages() argument
338 int program in glActiveShaderProgram() argument
410 int program, in glProgramUniform1i() argument
[all …]
DGLES20.java347 int program, in glAttachShader() argument
354 int program, in glBindAttribLocation() argument
594 int program in glDeleteProgram() argument
655 int program, in glDetachShader() argument
813 int program, in glGetActiveAttrib() argument
831 int program, in glGetActiveAttrib() argument
843 int program, in glGetActiveAttrib() argument
854 int program, in glGetActiveAttrib() argument
862 int program, in glGetActiveUniform() argument
880 int program, in glGetActiveUniform() argument
[all …]
DGLES30.java878 int program, in glTransformFeedbackVaryings() argument
886 int program, in glGetTransformFeedbackVarying() argument
905 int program, in glGetTransformFeedbackVarying() argument
917 int program, in glGetTransformFeedbackVarying() argument
929 int program, in glGetTransformFeedbackVarying() argument
940 int program, in glGetTransformFeedbackVarying() argument
1071 int program, in glGetUniformuiv() argument
1080 int program, in glGetUniformuiv() argument
1088 int program, in glGetFragDataLocation() argument
1274 int program, in glGetUniformIndices() argument
[all …]
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES31.spec7 void glGetProgramInterfaceiv ( GLuint program, GLenum programInterface, GLenum pname, GLint *params…
8 GLuint glGetProgramResourceIndex ( GLuint program, GLenum programInterface, const GLchar *name )
9 void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufS…
10 void glGetProgramResourceiv ( GLuint program, GLenum programInterface, GLuint index, GLsizei propCo…
11 GLint glGetProgramResourceLocation ( GLuint program, GLenum programInterface, const GLchar *name )
12 void glUseProgramStages ( GLuint pipeline, GLbitfield stages, GLuint program )
13 void glActiveShaderProgram ( GLuint pipeline, GLuint program )
20 void glProgramUniform1i ( GLuint program, GLint location, GLint v0 )
21 void glProgramUniform2i ( GLuint program, GLint location, GLint v0, GLint v1 )
22 void glProgramUniform3i ( GLuint program, GLint location, GLint v0, GLint v1, GLint v2 )
[all …]
DGLES20.spec2 void glAttachShader ( GLuint program, GLuint shader )
3 void glBindAttribLocation ( GLuint program, GLuint index, const char *name )
31 void glDeleteProgram ( GLuint program )
38 void glDetachShader ( GLuint program, GLuint shader )
56 void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *siz…
57 void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *si…
58 void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
59 GLint glGetAttribLocation ( GLuint program, const char *name )
66 void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
67 void glGetProgramInfoLog ( GLuint program, GLsizei bufsize, GLsizei *length, char *infolog )
[all …]
/frameworks/av/cmds/screenrecord/
DProgram.cpp77 GLuint program; in setup() local
79 err = createProgram(&program, kVertexShader, kFragmentShader); in setup()
81 err = createProgram(&program, kVertexShader, kExtFragmentShader); in setup()
86 assert(program != 0); in setup()
88 maPositionLoc = glGetAttribLocation(program, "aPosition"); in setup()
89 maTextureCoordLoc = glGetAttribLocation(program, "aTextureCoord"); in setup()
90 muMVPMatrixLoc = glGetUniformLocation(program, "uMVPMatrix"); in setup()
91 muGLCMatrixLoc = glGetUniformLocation(program, "uGLCMatrix"); in setup()
92 muTextureLoc = glGetUniformLocation(program, "uTexture"); in setup()
96 glDeleteProgram(program); in setup()
[all …]
/frameworks/native/opengl/libs/GLES2/
Dgl2_api.in4 void API_ENTRY(glAttachShader)(GLuint program, GLuint shader) {
5 CALL_GL_API(glAttachShader, program, shader);
7 void API_ENTRY(glBindAttribLocation)(GLuint program, GLuint index, const GLchar *name) {
8 CALL_GL_API(glBindAttribLocation, program, index, name);
91 void API_ENTRY(glDeleteProgram)(GLuint program) {
92 CALL_GL_API(glDeleteProgram, program);
112 void API_ENTRY(glDetachShader)(GLuint program, GLuint shader) {
113 CALL_GL_API(glDetachShader, program, shader);
163 void API_ENTRY(glGetActiveAttrib)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, G…
164 CALL_GL_API(glGetActiveAttrib, program, index, bufSize, length, size, type, name);
[all …]
Dgl2ext_api.in46 void API_ENTRY(glGetnUniformfvKHR)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params…
47 CALL_GL_API(glGetnUniformfvKHR, program, location, bufSize, params);
49 void API_ENTRY(glGetnUniformivKHR)(GLuint program, GLint location, GLsizei bufSize, GLint *params) {
50 CALL_GL_API(glGetnUniformivKHR, program, location, bufSize, params);
52 void API_ENTRY(glGetnUniformuivKHR)(GLuint program, GLint location, GLsizei bufSize, GLuint *params…
53 CALL_GL_API(glGetnUniformuivKHR, program, location, bufSize, params);
103 void API_ENTRY(glGetProgramBinaryOES)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *bin…
104 CALL_GL_API(glGetProgramBinaryOES, program, bufSize, length, binaryFormat, binary);
106 void API_ENTRY(glProgramBinaryOES)(GLuint program, GLenum binaryFormat, const void *binary, GLint l…
107 CALL_GL_API(glProgramBinaryOES, program, binaryFormat, binary, length);
[all …]
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp76 GLuint program = glCreateProgram(); in createProgram() local
77 if (program) { in createProgram()
78 glAttachShader(program, vertexShader); in createProgram()
80 glAttachShader(program, pixelShader); in createProgram()
83 glBindAttribLocation(program, A_POS, "a_pos"); in createProgram()
84 glBindAttribLocation(program, A_COLOR, "a_color"); in createProgram()
85 glBindAttribLocation(program, A_TEX0, "a_tex0"); in createProgram()
86 glBindAttribLocation(program, A_TEX1, "a_tex1"); in createProgram()
87 glLinkProgram(program); in createProgram()
89 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram()
[all …]
/frameworks/native/opengl/tests/gldual/jni/
Dgl_code.cpp79 GLuint program = glCreateProgram(); in createProgram() local
80 if (program) { in createProgram()
81 glAttachShader(program, vertexShader); in createProgram()
83 glAttachShader(program, pixelShader); in createProgram()
85 glLinkProgram(program); in createProgram()
87 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram()
90 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); in createProgram()
94 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram()
99 glDeleteProgram(program); in createProgram()
100 program = 0; in createProgram()
[all …]
/frameworks/native/opengl/tests/gl2_jni/jni/
Dgl_code.cpp79 GLuint program = glCreateProgram(); in createProgram() local
80 if (program) { in createProgram()
81 glAttachShader(program, vertexShader); in createProgram()
83 glAttachShader(program, pixelShader); in createProgram()
85 glLinkProgram(program); in createProgram()
87 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram()
90 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); in createProgram()
94 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram()
99 glDeleteProgram(program); in createProgram()
100 program = 0; in createProgram()
[all …]
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/
DGL2JavaView.java123 int program = GLES20.glCreateProgram(); in createProgram() local
124 if (program != 0) { in createProgram()
125 GLES20.glAttachShader(program, vertexShader); in createProgram()
127 GLES20.glAttachShader(program, pixelShader); in createProgram()
129 GLES20.glLinkProgram(program); in createProgram()
131 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); in createProgram()
134 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); in createProgram()
135 GLES20.glDeleteProgram(program); in createProgram()
136 program = 0; in createProgram()
139 return program; in createProgram()
/frameworks/native/opengl/include/GLES3/
Dgl31.h386 typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
387 typedef void (GL_APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar…
415 typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
422 typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
439 typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize…
440 typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSiz…
441 typedef void (GL_APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei …
442 typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
449 typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
450 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *l…
[all …]
Dgl32.h386 typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
387 typedef void (GL_APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar…
415 typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
422 typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
439 typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize…
440 typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSiz…
441 typedef void (GL_APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei …
442 typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
449 typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
450 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *l…
[all …]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglGetTransformFeedbackVarying.java4 int program, in glGetTransformFeedbackVarying() argument
23 int program, in glGetTransformFeedbackVarying() argument
35 int program, in glGetTransformFeedbackVarying() argument
47 int program, in glGetTransformFeedbackVarying() argument
58 int program, in glGetTransformFeedbackVarying() argument
DglGetActiveAttrib.java4 int program, in glGetActiveAttrib() argument
22 int program, in glGetActiveAttrib() argument
34 int program, in glGetActiveAttrib() argument
45 int program, in glGetActiveAttrib() argument
DglGetActiveUniform.java4 int program, in glGetActiveUniform() argument
22 int program, in glGetActiveUniform() argument
33 int program, in glGetActiveUniform() argument
44 int program, in glGetActiveUniform() argument
DglGetActiveUniformBlockName.cpp4 …(JNIEnv* _env, jobject _this, jint program, jint uniformBlockIndex, int bufSize, jintArray length_… in android_glGetActiveUniformBlockName_III_3II_3BI() argument
46 (GLuint)program, in android_glGetActiveUniformBlockName_III_3II_3BI()
70 …(JNIEnv* _env, jobject _this, jint program, jint uniformBlockIndex, jobject length_buf, jobject un… in android_glGetActiveUniformBlockName_IILjava_nio_Buffer_2Ljava_nio_Buffer_2() argument
96 (GLuint)program, in android_glGetActiveUniformBlockName_IILjava_nio_Buffer_2Ljava_nio_Buffer_2()
112 (JNIEnv *_env, jobject _this, jint program, jint uniformBlockIndex) { in android_glGetActiveUniformBlockName_II() argument
114 glGetActiveUniformBlockiv((GLuint)program, (GLuint)uniformBlockIndex, in android_glGetActiveUniformBlockName_II()
117 glGetActiveUniformBlockName((GLuint)program, (GLuint)uniformBlockIndex, in android_glGetActiveUniformBlockName_II()
/frameworks/base/core/jni/
Dandroid_opengl_GLES31.cpp565 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint pname, jintArray params_re… in android_glGetProgramInterfaceiv__III_3II() argument
591 (GLuint)program, in android_glGetProgramInterfaceiv__III_3II()
610 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint pname, jobject params_buf)… in android_glGetProgramInterfaceiv__IIILjava_nio_IntBuffer_2() argument
631 (GLuint)program, in android_glGetProgramInterfaceiv__IIILjava_nio_IntBuffer_2()
649 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jstring name) { in android_glGetProgramResourceIndex__IILjava_lang_String_2() argument
665 (GLuint)program, in android_glGetProgramResourceIndex__IILjava_lang_String_2()
685 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) { in android_glGetProgramResourceName() argument
693 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index, jint propCount, jin… in android_glGetProgramResourceiv__IIII_3III_3II_3II() argument
755 (GLuint)program, in android_glGetProgramResourceiv__IIII_3III_3II_3II()
786 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index, jint propCount, job… in android_glGetProgramResourceiv__IIIILjava_nio_IntBuffer_2ILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2() argument
[all …]
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java197 int program = GLES20.glCreateProgram(); in createProgram() local
198 if (program != 0) { in createProgram()
199 GLES20.glAttachShader(program, vertexShader); in createProgram()
201 GLES20.glAttachShader(program, pixelShader); in createProgram()
203 GLES20.glLinkProgram(program); in createProgram()
205 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); in createProgram()
208 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); in createProgram()
209 GLES20.glDeleteProgram(program); in createProgram()
210 program = 0; in createProgram()
213 return program; in createProgram()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageGLProgram.java90 final int program = glCreateProgram(); in getProgramHandle() local
91 if (program == 0) { in getProgramHandle()
96 glAttachShader(program, vertexHandle); in getProgramHandle()
97 glAttachShader(program, fragmentHandle); in getProgramHandle()
98 glLinkProgram(program); in getProgramHandle()
99 return program; in getProgramHandle()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DOpenGLUtils.java57 final int program = GLES20.glCreateProgram(); in createProgram() local
59 GLES20.glAttachShader(program, vertexShader); in createProgram()
61 GLES20.glAttachShader(program, fragmentShader); in createProgram()
63 GLES20.glLinkProgram(program); in createProgram()
66 return program; in createProgram()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLTextureViewActivity.java189 int program = buildProgram(sSimpleVS, sSimpleFS); in run() local
191 int attribPosition = glGetAttribLocation(program, "position"); in run()
194 int attribTexCoords = glGetAttribLocation(program, "texCoords"); in run()
197 int uniformTexture = glGetUniformLocation(program, "texture"); in run()
203 glUseProgram(program); in run()
287 int program = glCreateProgram(); in buildProgram() local
288 glAttachShader(program, vertexShader); in buildProgram()
291 glAttachShader(program, fragmentShader); in buildProgram()
294 glLinkProgram(program); in buildProgram()
298 glGetProgramiv(program, GL_LINK_STATUS, status, 0); in buildProgram()
[all …]

12345