Home
last modified time | relevance | path

Searched refs:internalFormat (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/hwui/
DTexture.cpp95 bool Texture::updateLayout(uint32_t width, uint32_t height, GLint internalFormat, in updateLayout() argument
100 && mInternalFormat == internalFormat in updateLayout()
107 mInternalFormat = internalFormat; in updateLayout()
109 notifySizeChanged(mWidth * mHeight * bytesPerPixel(internalFormat)); in updateLayout()
120 void Texture::upload(GLint internalFormat, uint32_t width, uint32_t height, in upload() argument
123 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D); in upload()
131 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0, in upload()
134 glTexSubImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0, in upload()
151 static void uploadToTexture(bool resize, GLint internalFormat, GLenum format, GLenum type, in uploadToTexture() argument
162 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, data); in uploadToTexture()
[all …]
DTexture.h90 void resize(uint32_t width, uint32_t height, GLint internalFormat, GLint format) { in resize() argument
91 upload(internalFormat, width, height, format, GL_UNSIGNED_BYTE, nullptr); in resize()
106 void upload(GLint internalFormat, uint32_t width, uint32_t height,
112 void wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat,
131 GLint internalFormat() const { in internalFormat() function
199 bool updateLayout(uint32_t width, uint32_t height, GLint internalFormat,
DGlLayer.h47 texture.updateLayout(width, height, texture.internalFormat(), texture.format(), in setSize()
DGradientCache.cpp263 GLint internalFormat = mHasLinearBlending ? GL_SRGB8_ALPHA8 : GL_RGBA; in generateTexture() local
264 texture->upload(internalFormat, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels); in generateTexture()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java297 int internalFormat = imageFormatToInternal(format); in isOutputSupportedFor() local
300 return mDepthOutputFormats.indexOfKey(internalFormat) >= 0; in isOutputSupportedFor()
302 return getFormatsMap(/*output*/true).indexOfKey(internalFormat) >= 0; in isOutputSupportedFor()
952 int internalFormat = imageFormatToInternal(format); in checkArgumentFormatSupported() local
957 if (mDepthOutputFormats.indexOfKey(internalFormat) >= 0) { in checkArgumentFormatSupported()
961 if (mAllOutputFormats.indexOfKey(internalFormat) >= 0) { in checkArgumentFormatSupported()
966 if (mInputFormats.indexOfKey(internalFormat) >= 0) { in checkArgumentFormatSupported()
1258 int internalFormat = imageFormatToInternal(format); in getPublicFormatSizes() local
1261 return getInternalFormatSizes(internalFormat, dataspace, output, highRes); in getPublicFormatSizes()
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp98 static PixelFormat internalFormatToPixelFormat(GLint internalFormat) { in internalFormatToPixelFormat() argument
99 switch (internalFormat) { in internalFormatToPixelFormat()
111 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", internalFormat); in internalFormatToPixelFormat()
229 GLint format, type, internalFormat; in allocateHardwareBitmap() local
231 needSRGB && hasLinearBlending, &internalFormat, &format, &type); in allocateHardwareBitmap()
233 PixelFormat pixelFormat = internalFormatToPixelFormat(internalFormat); in allocateHardwareBitmap()
/frameworks/base/libs/hwui/font/
DCacheTexture.cpp183 GLint internalFormat = mFormat; in allocatePixelBuffer() local
185 internalFormat = mCaches.rgbaInternalFormat(); in allocatePixelBuffer()
188 mTexture.resize(mWidth, mHeight, internalFormat, mFormat); in allocatePixelBuffer()