Home
last modified time | relevance | path

Searched refs:GL_TEXTURE_2D (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/native/opengl/tests/textures/
Dtextures.cpp67 glBindTexture(GL_TEXTURE_2D, 0); in main()
68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
69 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main()
71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in main()
72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in main()
74 glEnable(GL_TEXTURE_2D); in main()
99 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, 4, 4, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, t8); in main()
102 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 4, 4, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, t16); in main()
105 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 0, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, t16); in main()
[all …]
/frameworks/native/opengl/tests/finish/
Dfinish.cpp68 glBindTexture(GL_TEXTURE_2D, 0); in main()
69 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in main()
72 glEnable(GL_TEXTURE_2D); in main()
83 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, in main()
106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
[all …]
/frameworks/native/opengl/tests/filter/
Dfilter.cpp79 glBindTexture(GL_TEXTURE_2D, 0); in main()
80 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
81 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main()
82 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main()
84 glEnable(GL_TEXTURE_2D); in main()
116 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, in main()
120 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, in main()
124 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, in main()
128 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE_ALPHA, in main()
132 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, in main()
[all …]
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp246 glBindTexture(GL_TEXTURE_2D, 1); in genTextures()
247 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1024, 1024, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures()
248 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in genTextures()
249 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in genTextures()
250 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in genTextures()
251 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in genTextures()
258 glBindTexture(GL_TEXTURE_2D, 2); in genTextures()
259 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures()
260 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in genTextures()
261 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in genTextures()
[all …]
/frameworks/native/libs/gui/tests/
DMultiTextureConsumer_test.cpp89 glBindTexture(GL_TEXTURE_2D, TEX_ID+1); in TEST_F()
90 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, &texel); in TEST_F()
91 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in TEST_F()
92 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in TEST_F()
93 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_F()
94 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_F()
97 glBindTexture(GL_TEXTURE_2D, TEX_ID+1); in TEST_F()
98 glEnable(GL_TEXTURE_2D); in TEST_F()
DSurfaceTextureFBO.h35 glBindTexture(GL_TEXTURE_2D, mFboTex); in SetUp()
36 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getSurfaceWidth(), in SetUp()
38 glBindTexture(GL_TEXTURE_2D, 0); in SetUp()
43 GL_TEXTURE_2D, mFboTex, 0); in SetUp()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_frame.cpp48 texture_target_(GL_TEXTURE_2D), in GLFrame()
112 glGenerateMipmap(GL_TEXTURE_2D); in GenerateMipMap()
121 glTexParameteri(GL_TEXTURE_2D, pname, value); in SetTextureParameter()
134 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, tex_params_[GL_TEXTURE_MAG_FILTER]); in UpdateTexParameters()
135 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, tex_params_[GL_TEXTURE_MIN_FILTER]); in UpdateTexParameters()
136 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, tex_params_[GL_TEXTURE_WRAP_S]); in UpdateTexParameters()
137 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, tex_params_[GL_TEXTURE_WRAP_T]); in UpdateTexParameters()
257 glBindTexture(GL_TEXTURE_2D, texture_id_); in BindTexture()
306 glBindTexture(GL_TEXTURE_2D, texture_id_); in AllocateTexture()
307 glTexImage2D(GL_TEXTURE_2D, in AllocateTexture()
[all …]
/frameworks/native/opengl/tests/linetex/
Dlinetex.cpp68 glBindTexture(GL_TEXTURE_2D, 0); in main()
69 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in main()
71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in main()
72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in main()
76 glEnable(GL_TEXTURE_2D); in main()
95 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 4, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, t16); in main()
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/
DGenImage.java157 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_NEAREST); in setup()
160 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR); in setup()
167 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_NEAREST); in setup()
170 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR); in setup()
178 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_CLAMP_TO_EDGE); in setup()
182 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_REPEAT); in setup()
186 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_MIRRORED_REPEAT); in setup()
195 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_CLAMP_TO_EDGE); in setup()
199 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_REPEAT); in setup()
203 … GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_MIRRORED_REPEAT); in setup()
[all …]
/frameworks/native/opengl/tests/gl2_copyTexImage/
Dgl2_copyTexImage.cpp189 glBindTexture(GL_TEXTURE_2D, gTexture); in setupGraphics()
190 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics()
191 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in setupGraphics()
192 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in setupGraphics()
193 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in setupGraphics()
194 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in setupGraphics()
197 glBindTexture(GL_TEXTURE_2D, gBufferTexture); in setupGraphics()
198 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics()
199 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in setupGraphics()
200 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in setupGraphics()
[all …]
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp189 glBindTexture(GL_TEXTURE_2D, texture->name); in initTexture()
193 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, w, h, 0, GL_ALPHA, in initTexture()
197 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, in initTexture()
201 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, in initTexture()
205 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, w, h, 0, GL_RGB, in initTexture()
212 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initTexture()
213 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in initTexture()
214 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in initTexture()
215 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in initTexture()
216 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in initTexture()
[all …]
/frameworks/native/opengl/tests/fillrate/
Dfillrate.cpp69 glBindTexture(GL_TEXTURE_2D, 0); in main()
70 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in main()
71 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in main()
72 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in main()
73 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in main()
78 glEnable(GL_TEXTURE_2D); in main()
110 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 512, 512, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32); in main()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGLToolbox.java97 GLES20.GL_TEXTURE_2D, in attachTextureToFbo()
129 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
131 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
133 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
135 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, in setDefaultTexParams()
DTextureSource.java37 return new TextureSource(texId, GLES20.GL_TEXTURE_2D, false); in fromTexture()
41 return new TextureSource(GLToolbox.generateTexture(), GLES20.GL_TEXTURE_2D, true); in newTexture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageGLWallpaper.java22 import static android.opengl.GLES20.GL_TEXTURE_2D;
183 glBindTexture(GL_TEXTURE_2D, tids[0]); in setupTexture()
185 GLUtils.texImage2D(GL_TEXTURE_2D, 0, bitmap, 0); in setupTexture()
187 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in setupTexture()
189 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in setupTexture()
198 glBindTexture(GL_TEXTURE_2D, mTextureId); in useTexture()
/frameworks/rs/driver/
DrsdFrameBufferObj.cpp78 GL_TEXTURE_2D, mDepthTarget->textureID, 0); in setDepthAttachment()
86 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, 0, 0); in setDepthAttachment()
96 GL_TEXTURE_2D, mColorTargets[i]->textureID, 0); in setColorAttachment()
106 GL_TEXTURE_2D, 0, 0); in setColorAttachment()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLDepthTestActivity.java150 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID); in onDrawFrame()
228 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID); in onSurfaceCreated()
230 GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, in onSurfaceCreated()
232 GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, in onSurfaceCreated()
236 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, in onSurfaceCreated()
238 GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, in onSurfaceCreated()
254 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated()
DGLTextureViewActivity.java200 glBindTexture(GL_TEXTURE_2D, texture); in run()
261 glBindTexture(GL_TEXTURE_2D, texture); in loadTexture()
264 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in loadTexture()
265 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in loadTexture()
267 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in loadTexture()
268 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in loadTexture()
272 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); in loadTexture()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
DImageFlipRenderThread.java47 import static android.opengl.GLES20.GL_TEXTURE_2D;
153 glBindTexture(GL_TEXTURE_2D, texture); in run()
214 glBindTexture(GL_TEXTURE_2D, texture); in loadTexture()
217 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in loadTexture()
218 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in loadTexture()
220 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in loadTexture()
221 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in loadTexture()
225 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0); in loadTexture()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp113 glEnable(GL_TEXTURE_2D); in init_scene()
135 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
136 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
137 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture()
138 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp197 glEnable(GL_TEXTURE_2D); in init_scene()
218 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
219 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
220 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture()
221 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
/frameworks/native/cmds/flatland/
DGLHelper.cpp433 glBindTexture(GL_TEXTURE_2D, mDitherTexture); in getDitherTexture()
435 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in getDitherTexture()
436 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in getDitherTexture()
438 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); in getDitherTexture()
439 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); in getDitherTexture()
441 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, DITHER_KERNEL_SIZE, in getDitherTexture()
/frameworks/base/libs/hwui/pipeline/skia/
DVkInteropFunctorDrawable.cpp118 glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, autoImage.image); in onDraw()
121 glBindTexture(GL_TEXTURE_2D, 0); in onDraw()
141 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, in onDraw()
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp306 glEnable(GL_TEXTURE_2D); in init_scene()
328 glBindTexture(GL_TEXTURE_2D, texture); in create_texture()
329 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()
330 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in create_texture()
331 glTexParameterx(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in create_texture()
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp92 glBindTexture(GL_TEXTURE_2D, mTextureName); in loadIntoTexture()
93 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in loadIntoTexture()
94 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in loadIntoTexture()
128 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, FontBitmap::width, potHeight, 0, in loadIntoTexture()

123