Lines Matching refs:format
21 static int computePixelSize(GLenum format, GLenum type) { in computePixelSize() argument
23 #define FORMAT_ERROR(format, type) \ in computePixelSize() argument
24 ALOGE("%s:%d unknown format/type 0x%x 0x%x", __FUNCTION__, __LINE__, format, type) \ in computePixelSize()
28 switch(format) { in computePixelSize()
49 default: FORMAT_ERROR(format, type); in computePixelSize()
53 switch(format) { in computePixelSize()
80 default: FORMAT_ERROR(format, type); in computePixelSize()
84 switch(format) { in computePixelSize()
93 default: FORMAT_ERROR(format, type); in computePixelSize()
97 switch(format) { in computePixelSize()
108 default: FORMAT_ERROR(format, type); in computePixelSize()
112 switch(format) { in computePixelSize()
121 default: FORMAT_ERROR(format, type); in computePixelSize()
125 switch(format) { in computePixelSize()
138 default: FORMAT_ERROR(format, type); in computePixelSize()
155 switch(format) { in computePixelSize()
172 default: FORMAT_ERROR(format, type); in computePixelSize()
177 switch(format) { in computePixelSize()
192 default: FORMAT_ERROR(format, type); in computePixelSize()
195 default: FORMAT_ERROR(format, type); in computePixelSize()
201 static int computePitch(GLsizei inputWidth, GLenum format, GLenum type, int align) { in computePitch() argument
202 GLsizei unaligned_width = computePixelSize(format, type) * inputWidth; in computePitch()
206 static int computePackingOffset(GLenum format, GLenum type, GLsizei width, GLsizei height, int alig… in computePackingOffset() argument
207 GLsizei alignedPitch = computePitch(width, format, type, align); in computePackingOffset()
210 int res = packingOffsetRows * alignedPitch + skipPixels * computePixelSize(format, type); in computePackingOffset()
217 GLenum format, GLenum type, in computeTextureStartEnd() argument
228 GLsizei inputPitch = computePitch(inputWidth, format, type, unpackAlignment); in computeTextureStartEnd()
233 …int startVal = computePackingOffset(format, type, inputWidth, inputHeight, unpackAlignment, unpack… in computeTextureStartEnd()
245 GLenum format, GLenum type, in computeTotalImageSize() argument
256 format, type, in computeTotalImageSize()
270 GLenum format, GLenum type, in computeNeededBufferSize() argument
281 format, type, in computeNeededBufferSize()
295 GLenum format, GLenum type, in computePackingOffsets2D() argument
306 int totalRowSize = computePitch(widthTotal, format, type, packAlignment); in computePackingOffsets2D()
307 int pixelsOnlyRowSize = computePitch(width, format, type, packAlignment); in computePackingOffsets2D()
311 …format, type, widthTotal, height, packAlignment, packSkipPixels, packSkipRows, 0 /* skip images = … in computePackingOffsets2D()
313 if (bpp) *bpp = computePixelSize(format, type); in computePackingOffsets2D()
321 GLenum format, GLenum type, in computePackingOffsets3D() argument
336 int totalRowSize = computePitch(widthTotal, format, type, packAlignment); in computePackingOffsets3D()
337 int pixelsOnlyRowSize = computePitch(width, format, type, packAlignment); in computePackingOffsets3D()
345 …format, type, widthTotal, heightTotal, packAlignment, packSkipPixels, packSkipRows, packSkipImages… in computePackingOffsets3D()
347 if (bpp) *bpp = computePixelSize(format, type); in computePackingOffsets3D()