Home
last modified time | relevance | path

Searched refs:texture (Results 1 – 25 of 103) 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/services/surfaceflinger/CompositionEngine/src/planner/
DTexturePool.cpp53 return std::make_shared<AutoTexture>(*this, entry.texture, entry.fence); in borrowTexture()
56 void TexturePool::returnTexture(std::shared_ptr<renderengine::ExternalTexture>&& texture, in returnTexture() argument
64 if (static_cast<int32_t>(texture->getBuffer()->getWidth()) != mSize.getWidth() || in returnTexture()
65 static_cast<int32_t>(texture->getBuffer()->getHeight()) != mSize.getHeight()) { in returnTexture()
68 texture->getBuffer()->getWidth(), texture->getBuffer()->getHeight(), mSize.getWidth(), in returnTexture()
80 mPool.push_back({std::move(texture), fence}); in returnTexture()
DCachedSet.cpp265 auto texture = texturePool.borrowTexture(); in render() local
266 LOG_ALWAYS_FATAL_IF(texture->get()->getBuffer()->initCheck() != OK); in render()
269 if (texture->getReadyFence()) { in render()
271 if (texture->getReadyFence()->getStatus() != Fence::Status::Signaled) { in render()
274 bufferFence.reset(texture->getReadyFence()->dup()); in render()
281 .drawLayers(displaySettings, layerSettings, texture->get(), in render()
288 mTexture = texture; in render()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DTexturePoolTest.cpp65 auto texture = mTexturePool.borrowTexture(); in TEST_F() local
106 auto texture = mTexturePool.borrowTexture(); in TEST_F() local
107 newBufferIds.insert(texture->get()->getBuffer()->getId()); in TEST_F()
114 auto texture = mTexturePool.borrowTexture(); in TEST_F() local
117 static_cast<int32_t>(texture->get()->getBuffer()->getWidth())); in TEST_F()
119 static_cast<int32_t>(texture->get()->getBuffer()->getHeight())); in TEST_F()
123 texture.reset(); in TEST_F()
127 texture = mTexturePool.borrowTexture(); in TEST_F()
129 static_cast<int32_t>(texture->get()->getBuffer()->getWidth())); in TEST_F()
131 static_cast<int32_t>(texture->get()->getBuffer()->getHeight())); in TEST_F()
/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/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DTexturePool.h44 std::shared_ptr<renderengine::ExternalTexture> texture, const sp<Fence>& fence) in AutoTexture() argument
45 : mTexturePool(texturePool), mTexture(texture), mFence(fence) {} in AutoTexture()
94 std::shared_ptr<renderengine::ExternalTexture> texture; member
103 void returnTexture(std::shared_ptr<renderengine::ExternalTexture>&& texture,
/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.cpp119 <gl-texture-groups>
120 <gl-texture-group label="dxt1" version-code-order="2">
121 <gl-texture name="GL_EXT_texture_compression_dxt1">
122 <texture-path>assets/dxt1/*</texture-path>
/frameworks/native/libs/nativedisplay/surfacetexture/
Dsurface_texture.cpp187 void ASurfaceTexture_takeConsumerOwnership(ASurfaceTexture* texture) { in ASurfaceTexture_takeConsumerOwnership() argument
188 texture->consumer->takeConsumerOwnership(); in ASurfaceTexture_takeConsumerOwnership()
191 void ASurfaceTexture_releaseConsumerOwnership(ASurfaceTexture* texture) { in ASurfaceTexture_releaseConsumerOwnership() argument
192 texture->consumer->releaseConsumerOwnership(); in ASurfaceTexture_releaseConsumerOwnership()
/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 …]
/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/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMainActivity.java143 mTextureView = findViewById(R.id.texture); in onCreate()
475 SurfaceTexture texture = mTextureView.getSurfaceTexture(); in startRecordingVideo() local
476 assert texture != null; in startRecordingVideo()
477 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in startRecordingVideo()
482 Surface previewSurface = new Surface(texture); in startRecordingVideo()
599 SurfaceTexture texture = mTextureView.getSurfaceTexture(); in startPreview() local
600 assert texture != null; in startPreview()
601 texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); in startPreview()
604 Surface previewSurface = new Surface(texture); in startPreview()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DRenderSurface.cpp171 std::shared_ptr<renderengine::ExternalTexture> texture; in dequeueBuffer() local
176 texture = cachedTexture; in dequeueBuffer()
182 if (texture) { in dequeueBuffer()
183 mTexture = texture; in dequeueBuffer()
/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/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/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/libs/renderengine/benchmark/
DRenderEngineBench.cpp135 auto texture = allocateBuffer(re, width, height, extraUsageFlags, name); in copyBuffer() local
162 re.drawLayers(display, layers, texture, kUseFrameBufferCache, base::unique_fd()).get(); in copyBuffer()
165 return texture; in copyBuffer()

12345