¡@

Home 

2014/10/16 ¤W¤È 08:14:19

android Programming Glossary: glteximage2d

YUV to RGB conversion by fragment shader

http://stackoverflow.com/questions/12130790/yuv-to-rgb-conversion-by-fragment-shader

in onDrawFrame method GLES20.glUniform1i yTexture 1 GLES20.glTexImage2D GLES20.GL_TEXTURE_2D 0 GLES20.GL_LUMINANCE 320 240 0 GLES20.GL_LUMINANCE.. GLES20.GL_LINEAR GLES20.glUniform1i uTexture 2 GLES20.glTexImage2D GLES20.GL_TEXTURE_2D 0 GLES20.GL_LUMINANCE 160 120 0 GLES20.GL_LUMINANCE.. GLES20.GL_LINEAR GLES20.glUniform1i vTexture 3 GLES20.glTexImage2D GLES20.GL_TEXTURE_2D 0 GLES20.GL_LUMINANCE 160 120 0 GLES20.GL_LUMINANCE..

Android OpenGL ES Framebuffer objects - rendering to texture

http://stackoverflow.com/questions/4041682/android-opengl-es-framebuffer-objects-rendering-to-texture

Width and height do not have to be a power of two glTexImage2D GL_TEXTURE_2D 0 GL_RGBA pixelWidth pixelHeight 0 GL_RGBA GL_UNSIGNED_BYTE.. 1 depth_texture glBindTexture GL_TEXTURE_2D depth_texture glTexImage2D GL_TEXTURE_2D 0 GL_DEPTH_COMPONENT pixelWidth pixelHeight 0..

Android Video Player Using NDK, OpenGL ES, and FFmpeg

http://stackoverflow.com/questions/4676178/android-video-player-using-ndk-opengl-es-and-ffmpeg

60 FPS even on first generation hardware. EDIT regarding glTexImage2D vs glTexSubImage2D for this approach. Calling glTexImage2D will.. glTexImage2D vs glTexSubImage2D for this approach. Calling glTexImage2D will allocate video memory for your texture and copy the pixels.. there's little difference calling one or the other in fact glTexImage2D is usually faster. But if you only update part of the texture..

Threading textures load process for android opengl game

http://stackoverflow.com/questions/6318311/threading-textures-load-process-for-android-opengl-game

that the way to do this is to separate JPEG unpacking from glTexImage2D ... calls to another thread. The problem is I'm not quite sure.. sure how to do this. OpenGL handler needed to execute glTexImage2D is only available in GLSurfaceView.Renderer's onSurfaceCreated.. the uploading routine that has access to OpenGL and calls glTexImage2D. The other thread loads and decodes the image from file to memory...

android ffmpeg opengl es render movie

http://stackoverflow.com/questions/8867616/android-ffmpeg-opengl-es-render-movie

quad . Below is what I am doing to render but creating the glTexImage2D is slow. I want to know if there is any way to speed this up.. glBindTexture GL_TEXTURE_2D textureConverted this is slow glTexImage2D GL_TEXTURE_2D target 0 level GL_RGBA internal format textureWidth..

Android OpenGL Texture Compression

http://stackoverflow.com/questions/9148795/android-opengl-texture-compression

texture as raw data. Use glCompressedTexImage2D instead of glTexImage2D public void onDrawFrame GL10 gl .... gl.glCompressedTexImage2D..

YUV to RGB conversion by fragment shader

http://stackoverflow.com/questions/12130790/yuv-to-rgb-conversion-by-fragment-shader

0 This is how I bind byte arrays to OpenGL texture in onDrawFrame method GLES20.glUniform1i yTexture 1 GLES20.glTexImage2D GLES20.GL_TEXTURE_2D 0 GLES20.GL_LUMINANCE 320 240 0 GLES20.GL_LUMINANCE GLES20.GL_UNSIGNED_BYTE yBuffer GLES20.glTexParameteri.. GLES20.GL_TEXTURE_2D GLES20.GL_TEXTURE_MAG_FILTER GLES20.GL_LINEAR GLES20.glUniform1i uTexture 2 GLES20.glTexImage2D GLES20.GL_TEXTURE_2D 0 GLES20.GL_LUMINANCE 160 120 0 GLES20.GL_LUMINANCE GLES20.GL_UNSIGNED_BYTE uBuffer GLES20.glTexParameteri.. GLES20.GL_TEXTURE_2D GLES20.GL_TEXTURE_MAG_FILTER GLES20.GL_LINEAR GLES20.glUniform1i vTexture 3 GLES20.glTexImage2D GLES20.GL_TEXTURE_2D 0 GLES20.GL_LUMINANCE 160 120 0 GLES20.GL_LUMINANCE GLES20.GL_UNSIGNED_BYTE vBuffer GLES20.glTexParameteri..

Android OpenGL ES Framebuffer objects - rendering to texture

http://stackoverflow.com/questions/4041682/android-opengl-es-framebuffer-objects-rendering-to-texture

1 colour_texture glBindTexture GL_TEXTURE_2D colour_texture Width and height do not have to be a power of two glTexImage2D GL_TEXTURE_2D 0 GL_RGBA pixelWidth pixelHeight 0 GL_RGBA GL_UNSIGNED_BYTE NULL glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_S.. 0 Create a texture to hold the depth buffer glGenTextures 1 depth_texture glBindTexture GL_TEXTURE_2D depth_texture glTexImage2D GL_TEXTURE_2D 0 GL_DEPTH_COMPONENT pixelWidth pixelHeight 0 GL_DEPTH_COMPONENT GL_UNSIGNED_SHORT NULL glTexParameteri GL_TEXTURE_2D..

Android Video Player Using NDK, OpenGL ES, and FFmpeg

http://stackoverflow.com/questions/4676178/android-video-player-using-ndk-opengl-es-and-ffmpeg

an example . Using this technique I have been able to get 60 FPS even on first generation hardware. EDIT regarding glTexImage2D vs glTexSubImage2D for this approach. Calling glTexImage2D will allocate video memory for your texture and copy the pixels.. 60 FPS even on first generation hardware. EDIT regarding glTexImage2D vs glTexSubImage2D for this approach. Calling glTexImage2D will allocate video memory for your texture and copy the pixels you pass it into that memory if you don't pass NULL . Calling.. allocated texture. If you update all of the texture then there's little difference calling one or the other in fact glTexImage2D is usually faster. But if you only update part of the texture glTexSubImage2D wins out on speed. You have to use power of..

Threading textures load process for android opengl game

http://stackoverflow.com/questions/6318311/threading-textures-load-process-for-android-opengl-game

drawing starts. I've asked a question and I've been told that the way to do this is to separate JPEG unpacking from glTexImage2D ... calls to another thread. The problem is I'm not quite sure how to do this. OpenGL handler needed to execute glTexImage2D.. ... calls to another thread. The problem is I'm not quite sure how to do this. OpenGL handler needed to execute glTexImage2D is only available in GLSurfaceView.Renderer's onSurfaceCreated and OnDrawFrame methods. I can't unpack all my textures and.. improve this question You just have your main thread with the uploading routine that has access to OpenGL and calls glTexImage2D. The other thread loads and decodes the image from file to memory. While the secondary thread loads the next image the main..

android ffmpeg opengl es render movie

http://stackoverflow.com/questions/8867616/android-ffmpeg-opengl-es-render-movie

the texture on top of that opengl es way of rendering quad . Below is what I am doing to render but creating the glTexImage2D is slow. I want to know if there is any way to speed this up or give the appearance of speeding this up such as trying to.. GL_VERTEX_ARRAY glEnableClientState GL_TEXTURE_COORD_ARRAY glBindTexture GL_TEXTURE_2D textureConverted this is slow glTexImage2D GL_TEXTURE_2D target 0 level GL_RGBA internal format textureWidth width textureHeight height 0 border GL_RGBA format GL_UNSIGNED_BYTE..

Android OpenGL Texture Compression

http://stackoverflow.com/questions/9148795/android-opengl-texture-compression

Handle no texture compression founded. Load compressed texture as raw data. Use glCompressedTexImage2D instead of glTexImage2D public void onDrawFrame GL10 gl .... gl.glCompressedTexImage2D GL10.GL_TEXTURE_2D level internalformat width height border..