Home
last modified time | relevance | path

Searched refs:textures (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/native/opengl/libagl/
Dtexture.cpp50 c->textures.packAlignment = 4; in ogles_init_texture()
51 c->textures.unpackAlignment = 4; in ogles_init_texture()
54 c->textures.defaultTexture = new EGLTextureObject(); in ogles_init_texture()
55 c->textures.defaultTexture->incStrong(c); in ogles_init_texture()
59 bindTextureTmu(c, i, 0, c->textures.defaultTexture); in ogles_init_texture()
67 if (c->textures.ggl) in ogles_uninit_texture()
68 gglUninit(c->textures.ggl); in ogles_uninit_texture()
69 c->textures.defaultTexture->decStrong(c); in ogles_uninit_texture()
71 if (c->textures.tmu[i].texture) in ogles_uninit_texture()
72 c->textures.tmu[i].texture->decStrong(c); in ogles_uninit_texture()
[all …]
Dprimitives.cpp493 int width = c->textures.tmu[i].texture->surface.width; in primitive_point()
498 int height = c->textures.tmu[i].texture->surface.height; in primitive_point()
705 const int w = c->textures.tmu[i].texture->surface.width; in compute_lod()
706 const int h = c->textures.tmu[i].texture->surface.height; in compute_lod()
734 const GLenum min_filter = c->textures.tmu[i].texture->min_filter; in lerp_texcoords()
738 &c->textures.tmu[i].texture->mip(lod)); in lerp_texcoords()
791 const GLenum min_filter = c->textures.tmu[i].texture->min_filter; in lerp_texcoords_w()
795 &c->textures.tmu[i].texture->mip(lod)); in lerp_texcoords_w()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGLToolbox.java43 int[] textures = new int[] { texId }; in deleteTexture() local
45 GLES20.glDeleteTextures(1, textures, 0); in deleteTexture()
57 int[] textures = new int[1]; in generateTexture() local
58 GLES20.glGenTextures(1, textures, 0); in generateTexture()
60 return textures[0]; in generateTexture()
/frameworks/native/opengl/tests/textures/
DAndroid.bp2 name: "test-opengl-textures",
3 srcs: ["textures.cpp"],
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20IdImpl.java25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument
26 GLES20.glDeleteTextures(n, textures, offset); in glDeleteTextures()
DGLId.java28 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset); in glDeleteTextures() argument
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.cpp192 std::vector<GLuint> textures; in Process() local
204 textures.push_back(tex_id); in Process()
210 if (!RenderFrame(textures, targets)) { in Process()
218 std::vector<const GLTextureHandle*> textures(input.size()); in Process() local
219 std::copy(input.begin(), input.end(), textures.begin()); in Process()
220 return Process(textures, output); in Process()
419 bool ShaderProgram::BindInputTextures(const std::vector<GLuint>& textures, in BindInputTextures() argument
421 for (unsigned i = 0; i < textures.size(); ++i) { in BindInputTextures()
428 glBindTexture(targets[i], textures[i]); in BindInputTextures()
429 LOG_FRAME("Binding texture %d", textures[i]); in BindInputTextures()
[all …]
Dshader_program.h341 bool RenderFrame(const std::vector<GLuint>& textures,
444 bool BindInputTextures(const std::vector<GLuint>& textures,
/frameworks/rs/
DrsProgram.cpp48 mHal.state.textures = new Allocation*[mHal.state.texturesCount]; in Program()
96 delete[] mHal.state.textures; in ~Program()
129 mHal.state.textures = nullptr; in initMemberVars()
195 mHal.state.textures[slot] = a; in bindTexture()
DrsProgram.h43 Allocation **textures; member
/frameworks/base/libs/hwui/debug/
DNullGlesDriver.cpp52 void NullGlesDriver::glGenTextures_(GLsizei n, GLuint* textures) { in glGenTextures_() argument
53 nullglGenCommon(n, textures); in glGenTextures_()
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DMyGLSurfaceView.java193 int[] textures = new int[1]; in onSurfaceCreated() local
194 GLES20.glGenTextures(1, textures, 0); in onSurfaceCreated()
196 mTextureID = textures[0]; in onSurfaceCreated()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java398 int[] textures, in glDeleteTextures() argument
404 java.nio.IntBuffer textures in glDeleteTextures() argument
516 int[] textures, in glGenTextures() argument
522 java.nio.IntBuffer textures in glGenTextures() argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLDepthTestActivity.java224 int[] textures = new int[1]; in onSurfaceCreated() local
225 GLES20.glGenTextures(1, textures, 0); in onSurfaceCreated()
227 mTextureID = textures[0]; in onSurfaceCreated()
DGLTextureViewActivity.java254 int[] textures = new int[1]; in loadTexture() local
257 glGenTextures(1, textures, 0); in loadTexture()
260 int texture = textures[0]; in loadTexture()
/frameworks/native/opengl/tools/glgen/specs/gles11/
Dchecks.spec35 glDeleteTextures check textures n
49 glGenTextures check textures n
/frameworks/base/opengl/java/android/opengl/
DGLES10.java477 int[] textures, in glDeleteTextures() argument
485 java.nio.IntBuffer textures in glDeleteTextures() argument
641 int[] textures, in glGenTextures() argument
649 java.nio.IntBuffer textures in glGenTextures() argument
/frameworks/opt/gamesdk/third_party/cube/app/src/main/cpp/
Dcube.cpp345 texture_object textures[texture_count]; member
628 device.destroyImageView(textures[i].view, nullptr); in cleanup()
629 device.destroyImage(textures[i].image, nullptr); in cleanup()
630 device.freeMemory(textures[i].mem, nullptr); in cleanup()
631 device.destroySampler(textures[i].sampler, nullptr); in cleanup()
1815 tex_descs[i].setSampler(textures[i].sampler); in prepare_descriptor_set()
1816 tex_descs[i].setImageView(textures[i].view); in prepare_descriptor_set()
2127 …prepare_texture_image(tex_files[i], &textures[i], vk::ImageTiling::eLinear, vk::ImageUsageFlagBits… in prepare_textures()
2131 …set_image_layout(textures[i].image, vk::ImageAspectFlagBits::eColor, vk::ImageLayout::ePreinitiali… in prepare_textures()
2132textures[i].imageLayout, vk::AccessFlagBits(), vk::PipelineStageFlagBits::eTopOfPipe, in prepare_textures()
[all …]
Dcube.c485 struct texture_object textures[DEMO_TEXTURE_COUNT]; member
1752 …demo_prepare_texture_image(demo, tex_files[i], &demo->textures[i], VK_IMAGE_TILING_LINEAR, VK_IMAG… in demo_prepare_textures()
1756 …demo_set_image_layout(demo, demo->textures[i].image, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_PR… in demo_prepare_textures()
1757 … demo->textures[i].imageLayout, 0, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, in demo_prepare_textures()
1766 … demo_prepare_texture_image(demo, tex_files[i], &demo->textures[i], VK_IMAGE_TILING_OPTIMAL, in demo_prepare_textures()
1770 …demo_set_image_layout(demo, demo->textures[i].image, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_PR… in demo_prepare_textures()
1783 vkCmdCopyBufferToImage(demo->cmd, demo->staging_texture.buffer, demo->textures[i].image, in demo_prepare_textures()
1786 …demo_set_image_layout(demo, demo->textures[i].image, VK_IMAGE_ASPECT_COLOR_BIT, VK_IMAGE_LAYOUT_TR… in demo_prepare_textures()
1787 … demo->textures[i].imageLayout, VK_ACCESS_TRANSFER_WRITE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, in demo_prepare_textures()
1832 err = vkCreateSampler(demo->device, &sampler, NULL, &demo->textures[i].sampler); in demo_prepare_textures()
[all …]
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-checks4 glDeleteTextures check textures n
8 glGenTextures check textures n
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
DImageFlipRenderThread.java207 int[] textures = new int[1]; in loadTexture() local
210 glGenTextures(1, textures, 0); in loadTexture()
213 int texture = textures[0]; in loadTexture()
/frameworks/rs/driver/
DrsdShader.cpp88 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState()
199 Allocation *a = mRSProgram->mHal.state.textures[ct]; in appendTextures()
487 if (!mRSProgram->mHal.state.textures[ct]) { in setupTextures()
493 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv; in setupTextures()
506 mRSProgram->mHal.state.textures[ct]); in setupTextures()
/frameworks/base/core/jni/
Dandroid_opengl_GLES10.cpp744 GLuint *textures = (GLuint *) 0; in android_glDeleteTextures__I_3II() local
767 textures = textures_base + offset; in android_glDeleteTextures__I_3II()
771 (GLuint *)textures in android_glDeleteTextures__I_3II()
794 GLuint *textures = (GLuint *) 0; in android_glDeleteTextures__ILjava_nio_IntBuffer_2() local
802textures = (GLuint *)getPointer(_env, textures_buf, (jarray*)&_array, &_remaining, &_bufferOffset); in android_glDeleteTextures__ILjava_nio_IntBuffer_2()
809 if (textures == NULL) { in android_glDeleteTextures__ILjava_nio_IntBuffer_2()
811 textures = (GLuint *) (_texturesBase + _bufferOffset); in android_glDeleteTextures__ILjava_nio_IntBuffer_2()
815 (GLuint *)textures in android_glDeleteTextures__ILjava_nio_IntBuffer_2()
820 _env->ReleaseIntArrayElements(_array, (jint*)textures, JNI_ABORT); in android_glDeleteTextures__ILjava_nio_IntBuffer_2()
1265 GLuint *textures = (GLuint *) 0; in android_glGenTextures__I_3II() local
[all …]
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java288 int[] textures = new int[1]; in onSurfaceCreated() local
289 GLES20.glGenTextures(1, textures, 0); in onSurfaceCreated()
291 mTextureID = textures[0]; in onSurfaceCreated()
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DVideoDumpView.java552 int[] textures = new int[1]; in onSurfaceCreated() local
553 GLES20.glGenTextures(1, textures, 0); in onSurfaceCreated()
555 mTextureID = textures[0]; in onSurfaceCreated()

123