Lines Matching refs:fHeader
178 isFmt = GR_GL_COMPRESSED_RED_RGTC1 == fHeader.fGLInternalFormat || in isCompressedFormat()
179 GR_GL_COMPRESSED_3DC_X == fHeader.fGLInternalFormat; in isCompressedFormat()
182 return isFmt || compressed_fmt_to_gl_define(fmt) == fHeader.fGLInternalFormat; in isCompressedFormat()
186 return this->valid() && GR_GL_RGBA8 == fHeader.fGLInternalFormat; in isRGBA8()
190 return this->valid() && GR_GL_RGB8 == fHeader.fGLInternalFormat; in isRGB8()
215 fHeader.fGLType = this->readInt(&buf, &bytesLeft); in readKTXFile()
216 fHeader.fGLTypeSize = this->readInt(&buf, &bytesLeft); in readKTXFile()
217 fHeader.fGLFormat = this->readInt(&buf, &bytesLeft); in readKTXFile()
218 fHeader.fGLInternalFormat = this->readInt(&buf, &bytesLeft); in readKTXFile()
219 fHeader.fGLBaseInternalFormat = this->readInt(&buf, &bytesLeft); in readKTXFile()
220 fHeader.fPixelWidth = this->readInt(&buf, &bytesLeft); in readKTXFile()
221 fHeader.fPixelHeight = this->readInt(&buf, &bytesLeft); in readKTXFile()
222 fHeader.fPixelDepth = this->readInt(&buf, &bytesLeft); in readKTXFile()
223 fHeader.fNumberOfArrayElements = this->readInt(&buf, &bytesLeft); in readKTXFile()
224 fHeader.fNumberOfFaces = this->readInt(&buf, &bytesLeft); in readKTXFile()
225 fHeader.fNumberOfMipmapLevels = this->readInt(&buf, &bytesLeft); in readKTXFile()
226 fHeader.fBytesOfKeyValueData = this->readInt(&buf, &bytesLeft); in readKTXFile()
235 if (fHeader.fGLType != 0 && fHeader.fGLType != GR_GL_UNSIGNED_BYTE) { in readKTXFile()
241 if (fHeader.fGLTypeSize != 1) { in readKTXFile()
246 if (fHeader.fPixelDepth > 1) { in readKTXFile()
251 if (fHeader.fNumberOfArrayElements > 1) { in readKTXFile()
256 if (fHeader.fNumberOfFaces > 1) { in readKTXFile()
261 if (fHeader.fPixelWidth <= 0 || fHeader.fPixelHeight <= 0) { in readKTXFile()
268 if (bytesLeft < fHeader.fBytesOfKeyValueData) { in readKTXFile()
274 while (keyValueBytesRead < fHeader.fBytesOfKeyValueData) { in readKTXFile()
296 int mipmaps = SkMax32(fHeader.fNumberOfMipmapLevels, 1); in readKTXFile()
299 int arrayElements = SkMax32(fHeader.fNumberOfArrayElements, 1); in readKTXFile()
302 int faces = SkMax32(fHeader.fNumberOfFaces, 1); in readKTXFile()
305 int depth = SkMax32(fHeader.fPixelDepth, 1); in readKTXFile()