/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 582 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 …]
|
D | GLCanvas.java | 94 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/ |
D | Alpha8BitmapActivity.java | 49 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()
|
D | AdvancedBlendActivity.java | 63 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()
|
D | MoreShadersActivity.java | 65 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()
|
D | GLTextureViewActivity.java | 188 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/ |
D | texture.cpp | 36 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 …]
|
D | primitives.cpp | 395 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 …]
|
D | array.cpp | 114 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/ |
D | ETC1Util.java | 65 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/ |
D | TransformUtils.java | 67 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()
|
D | CameraStreamer.java | 154 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/ |
D | hwcRects.cpp | 160 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/ |
D | ConfigurationParser_test.cpp | 138 <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/GLES_CM/ |
D | glext_api.in | 106 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 …]
|
D | gl_api.in | 115 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/native/opengl/libs/GLES2/ |
D | gl2ext_api.in | 100 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/base/cmds/bootanimation/ |
D | BootAnimation.cpp | 157 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, in initTexture() argument 175 texture->w = w; in initTexture() 176 texture->h = h; in initTexture() 178 glGenTextures(1, &texture->name); in initTexture() 179 glBindTexture(GL_TEXTURE_2D, texture->name); in initTexture() 571 glGenTextures(1, &font->texture.name); in initFont() 572 glBindTexture(GL_TEXTURE_2D, font->texture.name); in initFont() 574 status = initTexture(font->map, &font->texture.w, &font->texture.h); in initFont() 581 status = initTexture(&font->texture, mAssets, fallback); in initFont() 587 font->char_width = font->texture.w / FONT_NUM_COLS; in initFont() [all …]
|
D | BootAnimation.h | 51 Texture texture; member 146 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/ |
D | ImageFlipRenderThread.java | 141 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/ |
D | gl_code.cpp | 19 GLuint texture; variable 134 glGenTextures(1, &texture); in create_texture() 135 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
|
/frameworks/native/opengl/tests/tritex/ |
D | tritex.cpp | 23 GLuint texture; variable 217 glGenTextures(1, &texture); in create_texture() 218 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
|
/frameworks/native/opengl/include/GLES/ |
D | glext.h | 189 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/libs/renderengine/gl/ |
D | GLESRenderEngine.cpp | 950 Texture texture(Texture::TEXTURE_EXTERNAL, layer.source.buffer.textureName); in drawLayers() local 953 texture.setMatrix(texMatrix.asArray()); in drawLayers() 954 texture.setFiltering(layer.source.buffer.useTextureFiltering); in drawLayers() 956 texture.setDimensions(gBuf->getWidth(), gBuf->getHeight()); in drawLayers() 964 setupLayerTexturing(texture); in drawLayers() 1090 void GLESRenderEngine::setupLayerTexturing(const Texture& texture) { in setupLayerTexturing() argument 1091 GLuint target = texture.getTextureTarget(); in setupLayerTexturing() 1092 glBindTexture(target, texture.getTextureName()); in setupLayerTexturing() 1094 if (texture.getFiltering()) { in setupLayerTexturing() 1102 mState.texture = texture; in setupLayerTexturing() [all …]
|
/frameworks/native/opengl/include/EGL/ |
D | eglext_angle.h | 119 …TREAMPOSTD3DTEXTUREANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib … 122 … eglStreamPostD3DTextureANGLE(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib …
|