Searched refs:formatSize (Results 1 – 6 of 6) sorted by relevance
126 uint32_t getSize() const { return mWidth * mHeight * formatSize(mFormat); } in getSize()132 return (y * mWidth + x) * formatSize(mFormat); in getOffset()142 static uint32_t formatSize(GLenum format) { in formatSize() function
107 return (uint32_t)((mWidth * mHeight * formatSize(mFormat)) / 8.0f + 0.5f); in getSize()114 static uint32_t formatSize(GLenum format) { in formatSize() function
322 const size_t formatSize = PixelBuffer::formatSize(GL_RGBA); in cacheBitmap() local323 const size_t borderSize = formatSize * TEXTURE_BORDER_SIZE; in cacheBitmap()324 size_t rowSize = formatSize * glyph.fWidth; in cacheBitmap()326 size_t dstStride = formatSize * cacheWidth; in cacheBitmap()
51 , mBuffer(new uint8_t[width * height * formatSize(format)]) {} in CpuPixelBuffer()
213 uint32_t formatSize = PixelBuffer::formatSize(pixelBuffer->getFormat()); in drawCachedGlyphBitmap() local216 uint32_t srcStride = formatSize * cacheWidth; in drawCachedGlyphBitmap()227 cacheBuffer[cacheY + (glyph->mStartX + i) * formatSize + alpha_channel_offset]; in drawCachedGlyphBitmap()
98 return (y * getWidth() + x) * PixelBuffer::formatSize(mFormat); in getOffset()