/frameworks/native/opengl/tests/textures/ |
H A D | textures.cpp | 105 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 0, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, t16); 108 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 4, 4, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32);
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureFBO.h | 36 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getSurfaceWidth(), 37 getSurfaceHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
H A D | MultiTextureConsumer_test.cpp | 90 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, &texel);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | RawTexture.java | 51 canvas.initializeTextureSize(this, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GLToolbox.java | 72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 122 GLES20.glTexImage2D(target, 0, GLES20.GL_RGBA, width, height, 0, 123 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels);
|
/frameworks/base/libs/hwui/ |
H A D | PixelBuffer.h | 140 * GL_RGBA 146 case GL_RGBA: 157 * GL_RGBA 163 case GL_RGBA: 174 * The format must be GL_ALPHA or GL_RGBA.
|
H A D | OpenGLReadback.cpp | 157 format = GL_RGBA; 158 internalFormat = GL_RGBA; 162 format = GL_RGBA; 168 format = GL_RGBA; 169 internalFormat = GL_RGBA;
|
H A D | Texture.cpp | 45 case GL_RGBA: 207 *outFormat = GL_RGBA; 219 *outFormat = GL_RGBA; 231 *outFormat = GL_RGBA; 235 *outFormat = GL_RGBA; 336 if (needSRGB && internalFormat == GL_RGBA && mCaches.extensions().hasSRGB() &&
|
H A D | GradientCache.cpp | 261 texture->upload(GL_RGBA16F, width, height, GL_RGBA, GL_FLOAT, pixels); 263 GLint internalFormat = mHasLinearBlending ? GL_SRGB8_ALPHA8 : GL_RGBA; 264 texture->upload(internalFormat, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
H A D | Caches.h | 129 * this function returns GL_SRGB8_ALPHA8, otherwise it returns GL_RGBA 132 return extensions().hasLinearBlending() && needSRGB ? GL_SRGB8_ALPHA8 : GL_RGBA;
|
H A D | FontRenderer.cpp | 322 const size_t formatSize = PixelBuffer::formatSize(GL_RGBA); 415 createCacheTexture(mSmallCacheWidth, mSmallCacheHeight, GL_RGBA, false)); 417 createCacheTexture(mLargeCacheWidth, mLargeCacheHeight >> 1, GL_RGBA, false)); 754 case GL_RGBA: { 780 const uint32_t sizeRGBA = getCacheSize(GL_RGBA); 781 const uint32_t usedRGBA = sizeRGBA - getFreeCacheSize(GL_RGBA); 785 dumpTextures(log, "RGBA", cacheTexturesForFormat(GL_RGBA)); 798 return getCacheSize(GL_ALPHA) + getCacheSize(GL_RGBA);
|
/frameworks/native/opengl/tests/filter/ |
H A D | filter.cpp | 124 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 125 4, 4, 0, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, t16); 132 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 133 4, 4, 0, GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, t5551); 136 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 137 4, 4, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32);
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.cpp | 309 GL_RGBA, 313 GL_RGBA, 354 GL_RGBA, 453 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width_, height_, 454 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/native/opengl/tests/fillrate/ |
H A D | fillrate.cpp | 110 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 512, 512, 0, GL_RGBA, GL_UNSIGNED_BYTE, t32);
|
/frameworks/native/opengl/tests/gl_perf/ |
H A D | fill_common.cpp | 247 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1024, 1024, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); 259 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, m);
|
/frameworks/base/libs/hwui/font/ |
H A D | CacheTexture.cpp | 187 if (mFormat == GL_RGBA) { 242 if (mFormat != GL_RGBA) { 345 // currently only two formats are supported: GL_ALPHA or GL_RGBA; 346 uint32_t bpp = mFormat == GL_RGBA ? 4 : 1;
|
/frameworks/native/opengl/tests/gl2_copyTexImage/ |
H A D | gl2_copyTexImage.cpp | 190 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); 198 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 136 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 219 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 169 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, 173 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, 219 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tw, th, 0, GL_RGBA, 222 0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, p); 224 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA,
|
/frameworks/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 29 static const int kGlBytesPerPixel = 4; // GL_RGBA 131 // GLES only guarantees that glReadPixels() will work with GL_RGBA, so we 139 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf);
|
H A D | TextRenderer.cpp | 128 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, FontBitmap::width, potHeight, 0, 129 GL_RGBA, GL_UNSIGNED_BYTE, rgbaPixels);
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 631 internalformat == GL_RGBA) ? 0 : -1; 637 internalformat == GL_RGBA) ? 0 : -1; 656 return GL_RGBA; 670 return GL_RGBA; 672 return GL_RGBA;
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
H A D | VideoDumpView.java | 87 // GL_RGBA GL_UNSIGNED_BYTE 32 bits per pixel 89 public static final int PIXEL_TYPE = PIXEL_FORMAT == GLES20.GL_RGBA 92 PIXEL_FORMAT == GLES20.GL_RGBA ? 4 : 2; 94 = PIXEL_FORMAT == GLES20.GL_RGBA ? true : false;
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaOpenGLPipeline.cpp | 337 format = GL_RGBA; 349 format = GL_RGBA;
|