Lines Matching refs:hdr
384 Header hdr; in WriteETC1ToKTX() local
385 hdr.fGLType = 0; in WriteETC1ToKTX()
386 hdr.fGLTypeSize = 1; in WriteETC1ToKTX()
387 hdr.fGLFormat = 0; in WriteETC1ToKTX()
388 hdr.fGLInternalFormat = GR_GL_COMPRESSED_ETC1_RGB8; in WriteETC1ToKTX()
389 hdr.fGLBaseInternalFormat = GR_GL_RGB; in WriteETC1ToKTX()
390 hdr.fPixelWidth = width; in WriteETC1ToKTX()
391 hdr.fPixelHeight = height; in WriteETC1ToKTX()
392 hdr.fNumberOfArrayElements = 0; in WriteETC1ToKTX()
393 hdr.fNumberOfFaces = 1; in WriteETC1ToKTX()
394 hdr.fNumberOfMipmapLevels = 1; in WriteETC1ToKTX()
399 hdr.fBytesOfKeyValueData = 0; in WriteETC1ToKTX()
402 if (!stream->write(&hdr, sizeof(hdr))) { in WriteETC1ToKTX()
441 Header hdr; in WriteBitmapToKTX() local
453 hdr.fGLType = GR_GL_UNSIGNED_BYTE; in WriteBitmapToKTX()
454 hdr.fGLTypeSize = 1; in WriteBitmapToKTX()
455 hdr.fGLFormat = GR_GL_RED; in WriteBitmapToKTX()
456 hdr.fGLInternalFormat = GR_GL_R8; in WriteBitmapToKTX()
457 hdr.fGLBaseInternalFormat = GR_GL_RED; in WriteBitmapToKTX()
461 hdr.fGLType = GR_GL_UNSIGNED_SHORT_5_6_5; in WriteBitmapToKTX()
462 hdr.fGLTypeSize = 2; in WriteBitmapToKTX()
463 hdr.fGLFormat = GR_GL_RGB; in WriteBitmapToKTX()
464 hdr.fGLInternalFormat = GR_GL_RGB; in WriteBitmapToKTX()
465 hdr.fGLBaseInternalFormat = GR_GL_RGB; in WriteBitmapToKTX()
469 hdr.fGLType = GR_GL_UNSIGNED_SHORT_4_4_4_4; in WriteBitmapToKTX()
470 hdr.fGLTypeSize = 2; in WriteBitmapToKTX()
471 hdr.fGLFormat = GR_GL_RGBA; in WriteBitmapToKTX()
472 hdr.fGLInternalFormat = GR_GL_RGBA4; in WriteBitmapToKTX()
473 hdr.fGLBaseInternalFormat = GR_GL_RGBA; in WriteBitmapToKTX()
478 hdr.fGLType = GR_GL_UNSIGNED_BYTE; in WriteBitmapToKTX()
479 hdr.fGLTypeSize = 1; in WriteBitmapToKTX()
480 hdr.fGLFormat = GR_GL_RGBA; in WriteBitmapToKTX()
481 hdr.fGLInternalFormat = GR_GL_RGBA8; in WriteBitmapToKTX()
482 hdr.fGLBaseInternalFormat = GR_GL_RGBA; in WriteBitmapToKTX()
488 hdr.fPixelWidth = width; in WriteBitmapToKTX()
489 hdr.fPixelHeight = height; in WriteBitmapToKTX()
490 hdr.fNumberOfArrayElements = 0; in WriteBitmapToKTX()
491 hdr.fNumberOfFaces = 1; in WriteBitmapToKTX()
492 hdr.fNumberOfMipmapLevels = 1; in WriteBitmapToKTX()
495 hdr.fBytesOfKeyValueData = 0; in WriteBitmapToKTX()
503 hdr.fBytesOfKeyValueData = SkToU32(hdr.fBytesOfKeyValueData + kvsize); in WriteBitmapToKTX()
507 if (!stream->write(&hdr, sizeof(hdr))) { in WriteBitmapToKTX()