Home
last modified time | relevance | path

Searched refs:GL_UNSIGNED_BYTE (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/native/opengl/tests/filter/
Dfilter.cpp117 4, 4, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, t8); in main()
129 4, 4, 0, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, t16); in main()
137 4, 4, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32); in main()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGLToolbox.java72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in readFbo()
78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in readTarget()
123 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in setTexturePixels()
/frameworks/native/opengl/tests/textures/
Dtextures.cpp105 glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, 4, 4, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, t8); in main()
114 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32); in main()
/frameworks/base/libs/hwui/
DPixelBuffer.cpp76 mFormat, GL_UNSIGNED_BYTE, mBuffer + offset); in upload()
154 GL_UNSIGNED_BYTE, reinterpret_cast<void*>(offset)); in upload()
DTextureCache.cpp295 texture->width, texture->height, GL_UNSIGNED_BYTE, bitmap->getPixels()); in generateTexture()
307 texture->width, texture->height, GL_UNSIGNED_BYTE, bitmap->getPixels()); in generateTexture()
346 width, height, GL_UNSIGNED_BYTE, rgbaBitmap.getPixels()); in uploadLoFiTexture()
DDither.cpp69 GL_ALPHA, GL_UNSIGNED_BYTE, &pattern); in bindDitherTexture()
DLayerRenderer.cpp391 type = GL_UNSIGNED_BYTE; in copyLayer()
404 type = GL_UNSIGNED_BYTE; in copyLayer()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_frame.cpp314 GL_UNSIGNED_BYTE, in AllocateTexture()
355 GL_UNSIGNED_BYTE, in ReadFboPixels()
454 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in UploadTexturePixels()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DRawTexture.java51 canvas.initializeTextureSize(this, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE); in prepare()
/frameworks/base/opengl/java/android/opengl/
DETC1Util.java70 || fallbackType == GLES10.GL_UNSIGNED_BYTE)) { in loadTexture()
82 boolean useShorts = fallbackType != GLES10.GL_UNSIGNED_BYTE; in loadTexture()
DGLES10.java252 public static final int GL_UNSIGNED_BYTE = 0x1401; field in GLES10
407 (type == GL_UNSIGNED_BYTE) || in glColorPointer()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp137 GL_UNSIGNED_BYTE, p); in initTexture()
145 GL_UNSIGNED_BYTE, p); in initTexture()
201 GL_UNSIGNED_BYTE, 0); in initTexture()
203 0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, p); in initTexture()
206 GL_UNSIGNED_BYTE, p); in initTexture()
/frameworks/native/libs/gui/tests/
DSurfaceTextureFBO.h37 getSurfaceHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in SetUp()
DMultiTextureConsumer_test.cpp90 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, &texel); in TEST_F()
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp247 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1024, 1024, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures()
259 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in genTextures()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCube.java94 gl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_BYTE, mIndexBuffer); in draw()
/frameworks/native/opengl/libagl/
Dtexture.cpp210 case GL_UNSIGNED_BYTE: ti = 0; break; in convertGLPixelFormat()
228 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && in validFormatType()
1079 type = GL_UNSIGNED_BYTE; in glCompressedTexImage2D()
1084 type = GL_UNSIGNED_BYTE; in glCompressedTexImage2D()
1104 type = GL_UNSIGNED_BYTE; in glCompressedTexImage2D()
1333 GLenum type = GL_UNSIGNED_BYTE; in glCopyTexImage2D()
1351 type = GL_UNSIGNED_BYTE; in glCopyTexImage2D()
1491 if ((type != GL_UNSIGNED_BYTE) && (type != GL_UNSIGNED_SHORT_5_6_5)) { in glReadPixels()
1505 if ((format == GL_RGBA) && (type == GL_UNSIGNED_BYTE)) { in glReadPixels()
Darray.cpp769 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE); in drawIndexedPrimitivesPoints()
791 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE); in drawIndexedPrimitivesLineStrip()
818 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE); in drawIndexedPrimitivesLineLoop()
845 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE); in drawIndexedPrimitivesLines()
874 const int type = (c->arrays.indicesType == GL_UNSIGNED_BYTE); in drawIndexedPrimitivesTriangleFanOrStrip()
1269 case GL_UNSIGNED_BYTE: in glColorPointer()
1411 case GL_UNSIGNED_BYTE: in glDrawElements()
/frameworks/native/opengl/tests/fillrate/
Dfillrate.cpp108 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 512, 512, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32); in main()
/frameworks/native/opengl/tests/gl2_copyTexImage/
Dgl2_copyTexImage.cpp190 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics()
198 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); in setupGraphics()
/frameworks/native/opengl/libs/GLES_trace/src/
Dgltrace_fixup.cpp83 case GL_UNSIGNED_BYTE: in getBytesPerTexel()
518 case GL_UNSIGNED_BYTE: in vertexAttribSize()
622 if (type == GL_UNSIGNED_BYTE) { in findMinAndMaxIndices()
741 if (type == GL_UNSIGNED_BYTE) { in fixup_glDrawElements()
/frameworks/av/cmds/screenrecord/
DFrameOutput.cpp139 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf); in copyFrame()
/frameworks/base/core/jni/android/opengl/
Dutil.cpp573 if (type == GL_UNSIGNED_BYTE) in checkFormat()
582 case GL_UNSIGNED_BYTE: in checkFormat()
615 return GL_UNSIGNED_BYTE; in getType()
619 return GL_UNSIGNED_BYTE; in getType()
/frameworks/base/services/core/jni/
Dcom_android_server_AssetAtlasService.cpp187 GL_RGBA, GL_UNSIGNED_BYTE, bitmap->getPixels()); in com_android_server_AssetAtlasService_upload()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp131 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in create_texture()

123