Searched refs:internalFormat (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/libs/hwui/
H A DTexture.cpp95 bool Texture::updateLayout(uint32_t width, uint32_t height, GLint internalFormat, GLint format, argument
98 mInternalFormat == internalFormat && mTarget == target) {
104 mInternalFormat = internalFormat;
106 notifySizeChanged(mWidth * mHeight * bytesPerPixel(internalFormat));
117 void Texture::upload(GLint internalFormat, uint32_t width, uint32_t height, GLenum format, argument
124 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D);
132 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0, format, type, pixels);
134 glTexSubImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0, format, type, pixels);
150 static void uploadToTexture(bool resize, GLint internalFormat, GLenum format, GLenum type, argument
161 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, widt
295 GLint internalFormat, format, type; local
381 wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat, GLint format, GLenum target) argument
[all...]
H A DTexture.h88 void resize(uint32_t width, uint32_t height, GLint internalFormat, GLint format) { argument
89 upload(internalFormat, width, height, format,
90 internalFormat == GL_RGBA16F ? GL_HALF_FLOAT : GL_UNSIGNED_BYTE, nullptr);
105 void upload(GLint internalFormat, uint32_t width, uint32_t height, GLenum format, GLenum type,
111 void wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat, GLint format,
122 GLint internalFormat() const { return mInternalFormat; } function in class:android::uirenderer::Texture
181 bool updateLayout(uint32_t width, uint32_t height, GLint internalFormat, GLint format,
H A DOpenGLReadback.cpp142 GLenum internalFormat; local
148 internalFormat = GL_ALPHA;
153 internalFormat = GL_RGB;
158 internalFormat = GL_RGBA;
163 internalFormat = GL_RGBA16F;
169 internalFormat = GL_RGBA;
188 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, destWidth, destHeight, 0, format, type, nullptr);
H A DGlLayer.h43 texture.updateLayout(width, height, texture.internalFormat(), texture.format(),
H A DGradientCache.cpp263 GLint internalFormat = mHasLinearBlending ? GL_SRGB8_ALPHA8 : GL_RGBA; local
264 texture->upload(internalFormat, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
/frameworks/base/libs/hwui/renderthread/
H A DOpenGLPipeline.cpp386 static PixelFormat internalFormatToPixelFormat(GLint internalFormat) { argument
387 switch (internalFormat) {
399 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", internalFormat);
417 GLint format, type, internalFormat; local
419 needSRGB && hasLinearBlending, &internalFormat,
422 PixelFormat pixelFormat = internalFormatToPixelFormat(internalFormat);
/frameworks/base/libs/hwui/font/
H A DCacheTexture.cpp186 GLint internalFormat = mFormat; local
188 internalFormat = mCaches.rgbaInternalFormat();
191 mTexture.resize(mWidth, mHeight, internalFormat, mFormat);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java297 int internalFormat = imageFormatToInternal(format);
300 return mDepthOutputFormats.indexOfKey(internalFormat) >= 0;
302 return getFormatsMap(/*output*/true).indexOfKey(internalFormat) >= 0;
952 int internalFormat = imageFormatToInternal(format);
957 if (mDepthOutputFormats.indexOfKey(internalFormat) >= 0) {
961 if (mAllOutputFormats.indexOfKey(internalFormat) >= 0) {
966 if (mInputFormats.indexOfKey(internalFormat) >= 0) {
1263 int internalFormat = imageFormatToInternal(format);
1266 return getInternalFormatSizes(internalFormat, dataspace, output, highRes);
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp652 static int getPixelFormatFromInternalFormat(uint32_t internalFormat) { argument
653 switch (internalFormat) {
660 return internalFormat;
751 int internalFormat = getInternalFormat(colorType); local
753 format = getPixelFormatFromInternalFormat(internalFormat);
757 int err = checkInternalFormat(colorType, internalFormat, type);
/frameworks/native/opengl/include/GLES2/
H A Dgl2ext.h1484 typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
1485 typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
1486 typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
1487 typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
1489 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM2DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
1490 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
1491 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM3DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
1492 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
1502 GL_APICALL void GL_APIENTRY glTexStorageMem2DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
1503 GL_APICALL void GL_APIENTRY glTexStorageMem2DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsize
[all...]

Completed in 1122 milliseconds