Home
last modified time | relevance | path

Searched refs:texture (Results 1 – 25 of 102) sorted by relevance

12345

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java582 public void drawTexture(BasicTexture texture, int x, int y, int width, int height) { in drawTexture() argument
586 copyTextureCoordinates(texture, mTempSourceRect); in drawTexture()
588 convertCoordinate(mTempSourceRect, mTempTargetRect, texture); in drawTexture()
589 drawTextureRect(texture, mTempSourceRect, mTempTargetRect); in drawTexture()
592 private static void copyTextureCoordinates(BasicTexture texture, RectF outRect) { in copyTextureCoordinates() argument
595 int right = texture.getWidth(); in copyTextureCoordinates()
596 int bottom = texture.getHeight(); in copyTextureCoordinates()
597 if (texture.hasBorder()) { in copyTextureCoordinates()
607 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument
614 convertCoordinate(mTempSourceRect, mTempTargetRect, texture); in drawTexture()
[all …]
DGLCanvas.java94 BasicTexture texture, int x, int y, int width, int height); in drawTexture() argument
100 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); in drawTexture() argument
103 public abstract void drawTexture(BasicTexture texture, float[] mTextureTransform, in drawTexture() argument
123 public abstract boolean unloadTexture(BasicTexture texture); in unloadTexture() argument
135 public abstract void beginRenderTarget(RawTexture texture); in beginRenderTarget() argument
147 public abstract void setTextureParameters(BasicTexture texture); in setTextureParameters() argument
156 public abstract void initializeTextureSize(BasicTexture texture, int format, int type); in initializeTextureSize() argument
164 public abstract void initializeTexture(BasicTexture texture, Bitmap bitmap); in initializeTexture() argument
177 public abstract void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, in texSubImage2D() argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAlpha8BitmapActivity.java49 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.spot_mask); in BitmapsView() local
50 mBitmap1 = Bitmap.createBitmap(texture.getWidth(), texture.getHeight(), in BitmapsView()
53 canvas.drawBitmap(texture, 0.0f, 0.0f, null); in BitmapsView()
55 texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView()
56 BitmapShader shader = new BitmapShader(texture, in BitmapsView()
59 final float width = texture.getWidth() / 3.0f; in BitmapsView()
60 final float height = texture.getHeight() / 3.0f; in BitmapsView()
DAdvancedBlendActivity.java63 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in ShadersView() local
64 mTexWidth = texture.getWidth(); in ShadersView()
65 mTexHeight = texture.getHeight(); in ShadersView()
69 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView()
75 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView()
DMoreShadersActivity.java65 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in ShadersView() local
66 mTexWidth = texture.getWidth(); in ShadersView()
67 mTexHeight = texture.getHeight(); in ShadersView()
71 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView()
77 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView()
DGLTextureViewActivity.java188 int texture = loadTexture(R.drawable.large_photo); in run() local
200 glBindTexture(GL_TEXTURE_2D, texture); in run()
260 int texture = textures[0]; in loadTexture() local
261 glBindTexture(GL_TEXTURE_2D, texture); in loadTexture()
277 return texture; in loadTexture()
/frameworks/native/opengl/libagl/
Dtexture.cpp36 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex);
60 memset(c->current.texture[i].v, 0, sizeof(vec4_t)); in ogles_init_texture()
61 c->current.texture[i].Q = 0x10000; in ogles_init_texture()
71 if (c->textures.tmu[i].texture) in ogles_uninit_texture()
72 c->textures.tmu[i].texture->decStrong(c); in ogles_uninit_texture()
83 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); in validate_tmu()
89 GGL_TEXTURE_WRAP_S, u.texture->wraps); in validate_tmu()
91 GGL_TEXTURE_WRAP_T, u.texture->wrapt); in validate_tmu()
93 GGL_TEXTURE_MIN_FILTER, u.texture->min_filter); in validate_tmu()
95 GGL_TEXTURE_MAG_FILTER, u.texture->mag_filter); in validate_tmu()
[all …]
Dprimitives.cpp395 array_t const * const texcoordArray = c->arrays.texture; in fetch_texcoord_impl()
398 if (!(c->rasterizer.state.texture[i].enable)) in fetch_texcoord_impl()
410 vec4_t& coords = v->texture[i]; in fetch_texcoord_impl()
417 const transform_t& tr = c->transforms.texture[i].transform; in fetch_texcoord_impl()
487 if (!c->rasterizer.state.texture[i].enable) in primitive_point()
492 if (c->rasterizer.state.texture[i].s_wrap == GGL_CLAMP) { in primitive_point()
493 int width = c->textures.tmu[i].texture->surface.width; in primitive_point()
494 itt[0] = v->texture[i].S * width; in primitive_point()
497 if (c->rasterizer.state.texture[i].t_wrap == GGL_CLAMP) { in primitive_point()
498 int height = c->textures.tmu[i].texture->surface.height; in primitive_point()
[all …]
Darray.cpp114 c->arrays.texture[i].size = 4; in ogles_init_array()
115 c->arrays.texture[i].type = GL_FLOAT; in ogles_init_array()
143 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t)); in currentTexCoord()
439 case GL_TEXTURE_COORD_ARRAY: a = &c->arrays.texture[tmu]; break; in enableDisableClientState()
1056 if (c->rasterizer.state.texture[i].enable) in clipVertexT()
1057 clipVec4(nv->texture[i], t, s->texture[i], p->texture[i]); in clipVertexT()
1185 am.texture[i].fetch = currentTexCoord; in validate_arrays()
1186 if (c->rasterizer.state.texture[i].enable) { in validate_arrays()
1189 if (am.texture[i].enable) { in validate_arrays()
1190 am.texture[i].resolve(); in validate_arrays()
[all …]
/frameworks/base/opengl/java/android/opengl/
DETC1Util.java65 int fallbackFormat, int fallbackType, ETC1Texture texture) { in loadTexture() argument
74 int width = texture.getWidth(); in loadTexture()
75 int height = texture.getHeight(); in loadTexture()
76 Buffer data = texture.getData(); in loadTexture()
206 public static void writeTexture(ETC1Texture texture, OutputStream output) throws IOException { in writeTexture() argument
207 ByteBuffer dataBuffer = texture.getData(); in writeTexture()
210 int width = texture.getWidth(); in writeTexture()
211 int height = texture.getHeight(); in writeTexture()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DTransformUtils.java67 TextureSource texture = frame.lockTextureSource(); in generateMipMaps() local
68 texture.generateMipmaps(); in generateMipMaps()
73 TextureSource texture = frame.lockTextureSource(); in setTextureParameter() local
74 texture.setParameter(param, value); in setTextureParameter()
DCameraStreamer.java154 TextureSource texture = mTargetTextures.get(context); in onCleanupContext() local
156 if (texture != null) { in onCleanupContext()
157 texture.release(); in onCleanupContext()
166 TextureSource texture = mTargetTextures.get(context); in textureForContext() local
167 if (texture == null) { in textureForContext()
168 texture = createClientTexture(); in textureForContext()
169 mTargetTextures.put(context, texture); in textureForContext()
171 return texture; in textureForContext()
429 TextureSource texture = textureForContext(context); in surfaceTextureForContext() local
430 if (texture != null) { in surfaceTextureForContext()
[all …]
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp160 sp<GraphicBuffer> texture; member in Rectangle
318 layer->handle = it->texture->handle; in main()
507 rect.texture = new GraphicBuffer(rect.sourceDim.width(), in parseRect()
510 if ((rv = rect.texture->initCheck()) != NO_ERROR) { in parseRect()
517 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha); in parseRect()
521 rect.texture.get(), rect.texture->handle, format->desc, in parseRect()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser_test.cpp138 <gl-texture-groups>
139 <gl-texture-group label="dxt1" version-code-order="2">
140 <gl-texture name="GL_EXT_texture_compression_dxt1">
141 <texture-path>assets/dxt1/*</texture-path>
/frameworks/native/opengl/libs/GLES2/
Dgl2ext_api.in100 void API_ENTRY(glFramebufferTextureOES)(GLenum target, GLenum attachment, GLuint texture, GLint lev…
101 CALL_GL_API(glFramebufferTextureOES, target, attachment, texture, level);
142 …Texture3DOES)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLi…
143 CALL_GL_API(glFramebufferTexture3DOES, target, attachment, textarget, texture, level, zoffset);
178 void API_ENTRY(glTextureViewOES)(GLuint texture, GLenum target, GLuint origtexture, GLenum internal…
179 …CALL_GL_API(glTextureViewOES, texture, target, origtexture, internalformat, minlevel, numlevels, m…
304 void API_ENTRY(glEGLImageTargetTextureStorageEXT)(GLuint texture, GLeglImageOES image, const GLint*…
305 CALL_GL_API(glEGLImageTargetTextureStorageEXT, texture, image, attrib_list);
331 void API_ENTRY(glClearTexImageEXT)(GLuint texture, GLint level, GLenum format, GLenum type, const v…
332 CALL_GL_API(glClearTexImageEXT, texture, level, format, type, data);
[all …]
/frameworks/native/opengl/libs/GLES_CM/
Dglext_api.in106 void API_ENTRY(glMultiTexCoord4xOES)(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q) {
107 CALL_GL_API(glMultiTexCoord4xOES, texture, s, t, r, q);
202 …ferTexture2DOES)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) {
203 CALL_GL_API(glFramebufferTexture2DOES, target, attachment, textarget, texture, level);
343 …ltisampleEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLs…
344 …CALL_GL_API(glFramebufferTexture2DMultisampleEXT, target, attachment, textarget, texture, level, s…
367 void API_ENTRY(glTextureStorage1DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum interna…
368 CALL_GL_API(glTextureStorage1DEXT, texture, target, levels, internalformat, width);
370 void API_ENTRY(glTextureStorage2DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum interna…
371 CALL_GL_API(glTextureStorage2DEXT, texture, target, levels, internalformat, width, height);
[all …]
Dgl_api.in115 void API_ENTRY(glActiveTexture)(GLenum texture) {
116 CALL_GL_API(glActiveTexture, texture);
124 void API_ENTRY(glBindTexture)(GLenum target, GLuint texture) {
125 CALL_GL_API(glBindTexture, target, texture);
148 void API_ENTRY(glClientActiveTexture)(GLenum texture) {
149 CALL_GL_API(glClientActiveTexture, texture);
289 GLboolean API_ENTRY(glIsTexture)(GLuint texture) {
290 CALL_GL_API_RETURN(glIsTexture, texture);
328 void API_ENTRY(glMultiTexCoord4x)(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q) {
329 CALL_GL_API(glMultiTexCoord4x, texture, s, t, r, q);
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp167 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, in initTexture() argument
185 texture->w = w; in initTexture()
186 texture->h = h; in initTexture()
188 glGenTextures(1, &texture->name); in initTexture()
189 glBindTexture(GL_TEXTURE_2D, texture->name); in initTexture()
596 glGenTextures(1, &font->texture.name); in initFont()
597 glBindTexture(GL_TEXTURE_2D, font->texture.name); in initFont()
599 status = initTexture(font->map, &font->texture.w, &font->texture.h); in initFont()
606 status = initTexture(&font->texture, mAssets, fallback); in initFont()
612 font->char_width = font->texture.w / FONT_NUM_COLS; in initFont()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
DImageFlipRenderThread.java141 int texture = loadTexture(R.drawable.large_photo); in run() local
153 glBindTexture(GL_TEXTURE_2D, texture); in run()
213 int texture = textures[0]; in loadTexture() local
214 glBindTexture(GL_TEXTURE_2D, texture); in loadTexture()
230 return texture; in loadTexture()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp19 GLuint texture; variable
134 glGenTextures(1, &texture); in create_texture()
135 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
/frameworks/native/opengl/include/GLES/
Dglext.h189 typedef void (GL_APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfi…
232 GL_API void GL_APIENTRY glMultiTexCoord4xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfi…
302 …EXTURE2DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
318 …fferTexture2DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
648 …MPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLs…
651 …ltisampleEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLs…
738 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei le…
739 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei le…
740 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei le…
745 GL_API void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenu…
[all …]
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp23 GLuint texture; variable
217 glGenTextures(1, &texture); in create_texture()
218 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.cpp1015 Texture texture(Texture::TEXTURE_EXTERNAL, layer.source.buffer.textureName); in drawLayers() local
1018 texture.setMatrix(texMatrix.asArray()); in drawLayers()
1019 texture.setFiltering(layer.source.buffer.useTextureFiltering); in drawLayers()
1021 texture.setDimensions(gBuf->getWidth(), gBuf->getHeight()); in drawLayers()
1029 setupLayerTexturing(texture); in drawLayers()
1154 void GLESRenderEngine::setupLayerTexturing(const Texture& texture) { in setupLayerTexturing() argument
1155 GLuint target = texture.getTextureTarget(); in setupLayerTexturing()
1156 glBindTexture(target, texture.getTextureName()); in setupLayerTexturing()
1158 if (texture.getFiltering()) { in setupLayerTexturing()
1166 mState.texture = texture; in setupLayerTexturing()
[all …]
/frameworks/native/opengl/include/GLES2/
Dgl2ext.h397 …YP PFNGLFRAMEBUFFERTEXTUREOESPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
399 …L_APIENTRY glFramebufferTextureOES (GLenum target, GLenum attachment, GLuint texture, GLint level);
589 …RE3DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLi…
596 …Texture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLi…
732 typedef void (GL_APIENTRYP PFNGLTEXTUREVIEWOESPROC) (GLuint texture, GLenum target, GLuint origtext…
734 GL_APICALL void GL_APIENTRY glTextureViewOES (GLuint texture, GLenum target, GLuint origtexture, GL…
1071 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC) (GLuint texture, GLeglImageOES…
1074 GL_APICALL void GL_APIENTRY glEGLImageTargetTextureStorageEXT (GLuint texture, GLeglImageOES image,…
1141 typedef void (GL_APIENTRYP PFNGLCLEARTEXIMAGEEXTPROC) (GLuint texture, GLint level, GLenum format, …
1142 typedef void (GL_APIENTRYP PFNGLCLEARTEXSUBIMAGEEXTPROC) (GLuint texture, GLint level, GLint xoffse…
[all …]
/frameworks/native/opengl/libs/
Dentries_gles1.in1 GL_ENTRY(void, glActiveTexture, GLenum texture)
8 GL_ENTRY(void, glBindTexture, GLenum target, GLuint texture)
26 GL_ENTRY(void, glClientActiveTexture, GLenum texture)
87 GL_ENTRY(void, glExtGetTexLevelParameterivQCOM, GLuint texture, GLenum face, GLint level, GLenum pn…
104 …ltisampleEXT, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLs…
105 …ltisampleIMG, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLs…
106 …ufferTexture2DOES, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
168 GL_ENTRY(GLboolean, glIsTexture, GLuint texture)
207 GL_ENTRY(void, glMultiTexCoord4x, GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
208 GL_ENTRY(void, glMultiTexCoord4xOES, GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
[all …]

12345