Searched defs:texture (Results 1 - 25 of 71) sorted by last modified time

123

/frameworks/rs/
H A DrsProgram.cpp60 uint32_t texture = 0; local
71 mHal.state.textureTargets[texture++] = (RsTextureTarget)params[ct+1];
183 ALOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount);
184 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind texture");
189 ALOGE("Attempt to bind cubemap to slot %u but 2d texture needed", slot);
190 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind cubemap to 2d texture slot");
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp218 // check if the texture is complete
293 // keep the texture's parameters
315 sp<EGLTextureObject> EGLSurfaceManager::texture(GLuint name) function in class:android::EGLSurfaceManager
H A Darray.cpp27 #include "texture.h"
114 c->arrays.texture[i].size = 4;
115 c->arrays.texture[i].type = GL_FLOAT;
146 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t));
441 case GL_TEXTURE_COORD_ARRAY: a = &c->arrays.texture[tmu]; break;
1058 if (c->rasterizer.state.texture[i].enable)
1059 clipVec4(nv->texture[i], t, s->texture[i], p->texture[i]);
1124 if (enables & GGL_ENABLE_TMUS) { // needs texture transform
1335 glClientActiveTexture(GLenum texture) argument
[all...]
H A Dcontext.h124 TT = 0x8000, // texture coords transformed
149 vec4_t texture[GGL_TEXTURE_UNIT_COUNT]; member in struct:android::gl::vertex_t
204 array_t texture[GGL_TEXTURE_UNIT_COUNT]; member in struct:android::gl::array_machine_t
353 EGLTextureObject* texture; member in struct:android::gl::texture_unit_t
497 matrix_stack_t texture[GGL_TEXTURE_UNIT_COUNT]; member in struct:android::gl::transform_state_t
H A Dtexture.cpp1 /* libs/opengles/texture.cpp
23 #include "texture.h"
33 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex);
50 // each context has a default named (0) texture (not shared)
54 // bind the default texture to each texture unit
57 memset(c->current.texture[i].v, 0, sizeof(vec4_t));
58 c->current.texture[i].Q = 0x10000;
68 if (c->textures.tmu[i].texture)
69 c->textures.tmu[i].texture
342 bindTextureTmu( ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex) argument
854 glActiveTexture(GLenum texture) argument
865 glBindTexture(GLenum target, GLuint texture) argument
[all...]
/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp21 GLuint texture; variable
329 glGenTextures(1, &texture);
330 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp14 GLuint texture; variable
129 glGenTextures(1, &texture);
130 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp1409 // Allocate the texture for the source frame
1412 sp<GraphicBuffer> texture; local
1413 texture = new GraphicBuffer(it->sourceDim.width(),
1416 buffers.push_back(texture);
1418 layer->handle = texture->handle;
H A DhwcRects.cpp160 sp<GraphicBuffer> texture; member in class:Rectangle
318 layer->handle = it->texture->handle;
506 // Create source texture
507 rect.texture = new GraphicBuffer(rect.sourceDim.width(),
510 if ((rv = rect.texture->initCheck()) != NO_ERROR) {
511 testPrintE("source texture initCheck failed, rv: %i", rv);
517 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha);
521 rect.texture.get(), rect.texture->handle, format->desc,
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp23 GLuint texture; variable
221 glGenTextures(1, &texture);
222 glBindTexture(GL_TEXTURE_2D, texture);
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DDescription.cpp62 void Description::setTexture(const Texture& texture) { argument
63 mTexture = texture;
H A DGLES11RenderEngine.cpp205 void GLES11RenderEngine::setupLayerTexturing(const Texture& texture) { argument
206 GLuint target = texture.getTextureTarget();
207 glBindTexture(target, texture.getTextureName());
209 if (texture.getFiltering()) {
217 glLoadMatrixf(texture.getMatrix().asArray());
244 // turn our EGLImage into a texture
H A DGLES20RenderEngine.cpp173 void GLES20RenderEngine::setupLayerTexturing(const Texture& texture) { argument
174 GLuint target = texture.getTextureTarget();
175 glBindTexture(target, texture.getTextureName());
177 if (texture.getFiltering()) {
185 mState.setTexture(texture);
190 Texture texture(Texture::TEXTURE_2D, mProtectedTexName);
191 texture.setDimensions(1, 1); // FIXME: we should get that from somewhere
192 mState.setTexture(texture);
213 // turn our EGLImage into a texture
H A DGLES20RenderEngine.h47 GLuint texture; member in struct:android::GLES20RenderEngine::Group
80 virtual void setupLayerTexturing(const Texture& texture);
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.cpp316 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) { argument
319 uint32_t texture; member in class:android::MessageDestroyGLTexture
321 MessageDestroyGLTexture(RenderEngine& engine, uint32_t texture) argument
322 : engine(engine), texture(texture) {
325 engine.deleteTextures(1, &texture);
329 postMessageAsync(new MessageDestroyGLTexture(getRenderEngine(), texture));
1547 // the hint is set before we acquire a buffer from the surface texture.
3449 // turn it into a texture
H A DSurfaceFlinger_hwc1.cpp314 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) { argument
317 uint32_t texture; member in class:android::MessageDestroyGLTexture
319 MessageDestroyGLTexture(RenderEngine& engine, uint32_t texture) argument
320 : engine(engine), texture(texture) {
323 engine.deleteTextures(1, &texture);
327 postMessageAsync(new MessageDestroyGLTexture(getRenderEngine(), texture));
1555 // the hint is set before we acquire a buffer from the surface texture.
3465 // turn it into a texture
/frameworks/base/services/core/jni/
H A Dcom_android_server_AssetAtlasService.cpp56 if (texture) glDeleteTextures(1, &texture); \
72 // using the GPU to swizzle the texture content
116 GLuint texture = 0; local
142 // The EGL image is later bound to a 2D texture
152 glGenTextures(1, &texture);
153 glBindTexture(GL_TEXTURE_2D, texture);
156 ALOGW("Could not create/bind texture");
165 ALOGW("Could not upload to texture");
169 // The fence is used to wait for the texture uploa
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DImageShader.java242 public static void renderTextureToTarget(TextureSource texture, argument
247 shader.process(texture, target, width, height);
277 public void process(TextureSource texture, RenderTarget target, int width, int height) { argument
278 processMulti(new TextureSource[] { texture }, target, width, height);
612 // Activate texture unit i
615 // Bind texture
618 // Assign the texture uniform in the shader to unit i
627 GLToolbox.checkGlError("Binding input texture " + i);
683 + "maximum number of allowed texture units (" + maxTextureUnits() + ")!");
H A DRenderTarget.java103 public RenderTarget forTexture(TextureSource texture, int width, int height) { argument
104 // NOTE: We do not need to lookup any previous bindings of this texture to an FBO, as
105 // multiple FBOs to a single texture is valid.
111 texture.getTarget(),
112 texture.getTextureId(),
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java144 "uniform sampler2D texture;\n" +
146 " gl_FragColor = texture2D(texture, outTexCoords);\n" +
581 final int texture = loadTexture(mBackground);
586 final int uniformTexture = glGetUniformLocation(program, "texture");
592 glBindTexture(GL_TEXTURE_2D, texture);
621 finishGL(texture, program);
649 int texture = textures[0];
650 glBindTexture(GL_TEXTURE_2D, texture);
662 return texture;
728 private void finishGL(int texture, in argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java92 // Draws a texture to the specified rectangle.
94 BasicTexture texture, int x, int y, int width, int height);
99 // Draws the source rectangle part of the texture to the target rectangle.
100 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); argument
102 // Draw a texture with a specified texture transform.
103 public abstract void drawTexture(BasicTexture texture, float[] mTextureTransform, argument
106 // Draw two textures to the specified rectangle. The actual texture used is
112 // Draw a region of a texture and a specified color to the specified
114 // The region of the texture i
93 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument
123 unloadTexture(BasicTexture texture) argument
135 beginRenderTarget(RawTexture texture) argument
147 setTextureParameters(BasicTexture texture) argument
156 initializeTextureSize(BasicTexture texture, int format, int type) argument
164 initializeTexture(BasicTexture texture, Bitmap bitmap) argument
177 texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, int format, int type) argument
[all...]
H A DGLES20Canvas.java153 // Screen size for when we aren't bound to a texture
173 // Handle indices -- texture
253 // texture.
582 public void drawTexture(BasicTexture texture, int x, int y, int width, int height) { argument
586 copyTextureCoordinates(texture, mTempSourceRect);
588 convertCoordinate(mTempSourceRect, mTempTargetRect, texture);
589 drawTextureRect(texture, mTempSourceRect, mTempTargetRect);
592 private static void copyTextureCoordinates(BasicTexture texture, RectF outRect) { argument
595 int right = texture.getWidth();
596 int bottom = texture
607 drawTexture(BasicTexture texture, RectF source, RectF target) argument
619 drawTexture(BasicTexture texture, float[] textureTransform, int x, int y, int w, int h) argument
628 drawTextureRect(BasicTexture texture, RectF source, RectF target) argument
643 convertCoordinate(RectF source, RectF target, BasicTexture texture) argument
667 drawTextureRect(BasicTexture texture, float[] textureMatrix, RectF target) argument
686 prepareTexture(BasicTexture texture) argument
700 prepareTexture(BasicTexture texture, int program, ShaderParameter[] params) argument
716 drawMesh(BasicTexture texture, int x, int y, int xyBuffer, int uvBuffer, int indexBuffer, int indexCount) argument
758 drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) argument
765 drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) argument
786 unloadTexture(BasicTexture texture) argument
840 beginRenderTarget(RawTexture texture) argument
851 setRenderTarget(BasicTexture oldTexture, RawTexture texture) argument
904 setTextureParameters(BasicTexture texture) argument
915 initializeTextureSize(BasicTexture texture, int format, int type) argument
925 initializeTexture(BasicTexture texture, Bitmap bitmap) argument
933 texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java32 * Convenience method to load an ETC1 texture whether or not the active OpenGL context
33 * supports the ETC1 texture compression format.
34 * @param target the texture target.
35 * @param level the texture level
37 * @param fallbackFormat the format to use if ETC1 texture compression is not supported.
39 * @param fallbackType the type to use if ETC1 texture compression is not supported.
42 * @param input the input stream containing an ETC1 texture in PKM format.
52 * Convenience method to load an ETC1 texture whether or not the active OpenGL context
53 * supports the ETC1 texture compression format.
54 * @param target the texture targe
64 loadTexture(int target, int level, int border, int fallbackFormat, int fallbackType, ETC1Texture texture) argument
206 writeTexture(ETC1Texture texture, OutputStream output) argument
[all...]
H A DGLES11Ext.java833 // C function void glFramebufferTexture2DOES ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level )
839 int texture,
835 glFramebufferTexture2DOES( int target, int attachment, int textarget, int texture, int level ) argument
H A DGLES20.java336 // C function void glActiveTexture ( GLenum texture )
339 int texture
378 // C function void glBindTexture ( GLenum target, GLuint texture )
382 int texture
726 // C function void glFramebufferTexture2D ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level )
732 int texture,
1282 // C function GLboolean glIsTexture ( GLuint texture )
1285 int texture
728 glFramebufferTexture2D( int target, int attachment, int textarget, int texture, int level ) argument

Completed in 2490 milliseconds

123