Searched refs:program (Results 26 - 46 of 46) sorted by relevance

12

/frameworks/av/libvideoeditor/lvpp/
H A DNativeWindowRenderer.cpp251 GLuint program = glCreateProgram(); local
254 glAttachShader(program, vertexShader);
257 glAttachShader(program, fragmentShader);
260 glLinkProgram(program);
264 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
267 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &infoLen);
271 glGetProgramInfoLog(program, infoLen, NULL, buf);
276 glDeleteProgram(program);
277 program = 0;
280 *outPgm = program;
[all...]
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
H A DGL2CameraEye.java409 int program = GLES20.glCreateProgram();
410 if (program != 0) {
411 GLES20.glAttachShader(program, vertexShader);
413 GLES20.glAttachShader(program, pixelShader);
415 GLES20.glLinkProgram(program);
417 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
419 Log.e(TAG, "Could not link program: ");
420 Log.e(TAG, GLES20.glGetProgramInfoLog(program));
421 GLES20.glDeleteProgram(program);
422 program
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java403 final int program = buildProgram(sSimpleVS, sSimpleFS);
405 final int attribPosition = glGetAttribLocation(program, "position");
406 final int attribTexCoords = glGetAttribLocation(program, "texCoords");
407 final int uniformTexture = glGetUniformLocation(program, "texture");
408 final int uniformProjection = glGetUniformLocation(program, "projection");
415 glUseProgram(program);
497 int program = glCreateProgram();
498 glAttachShader(program, vertexShader);
501 glAttachShader(program, fragmentShader);
504 glLinkProgram(program);
[all...]
/frameworks/native/opengl/include/GLES2/
H A Dgl2.h475 GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
476 GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar* name);
504 GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
511 GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
528 GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
529 GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
530 GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
531 GL_APICALL int GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar* name);
538 GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params);
539 GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsize
[all...]
/frameworks/base/libs/hwui/
H A DProgramCache.cpp360 PROGRAM_LOGD("Clearing program cache");
372 Program* program = NULL; local
374 description.log("Could not find program");
375 program = generateProgram(description, key);
376 mCache.add(key, program);
378 program = mCache.valueAt(index);
380 return program;
391 Program* program = new Program(description, vertexShader.string(), fragmentShader.string()); local
392 return program;
H A DOpenGLRenderer.h513 * Use the specified program with the current GL context. If the program is already
514 * in use, it will not be bound again. If it is not in use, the current program is
515 * marked unused and the specified program becomes used and becomes the new
516 * current program.
518 * @param program The program to use
520 * @return true If the specified program was already in use, false otherwise.
522 inline bool useProgram(Program* program);
H A DOpenGLRenderer.cpp2912 bool OpenGLRenderer::useProgram(Program* program) { argument
2913 if (!program->isInUse()) {
2915 program->use();
2916 mCaches.currentProgram = program;
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
H A DVideoDumpView.java385 // Load the program, which is the basics rules to draw the vertexes and textures.
624 int program = GLES20.glCreateProgram();
625 if (program != 0) {
626 GLES20.glAttachShader(program, vertexShader);
628 GLES20.glAttachShader(program, pixelShader);
630 GLES20.glLinkProgram(program);
632 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);
634 Log.e(TAG, "Could not link program: ");
635 Log.e(TAG, GLES20.glGetProgramInfoLog(program));
636 GLES20.glDeleteProgram(program);
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dshader_program.cpp186 // Abort if program did not successfully compile and link
188 ALOGE("ShaderProgram: unexecutable program!");
287 // Scan for all uniforms in the program
296 ALOGE("Could not link shader program!");
349 GLuint program = glCreateProgram(); local
350 if (program) {
353 glAttachShader(program, shaders[i]);
358 glLinkProgram(program);
362 glGetProgramiv(program, GL_LINK_STATUS, &linked);
366 glGetProgramiv(program, GL_INFO_LOG_LENGT
488 int fbo, program, buffer; local
[all...]
/frameworks/rs/driver/
H A DrsdShaderCache.h100 uint32_t numFragUnis) : vtx(0), frag(0), program(0), vtxAttrCount(0),
135 uint32_t program; member in struct:RsdShaderCache::ProgramEntry
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DVertexShader.java95 item.program = mProgram;
H A DFragmentShader.java151 item.program = mProgram;
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp254 GLuint program = glCreateProgram(); local
256 if (program) {
257 glAttachShader(program, vertexShader);
259 glAttachShader(program, fragmentShader);
261 glLinkProgram(program);
263 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
266 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength);
270 glGetProgramInfoLog(program, bufLength, NULL, buf);
276 glDeleteProgram(program);
277 program
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DShaderProgram.java73 ShaderProgram program = nativeCreateIdentity(getGLEnvironment(context));
74 program.setTimer();
75 return program;
234 throw new RuntimeException("Could not prepare shader-program for drawing!");
H A DFilter.java274 * transfer from a FieldPort or ProgramPort to its connected target (field or program variable).
281 * Assigns all program variables to the ports they are connected to. Call this after
284 protected void initProgramInputs(Program program, FilterContext context) { argument
285 if (program != null) {
287 if (inputPort.getTarget() == program) {
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES20.cpp139 /* void glAttachShader ( GLuint program, GLuint shader ) */
142 (JNIEnv *_env, jobject _this, jint program, jint shader) {
144 (GLuint)program,
149 /* void glBindAttribLocation ( GLuint program, GLuint index, const char *name ) */
152 (JNIEnv *_env, jobject _this, jint program, jint index, jstring name) {
162 (GLuint)program,
614 /* void glDeleteProgram ( GLuint program ) */
617 (JNIEnv *_env, jobject _this, jint program) {
619 (GLuint)program
772 /* void glDetachShader ( GLuint program, GLuin
141 android_glAttachShader__II(JNIEnv *_env, jobject _this, jint program, jint shader) argument
151 android_glBindAttribLocation__IILjava_lang_String_2(JNIEnv *_env, jobject _this, jint program, jint index, jstring name) argument
616 android_glDeleteProgram__I(JNIEnv *_env, jobject _this, jint program) argument
774 android_glDetachShader__II(JNIEnv *_env, jobject _this, jint program, jint shader) argument
1170 android_glGetActiveAttrib__III_3II_3II_3II_3BI(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint lengthOffset, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset, jbyteArray name_ref, jint nameOffset) argument
1277 android_glGetActiveAttrib__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject size_buf, jobject type_buf, jbyte name) argument
1315 android_glGetActiveUniform__III_3II_3II_3II_3BI(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint lengthOffset, jintArray size_ref, jint sizeOffset, jintArray type_ref, jint typeOffset, jbyteArray name_ref, jint nameOffset) argument
1422 android_glGetActiveUniform__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject size_buf, jobject type_buf, jbyte name) argument
1460 android_glGetAttachedShaders__II_3II_3II(JNIEnv *_env, jobject _this, jint program, jint maxcount, jintArray count_ref, jint countOffset, jintArray shaders_ref, jint shadersOffset) argument
1520 android_glGetAttachedShaders__IILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2(JNIEnv *_env, jobject _this, jint program, jint maxcount, jobject count_buf, jobject shaders_buf) argument
1548 android_glGetAttribLocation__ILjava_lang_String_2(JNIEnv *_env, jobject _this, jint program, jstring name) argument
2550 android_glGetProgramiv__II_3II(JNIEnv *_env, jobject _this, jint program, jint pname, jintArray params_ref, jint offset) argument
2587 android_glGetProgramiv__IILjava_nio_IntBuffer_2(JNIEnv *_env, jobject _this, jint program, jint pname, jobject params_buf) argument
3071 android_glGetUniformfv__II_3FI(JNIEnv *_env, jobject _this, jint program, jint location, jfloatArray params_ref, jint offset) argument
3108 android_glGetUniformfv__IILjava_nio_FloatBuffer_2(JNIEnv *_env, jobject _this, jint program, jint location, jobject params_buf) argument
3128 android_glGetUniformiv__II_3II(JNIEnv *_env, jobject _this, jint program, jint location, jintArray params_ref, jint offset) argument
3165 android_glGetUniformiv__IILjava_nio_IntBuffer_2(JNIEnv *_env, jobject _this, jint program, jint location, jobject params_buf) argument
3185 android_glGetUniformLocation__ILjava_lang_String_2(JNIEnv *_env, jobject _this, jint program, jstring name) argument
3368 android_glIsProgram__I(JNIEnv *_env, jobject _this, jint program) argument
3421 android_glLinkProgram__I(JNIEnv *_env, jobject _this, jint program) argument
4551 android_glUseProgram__I(JNIEnv *_env, jobject _this, jint program) argument
4560 android_glValidateProgram__I(JNIEnv *_env, jobject _this, jint program) argument
[all...]
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_fixup.cpp305 /* void glLinkProgram(GLuint program); */
306 GLuint program = glmsg->args(0).intvalue(0); local
308 /* We don't have to fixup this call, but as soon as a program is linked,
320 GLTrace_glGetProgramiv(program, GL_ACTIVE_ATTRIBUTES, &n);
321 GLTrace_glGetProgramiv(program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &maxNameLength);
325 GLTrace_glGetActiveAttrib(program, i, maxNameLength, NULL, &size, &type, name);
330 GLTrace_glGetProgramiv(program, GL_ACTIVE_UNIFORMS, &n);
331 GLTrace_glGetProgramiv(program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &maxNameLength);
335 GLTrace_glGetActiveUniform(program, i, maxNameLength, NULL, &size, &type, name);
349 int program local
[all...]
H A Dgltrace_api.cpp61 void GLTrace_glAttachShader(GLuint program, GLuint shader) { argument
67 // copy argument program
71 arg_program->add_intvalue(program);
82 glContext->hooks->gl.glAttachShader(program, shader);
95 void GLTrace_glBindAttribLocation(GLuint program, GLuint index, const GLchar* name) { argument
101 // copy argument program
105 arg_program->add_intvalue(program);
122 glContext->hooks->gl.glBindAttribLocation(program, index, name);
1246 void GLTrace_glDeleteProgram(GLuint program) { argument
1252 // copy argument program
1462 GLTrace_glDetachShader(GLuint program, GLuint shader) argument
2033 GLTrace_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) argument
2101 GLTrace_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) argument
2169 GLTrace_glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) argument
2217 GLTrace_glGetAttribLocation(GLuint program, const GLchar* name) argument
2483 GLTrace_glGetProgramiv(GLuint program, GLenum pname, GLint* params) argument
2524 GLTrace_glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) argument
2917 GLTrace_glGetUniformfv(GLuint program, GLint location, GLfloat* params) argument
2958 GLTrace_glGetUniformiv(GLuint program, GLint location, GLint* params) argument
2999 GLTrace_glGetUniformLocation(GLuint program, const GLchar* name) argument
3307 GLTrace_glIsProgram(GLuint program) argument
3479 GLTrace_glLinkProgram(GLuint program) argument
5253 GLTrace_glUseProgram(GLuint program) argument
5281 GLTrace_glValidateProgram(GLuint program) argument
5799 GLTrace_glGetProgramBinaryOES(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary) argument
5854 GLTrace_glProgramBinaryOES(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length) argument
8111 GLTrace_glGetnUniformfvEXT(GLuint program, GLint location, GLsizei bufSize, float *params) argument
8158 GLTrace_glGetnUniformivEXT(GLuint program, GLint location, GLsizei bufSize, GLint *params) argument
8205 GLTrace_glUseProgramStagesEXT(GLuint pipeline, GLbitfield stages, GLuint program) argument
8245 GLTrace_glActiveShaderProgramEXT(GLuint pipeline, GLuint program) argument
8462 GLTrace_glProgramParameteriEXT(GLuint program, GLenum pname, GLint value) argument
8543 GLTrace_glProgramUniform1iEXT(GLuint program, GLint location, GLint x) argument
8583 GLTrace_glProgramUniform2iEXT(GLuint program, GLint location, GLint x, GLint y) argument
8629 GLTrace_glProgramUniform3iEXT(GLuint program, GLint location, GLint x, GLint y, GLint z) argument
8681 GLTrace_glProgramUniform4iEXT(GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w) argument
8739 GLTrace_glProgramUniform1fEXT(GLuint program, GLint location, GLfloat x) argument
8779 GLTrace_glProgramUniform2fEXT(GLuint program, GLint location, GLfloat x, GLfloat y) argument
8825 GLTrace_glProgramUniform3fEXT(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z) argument
8877 GLTrace_glProgramUniform4fEXT(GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) argument
8935 GLTrace_glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) argument
8982 GLTrace_glProgramUniform2ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) argument
9029 GLTrace_glProgramUniform3ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) argument
9076 GLTrace_glProgramUniform4ivEXT(GLuint program, GLint location, GLsizei count, const GLint *value) argument
9123 GLTrace_glProgramUniform1fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) argument
9170 GLTrace_glProgramUniform2fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) argument
9217 GLTrace_glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) argument
9264 GLTrace_glProgramUniform4fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat *value) argument
9311 GLTrace_glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) argument
9364 GLTrace_glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) argument
9417 GLTrace_glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) argument
10999 GLTrace_glExtIsProgramBinaryQCOM(GLuint program) argument
11035 GLTrace_glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar *source, GLint *length) argument
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp94 Stream(Program *program, unsigned elementaryPID, unsigned streamType);
170 ALOGV("new program number %u", programNumber);
428 Program *program, unsigned elementaryPID, unsigned streamType)
429 : mProgram(program),
920 const sp<Program> &program = mPrograms.itemAt(index); local
922 if (program->number() == program_number) {
923 program->updateProgramMapPID(programMapPID);
1070 const sp<Program> &program = mPrograms.editItemAt(i); local
1072 if (which >= 0 && (int)program->number() != which) {
1076 sp<MediaSource> source = program
427 Stream( Program *program, unsigned elementaryPID, unsigned streamType) argument
[all...]
/frameworks/native/libs/gui/tests/
H A DSurfaceTexture_test.cpp342 GLuint program = glCreateProgram(); local
344 if (program) {
345 glAttachShader(program, vertexShader);
347 glAttachShader(program, fragmentShader);
349 glLinkProgram(program);
351 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus);
354 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength);
358 glGetProgramInfoLog(program, bufLength, NULL, buf);
364 glDeleteProgram(program);
365 program
[all...]
/frameworks/native/opengl/include/GLES/
H A Dglext.h981 GL_API void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, float *params);
982 GL_API void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
986 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, float *params);
987 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
1148 GL_API GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
1149 GL_API void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
1153 typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
1154 typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);

Completed in 433 milliseconds

12